WordPress.org

Make WordPress Core

Changeset 34723


Ignore:
Timestamp:
10/01/2015 12:47:22 AM (4 years ago)
Author:
helen
Message:

Don't show the "Add New" link on post-new.php.

Using the same $post_new_file global variable name in wp-admin/menu.php in [33723] was unintentional, but we're already unsetting other variables that are in global scope so we can just unset this one as well. Someday the admin menu won't be a big pile of sad and cryptic globals. Maybe.

props johnjamesjacoby, norcross.
fixes #34045.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/menu.php

    r33867 r34723  
    136136    }
    137137}
    138 unset($ptype, $ptype_obj, $ptype_for_id, $ptype_menu_position, $menu_icon, $i, $tax);
     138unset( $ptype, $ptype_obj, $ptype_for_id, $ptype_menu_position, $menu_icon, $i, $tax, $post_new_file );
    139139
    140140$menu[59] = array( '', 'read', 'separator2', '', 'wp-menu-separator' );
Note: See TracChangeset for help on using the changeset viewer.