WordPress.org

Make WordPress Core


Ignore:
Timestamp:
02/13/2010 05:40:47 AM (10 years ago)
Author:
dd32
Message:

Convert Terms page to use WP_Ajax_Response(), hierarchical terms will now appear under their parent OR have the parents prefixed, Terms will be removed from tag cloud/parent list upon deletion, Terms will be added to Parent list in correct order upon ajax creation, Errors on term creation flow back to UI, clean up _tag_row() alternate class handling, Show None text in Category dropdown if empty and show_if_empty = true. See #11838

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/category-template.php

    r12798 r13086  
    365365    else
    366366        $output = '';
     367   
     368    if ( empty($categories) && ! $r['hide_if_empty'] && !empty($show_option_none) ) {
     369        $show_option_none = apply_filters( 'list_cats', $show_option_none );
     370        $output .= "\t<option value='-1' selected='selected'>$show_option_none</option>\n";
     371    }
     372   
    367373    if ( ! empty( $categories ) ) {
    368374
Note: See TracChangeset for help on using the changeset viewer.