Remove unused variables. props GaryJ. fixes #23789.
git-svn-id: https://develop.svn.wordpress.org/trunk@23712 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
5fd51d5403
commit
06649a7832
|
@ -549,22 +549,9 @@ function wp_nav_menu_disabled_check( $nav_menu_selected_id ) {
|
||||||
*/
|
*/
|
||||||
function wp_nav_menu_item_link_meta_box() {
|
function wp_nav_menu_item_link_meta_box() {
|
||||||
global $_nav_menu_placeholder, $nav_menu_selected_id;
|
global $_nav_menu_placeholder, $nav_menu_selected_id;
|
||||||
|
|
||||||
$_nav_menu_placeholder = 0 > $_nav_menu_placeholder ? $_nav_menu_placeholder - 1 : -1;
|
$_nav_menu_placeholder = 0 > $_nav_menu_placeholder ? $_nav_menu_placeholder - 1 : -1;
|
||||||
|
|
||||||
$current_tab = 'create';
|
|
||||||
if ( isset( $_REQUEST['customlink-tab'] ) && in_array( $_REQUEST['customlink-tab'], array('create', 'all') ) ) {
|
|
||||||
$current_tab = $_REQUEST['customlink-tab'];
|
|
||||||
}
|
|
||||||
|
|
||||||
$removed_args = array(
|
|
||||||
'action',
|
|
||||||
'customlink-tab',
|
|
||||||
'edit-menu-item',
|
|
||||||
'menu-item',
|
|
||||||
'page-tab',
|
|
||||||
'_wpnonce',
|
|
||||||
);
|
|
||||||
|
|
||||||
?>
|
?>
|
||||||
<div class="customlinkdiv" id="customlinkdiv">
|
<div class="customlinkdiv" id="customlinkdiv">
|
||||||
<input type="hidden" value="custom" name="menu-item[<?php echo $_nav_menu_placeholder; ?>][menu-item-type]" />
|
<input type="hidden" value="custom" name="menu-item[<?php echo $_nav_menu_placeholder; ?>][menu-item-type]" />
|
||||||
|
|
Loading…
Reference in New Issue