mirror of
git://develop.git.wordpress.org/
synced 2025-04-27 07:32:32 +02:00
Nav Menus: remove unnecessary variable assignment in wp_nav_menu_item_post_type_meta_box()
.
See #37771. git-svn-id: https://develop.svn.wordpress.org/trunk@38311 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
368e28243f
commit
46d7304d4a
@ -502,7 +502,7 @@ function wp_nav_menu_item_post_type_meta_box( $object, $box ) {
|
||||
}
|
||||
|
||||
$post_type = get_post_type_object( $post_type_name );
|
||||
$archive_link = get_post_type_archive_link( $post_type_name );
|
||||
|
||||
if ( $post_type->has_archive ) {
|
||||
$_nav_menu_placeholder = ( 0 > $_nav_menu_placeholder ) ? intval($_nav_menu_placeholder) - 1 : -1;
|
||||
array_unshift( $posts, (object) array(
|
||||
|
Loading…
x
Reference in New Issue
Block a user