[wp-trac] [WordPress Trac] #54135: `nav_menu_meta_box_object` doesn't work on taxonomies

WordPress Trac noreply at wordpress.org
Thu Sep 16 19:16:45 UTC 2021


#54135: `nav_menu_meta_box_object` doesn't work on taxonomies
--------------------------+-----------------------------
 Reporter:  papazetis     |      Owner:  (none)
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  General       |    Version:
 Severity:  normal        |   Keywords:
  Focuses:                |
--------------------------+-----------------------------
 I am trying to remove the pagination on main category taxonomy but it
 doesn't work

 {{{#!php
 <?php
 function disable_pagination_in_category_meta_box( $post_type ) {
     if ( 'category' == $post_type->name ) {
         $post_type->_default_query['number'] = -1;
     }
    return $post_type;
 }
 add_filter( 'nav_menu_meta_box_object',
 'disable_pagination_in_category_meta_box', 9 );
 }}}

 Think it's bug but not sure

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/54135>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list