Skip to content
Snippets Groups Projects
Commit 7ac76edb authored by ale's avatar ale
Browse files

Fix old ereg functions in veryplaintxt theme

parent a367e50e
No related branches found
No related tags found
No related merge requests found
Pipeline #54245 passed
......@@ -180,10 +180,10 @@ function veryplaintxt_other_tags($glue) {
// Produces an avatar image with the hCard-compliant photo class
function veryplaintxt_commenter_link() {
$commenter = get_comment_author_link();
if ( ereg( '<a[^>]* class=[^>]+>', $commenter ) ) {
$commenter = ereg_replace( '(<a[^>]* class=[\'"]?)', '\\1url ' , $commenter );
if ( preg_match( '<a[^>]* class=[^>]+>', $commenter ) ) {
$commenter = preg_replace( '(<a[^>]* class=[\'"]?)', '\\1url ' , $commenter );
} else {
$commenter = ereg_replace( '(<a )/', '\\1class="url "' , $commenter );
$commenter = preg_replace( '(<a )/', '\\1class="url "' , $commenter );
}
$email = get_comment_author_email();
$avatar_size = get_option('veryplaintxt_avatarsize');
......@@ -768,4 +768,4 @@ add_shortcode('gallery', 'veryplaintxt_gallery', $attr);
// Readies for translation.
load_theme_textdomain('veryplaintxt');
?>
\ No newline at end of file
?>
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment