WordPress.org

Make WordPress Core

Ticket #4827: 4827-blank-categories.diff

File 4827-blank-categories.diff, 733 bytes (added by ozh, 7 years ago)

"Post by email" category list not populated on 2.3

  • options-writing.php

     
    4444<th scope="row"><?php _e('Default link category:') ?></th> 
    4545<td><select name="default_link_category" id="default_link_category"> 
    4646<?php 
    47 $categories = get_terms('link_category', 'get=all'); 
    48 foreach ($categories as $category) : 
     47$categories_link = get_terms('link_category', 'get=all'); 
     48foreach ($categories_link as $category) : 
    4949if ($category->term_id == get_option('default_link_category')) $selected = " selected='selected'"; 
    5050else $selected = ''; 
    5151echo "\n\t<option value='$category->term_id' $selected>$category->name</option>";