Skip to content

Instantly share code, notes, and snippets.

View Abromeit's full-sized avatar
🎓
Learning

Daniel Abromeit aka Abro Abromeit

🎓
Learning
View GitHub Profile
@Abromeit
Abromeit / gist:2629080
Created May 7, 2012 17:20
Entfernung von ?rel=author aus dem Link eines WordPress-Kommentators
<?php
function sm_preprocess_comment($comment)
{
if( !empty($comment['comment_author_url']) )
{
$comment['comment_author_url'] = preg_replace(
'/(plus\.google\.com.*?)(?:\?|&|&amp;|&#0*38;|&#x0*26;)rel\=author/i', '$1', $comment['comment_author_url']
);
}
@Abromeit
Abromeit / metatags.php
Created May 17, 2012 22:56
xtcModified SEO Enhancements ^-^ /includes/modules/metatags.php
<?php
/*---------------------------------------------------------------------------
$Id$
xtcModified - community made shopping
http://www.xtc-modified.org
Copyright (c) 2010 xtcModified
-----------------------------------------------------------------------------
## POSTS #################################################################################################
# list all posts, paginated
# where result posts might be everthing under '/news/' or sth.
#
# interesting values included:
# * comment_status (if comments are allowed)
# * ping_status (if pings from other weblogs are allowed)
# * slug
# * date_gmt