Post formats should show_in_nav_menus when the current theme supports them. Props filosofo, nacin. Fixes #16390.
git-svn-id: https://develop.svn.wordpress.org/trunk@19876 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
358d6b6384
commit
a60932bf66
|
@ -107,7 +107,7 @@ function create_initial_taxonomies() {
|
||||||
'rewrite' => $rewrite['post_format'],
|
'rewrite' => $rewrite['post_format'],
|
||||||
'show_ui' => false,
|
'show_ui' => false,
|
||||||
'_builtin' => true,
|
'_builtin' => true,
|
||||||
'show_in_nav_menus' => false,
|
'show_in_nav_menus' => current_theme_supports( 'post-formats' ),
|
||||||
) );
|
) );
|
||||||
}
|
}
|
||||||
add_action( 'init', 'create_initial_taxonomies', 0 ); // highest priority
|
add_action( 'init', 'create_initial_taxonomies', 0 ); // highest priority
|
||||||
|
|
Loading…
Reference in New Issue