Use get_permalink() instead of get_post_permalink(). Limit to published post types. see #11817 #12566
git-svn-id: http://svn.automattic.com/wordpress/trunk@13714 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
@@ -210,7 +210,7 @@ function wp_setup_nav_menu_item( $menu_item, $menu_item_type = null, $menu_item_
|
||||
$menu_item->append = _x( $object->singular_label, 'nav menu item type' );
|
||||
|
||||
$menu_item->title = $menu_item->post_title;
|
||||
$menu_item->url = get_post_permalink( $menu_item->ID );
|
||||
$menu_item->url = get_permalink( $menu_item->ID );
|
||||
$menu_item->target = '_none';
|
||||
|
||||
$menu_item->attr_title = '';
|
||||
|
||||
Reference in New Issue
Block a user