Ticket #3408: patch.diff
| File patch.diff, 1.4 KB (added by alexkingorg, 5 years ago) |
|---|
-
wp-admin/admin-functions.php
713 713 $categories = get_categories( 'hide_empty=0' ); 714 714 715 715 if ( $categories ) { 716 ob_start(); 716 717 foreach ( $categories as $category ) { 717 718 if ( $category->category_parent == $parent) { 718 719 echo "\t" . _cat_row( $category, $level ); 719 720 cat_rows( $category->cat_ID, $level +1, $categories ); 720 721 } 721 722 } 723 $output = ob_get_contents(); 724 ob_end_clean(); 725 726 $output = apply_filters('cat_rows', $output); 727 728 echo $output; 722 729 } else { 723 730 return false; 724 731 } -
wp-admin/edit-category-form.php
5 5 $form = '<form name="editcat" id="editcat" method="post" action="categories.php">'; 6 6 $action = 'editedcat'; 7 7 $nonce_action = 'update-category_' . $cat_ID; 8 do_action('edit_category_form_pre', $category); 8 9 } else { 9 10 $heading = __('Add Category'); 10 11 $submit_text = __('Add Category »'); 11 12 $form = '<form name="addcat" id="addcat" method="post" action="categories.php">'; 12 13 $action = 'addcat'; 13 14 $nonce_action = 'add-category'; 15 do_action('add_category_form_pre', $category); 14 16 } 15 17 ?> 16 18
