Make WordPress Core

Ticket #4516: options-writing-php.diff

File options-writing-php.diff, 1.1 KB (added by jhodgdon, 19 years ago)

Fix for wp-admin/options-writing.php

  • E:/EclipseWork/WordPressDev/wp-admin/options-writing.php

     
    3535foreach ($categories as $category) :
    3636if ($category->term_id == get_option('default_category')) $selected = " selected='selected'";
    3737else $selected = '';
    38 echo "\n\t<option value='$category->term_id' $selected>$category->name</option>";
     38echo "\n\t<option value='$category->term_id' $selected>" . apply_filters('single_cat_title', $category->name) . "</option>";
    3939endforeach;
    4040?>
    4141</select></td>
     
    4848foreach ($categories as $category) :
    4949if ($category->term_id == get_option('default_link_category')) $selected = " selected='selected'";
    5050else $selected = '';
    51 echo "\n\t<option value='$category->term_id' $selected>$category->name</option>";
     51echo "\n\t<option value='$category->term_id' $selected>" . apply_filters( 'link_category', $category->name ) . "</option>";
    5252endforeach;
    5353?>
    5454</select></td>