Make WordPress Core

Opened 4 years ago

Last modified 4 years ago

#51366 new enhancement

Taxonomy:post_format show_in_nav_menus has no effect

Reported by: nextendweb's profile nextendweb Owned by:
Milestone: Awaiting Review Priority: normal
Severity: normal Version: 3.4
Component: Taxonomy Keywords:
Focuses: Cc:


In wp-includes/taxonomy.php, the definition for post_format taxonomy looks like this:

        '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.

Change History (2)

#1 @sabernhardt
4 years ago

  • Component changed from General to Taxonomy

#2 @SergeyBiryukov
4 years ago

  • Version set to 3.4

Hi there, thanks for the ticket!

Introduced in [19876] / #16390.

Note: See TracTickets for help on using tickets.