Nav Menus: remove unnecessary variable assignment in `wp_nav_menu_item_post_type_meta_box()`.
See #37771. Built from https://develop.svn.wordpress.org/trunk@38311 git-svn-id: http://core.svn.wordpress.org/trunk@38252 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
778d794e4f
commit
5025f72fd3
|
@ -502,7 +502,7 @@ function wp_nav_menu_item_post_type_meta_box( $object, $box ) {
|
||||||
}
|
}
|
||||||
|
|
||||||
$post_type = get_post_type_object( $post_type_name );
|
$post_type = get_post_type_object( $post_type_name );
|
||||||
$archive_link = get_post_type_archive_link( $post_type_name );
|
|
||||||
if ( $post_type->has_archive ) {
|
if ( $post_type->has_archive ) {
|
||||||
$_nav_menu_placeholder = ( 0 > $_nav_menu_placeholder ) ? intval($_nav_menu_placeholder) - 1 : -1;
|
$_nav_menu_placeholder = ( 0 > $_nav_menu_placeholder ) ? intval($_nav_menu_placeholder) - 1 : -1;
|
||||||
array_unshift( $posts, (object) array(
|
array_unshift( $posts, (object) array(
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
*
|
*
|
||||||
* @global string $wp_version
|
* @global string $wp_version
|
||||||
*/
|
*/
|
||||||
$wp_version = '4.7-alpha-38310';
|
$wp_version = '4.7-alpha-38311';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||||
|
|
Loading…
Reference in New Issue