Created
May 7, 2012 17:20
-
-
Save Abromeit/2629080 to your computer and use it in GitHub Desktop.
Revisions
-
Abromeit revised this gist
May 7, 2012 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -5,7 +5,7 @@ if( !empty($comment['comment_author_url']) ) { $comment['comment_author_url'] = preg_replace( '/(plus\.google\.com.*?)(?:\?|&|&|�*38;|�*26;)rel\=author/i', '$1', $comment['comment_author_url'] ); } -
Abromeit revised this gist
May 7, 2012 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -5,7 +5,7 @@ if( !empty($comment['comment_author_url']) ) { $comment['comment_author_url'] = preg_replace( '/(plus\.google\.com.*?)(?:\?|&|&|&|&)rel\=author/i', '$1', $comment['comment_author_url'] ); } -
Abromeit revised this gist
May 7, 2012 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -5,7 +5,7 @@ if( !empty($comment['comment_author_url']) ) { $comment['comment_author_url'] = preg_replace( '#(plus\.google\.com.*?)(?:\?|&|&|&|&)rel\=author#i', '$1', $comment['comment_author_url'] ); } -
Abromeit revised this gist
May 7, 2012 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -5,7 +5,7 @@ if( !empty($comment['comment_author_url']) ) { $comment['comment_author_url'] = preg_replace( '#(plus\.google\.com.*?)(?:\?|&|&)rel\=author#i', '$1', $comment['comment_author_url'] ); } -
Abromeit revised this gist
May 7, 2012 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -5,7 +5,7 @@ if( !empty($comment['comment_author_url']) ) { $comment['comment_author_url'] = preg_replace( '/(plus\.google\.com.*?)(?:\?|&)rel\=author/i', '$1', $comment['comment_author_url'] ); } -
Abromeit revised this gist
May 7, 2012 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -5,7 +5,7 @@ if( !empty($comment['comment_author_url']) ) { $comment['comment_author_url'] = preg_replace( '/(plus\.google\.com.*?)\?rel\=author/i', '$1', $comment['comment_author_url'] ); } -
Abromeit revised this gist
May 7, 2012 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -5,7 +5,7 @@ if( !empty($comment['comment_author_url']) ) { $comment['comment_author_url'] = preg_replace( '/(plus\.google\.com.*)\?rel\=author/i', '$1', $comment['comment_author_url'] ); } -
Abromeit revised this gist
May 7, 2012 . 1 changed file with 12 additions and 37 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,42 +1,17 @@ <?php function sm_preprocess_comment($comment) { if( !empty($comment['comment_author_url']) ) { $comment['comment_author_url'] = preg_replace( '/(plus\.google\.com.*)\?rel\=author/', '$1', $comment['comment_author_url'] ); } return $comment; } add_filter('preprocess_comment','sm_preprocess_comment'); ?> -
Sergej Müller revised this gist
May 7, 2012 . 1 changed file with 3 additions and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,3 +1,4 @@ <?php /* Für PHP 5.3 */ add_filter( @@ -37,4 +38,5 @@ add_filter( 'sm_preprocess_comment' ); /* Ende für PHP kleiner 5.3 */ *> -
Sergej Müller created this gist
May 7, 2012 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,40 @@ /* Für PHP 5.3 */ add_filter( 'preprocess_comment', function($comment) { if ( !empty($comment['comment_author_url']) ) { $comment['comment_author_url'] = preg_replace( '/(plus.google.com)(.+?)\?rel=author/', '$1$2', $comment['comment_author_url'] ); } return $comment; } ); /* Ende für PHP 5.3 */ /* Für PHP kleiner 5.3 */ function sm_preprocess_comment($comment) { if ( !empty($comment['comment_author_url']) ) { $comment['comment_author_url'] = preg_replace( '/(plus.google.com)(.+?)\?rel=author/', '$1$2', $comment['comment_author_url'] ); } return $comment; } add_filter( 'preprocess_comment', 'sm_preprocess_comment' ); /* Ende für PHP kleiner 5.3 */