WordPress.org

Make WordPress Core

Opened 4 months ago

Last modified 4 months ago

#51366 new enhancement

Taxonomy:post_format show_in_nav_menus has no effect

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

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.

Change History (2)

#1 @sabernhardt
4 months ago

  • Component changed from General to Taxonomy

#2 @SergeyBiryukov
4 months ago

  • Version set to 3.4

Hi there, thanks for the ticket!

Introduced in [19876] / #16390.

Note: See TracTickets for help on using tickets.