From 312e1f1811bb22b67efceb34b9343b59d12ccf59 Mon Sep 17 00:00:00 2001 From: duck_ Date: Wed, 8 Feb 2012 17:12:02 +0000 Subject: [PATCH] Post formats should show_in_nav_menus when the current theme supports them. Props filosofo, nacin. Fixes #16390. git-svn-id: http://svn.automattic.com/wordpress/trunk@19876 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/taxonomy.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wp-includes/taxonomy.php b/wp-includes/taxonomy.php index 5f377f674..9e2869828 100644 --- a/wp-includes/taxonomy.php +++ b/wp-includes/taxonomy.php @@ -107,7 +107,7 @@ function create_initial_taxonomies() { 'rewrite' => $rewrite['post_format'], 'show_ui' => false, '_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