Opened 6 years ago
Last modified 6 years ago
#51366 new enhancement
Taxonomy:post_format show_in_nav_menus has no effect
| Reported by: | nextendweb | Owned by: | |
|---|---|---|---|
| Priority: | normal | Milestone: | Awaiting Review |
| Component: | Taxonomy | Version: | 3.4 |
| Severity: | normal | Keywords: | |
| Cc: | Focuses: |
Description
In wp-includes/taxonomy.php, the definition for post_format taxonomy looks like this:
<?php register_taxonomy( 'post_format', 'post', array( 'public' => true, 'hierarchical' => false, 'labels' => array( 'name' => _x( 'Formats', 'post format' ), 'singular_name' => _x( 'Format', 'post format' ), ), 'query_var' => true, 'rewrite' => $rewrite['post_format'], 'show_ui' => false, '_builtin' => true, 'show_in_nav_menus' => current_theme_supports( 'post-formats' ), ) );
It looks like current_theme_supports( 'post-formats' ) has no effect as at this point the Theme's functions.php not loaded at this time. So I think show_in_nav_menus can be set to false.
Note:
See TracTickets
for help on using tickets.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
Hi there, thanks for the ticket!
Introduced in [19876] / #16390.