WordPress.org

Make WordPress Core

Opened 4 years ago

Last modified 5 months ago

#32237 new defect (bug)

Default query args are ignored in menu editor's taxonomy metaboxes

Reported by: szepe.viktor Owned by:
Milestone: Priority: normal
Severity: normal Version: 4.2.1
Component: Menus Keywords: has-patch
Focuses: Cc:
PR Number:

Description

wp_nav_menu_item_post_type_meta_box() merges $post_type['args']->_default_query
but wp_nav_menu_item_taxonomy_meta_box ignores $taxonomy['args']->_default_query

Please handle default query parameters.
I'd like to make the metabox longer than 50.

Attachments (2)

32237.patch (500 bytes) - added by tyxla 4 years ago.
Handle _default_query for taxonomies in wp_nav_menu_item_taxonomy_meta_box()
32237.2.patch (502 bytes) - added by tyxla 3 years ago.
Added braces to conform to the coding standards

Download all attachments as: .zip

Change History (6)

@tyxla
4 years ago

Handle _default_query for taxonomies in wp_nav_menu_item_taxonomy_meta_box()

#1 @tyxla
4 years ago

  • Keywords has-patch added

#2 @szepe.viktor
4 years ago

Thank you.

#3 @welcher
3 years ago

  • Keywords needs-patch added; has-patch removed

@tyxla can you add braces to the if statement for standards - https://make.wordpress.org/core/handbook/best-practices/coding-standards/php/#brace-style.

@tyxla
3 years ago

Added braces to conform to the coding standards

#4 @tyxla
3 years ago

  • Keywords has-patch added; needs-patch removed

Good point @welcher, thanks! I've submitted an updated patch.

Note: See TracTickets for help on using tickets.