[wp-trac] [WordPress Trac] #51366: Taxonomy:post_format show_in_nav_menus has no effect

WordPress Trac noreply at wordpress.org
Mon Sep 21 07:21:33 UTC 2020


#51366: Taxonomy:post_format show_in_nav_menus has no effect
-------------------------+-----------------------------
 Reporter:  nextendweb   |      Owner:  (none)
     Type:  enhancement  |     Status:  new
 Priority:  normal       |  Milestone:  Awaiting Review
Component:  General      |    Version:
 Severity:  normal       |   Keywords:
  Focuses:               |
-------------------------+-----------------------------
 In `wp-includes/taxonomy.php`, the definition for `post_format` taxonomy
 looks like this:
 {{{#!php
 <?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`.

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


More information about the wp-trac mailing list