WordPress.org

Make WordPress Core

Ticket #6802: fix_forcedefault.patch

File fix_forcedefault.patch, 693 bytes (added by ionfish, 7 years ago)
  • wp-admin/options-discussion.php

     
    135135        $avatar_list .= "\n\t<label><input type='radio' name='avatar_default' id='avatar_{$default_key}' value='{$default_key}' {$selected}/> "; 
    136136 
    137137        $avatar = get_avatar( $user_email, $size, $default_key ); 
    138         $avatar_list .= preg_replace("/src='(.+?)'/", "src='\$1&amp;forcedefault=1'", $avatar); 
     138        $avatar_list .= preg_replace('/src="(.+?)"/', "src='\$1&amp;forcedefault=1'", $avatar); 
    139139 
    140140        $avatar_list .= ' ' . $default_name . '</label>'; 
    141141        $avatar_list .= '<br />';