Only show published items of custom post types in nav menu meta boxes. props duck_, fixes #13390.

git-svn-id: http://svn.automattic.com/wordpress/trunk@14631 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
nacin 2010-05-14 13:12:45 +00:00
parent e01bcf8d2e
commit d12cdce1b0
1 changed files with 6 additions and 0 deletions

View File

@ -951,6 +951,12 @@ function _wp_nav_menu_meta_box_object( $object = null ) {
'orderby' => 'id',
'order' => 'DESC',
);
// custom post types should show only published items
} else {
$object->_default_query = array(
'post_status' => 'publish',
);
}
}