Changeset 32965 for trunk/src/wp-admin/includes/ajax-actions.php
- Timestamp:
- 06/27/2015 01:11:45 AM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/includes/ajax-actions.php
r32778 r32965 435 435 if ( $parent ) // Do these all at once in a second 436 436 continue; 437 437 438 ob_start(); 438 wp_terms_checklist( 0, array( 'taxonomy' => $taxonomy->name, 'descendants_and_self' => $cat_id, 'selected_cats' => $checked_categories, 'popular_cats' => $popular_ids )); 439 $data = ob_get_contents(); 440 ob_end_clean(); 439 440 wp_terms_checklist( 0, array( 'taxonomy' => $taxonomy->name, 'descendants_and_self' => $cat_id, 'selected_cats' => $checked_categories, 'popular_cats' => $popular_ids )); 441 442 $data = ob_get_clean(); 443 441 444 $add = array( 442 445 'what' => $taxonomy->name, … … 459 462 460 463 ob_start(); 461 wp_terms_checklist( 0, array('taxonomy' => $taxonomy->name, 'descendants_and_self' => $term_id, 'selected_cats' => $checked_categories, 'popular_cats' => $popular_ids)); 462 $data = ob_get_contents(); 463 ob_end_clean(); 464 465 wp_terms_checklist( 0, array('taxonomy' => $taxonomy->name, 'descendants_and_self' => $term_id, 'selected_cats' => $checked_categories, 'popular_cats' => $popular_ids)); 466 467 $data = ob_get_clean(); 468 464 469 $add = array( 465 470 'what' => $taxonomy->name, … … 471 476 472 477 ob_start(); 473 wp_dropdown_categories( array( 474 'taxonomy' => $taxonomy->name, 'hide_empty' => 0, 'name' => 'new'.$taxonomy->name.'_parent', 'orderby' => 'name', 475 'hierarchical' => 1, 'show_option_none' => '— '.$taxonomy->labels->parent_item.' —' 476 ) ); 477 $sup = ob_get_contents(); 478 ob_end_clean(); 478 479 wp_dropdown_categories( array( 480 'taxonomy' => $taxonomy->name, 'hide_empty' => 0, 'name' => 'new'.$taxonomy->name.'_parent', 'orderby' => 'name', 481 'hierarchical' => 1, 'show_option_none' => '— '.$taxonomy->labels->parent_item.' —' 482 ) ); 483 484 $sup = ob_get_clean(); 485 479 486 $add['supplemental'] = array( 'newcat_parent' => $sup ); 480 487 … … 915 922 $wp_list_table->single_row( $comment ); 916 923 } 917 $comment_list_item = ob_get_contents(); 918 ob_end_clean(); 924 $comment_list_item = ob_get_clean(); 919 925 920 926 $x->add( array(
Note: See TracChangeset
for help on using the changeset viewer.