WordPress.org

Make WordPress Core

Changeset 24974


Ignore:
Timestamp:
08/02/2013 04:42:08 AM (7 years ago)
Author:
markjaquith
Message:

Remove $pagenow global from three functions that don’t use it.

Props jeremyfelt. Fixes #24920.

Location:
trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/includes/media.php

    r24788 r24974  
    15001500 */
    15011501function media_upload_form( $errors = null ) {
    1502     global $type, $tab, $pagenow, $is_IE, $is_opera;
     1502    global $type, $tab, $is_IE, $is_opera;
    15031503
    15041504    if ( ! _device_can_upload() ) {
  • trunk/wp-admin/menu-header.php

    r24048 r24974  
    3535 */
    3636function _wp_menu_output( $menu, $submenu, $submenu_as_parent = true ) {
    37     global $self, $parent_file, $submenu_file, $plugin_page, $pagenow, $typenow;
     37    global $self, $parent_file, $submenu_file, $plugin_page, $typenow;
    3838
    3939    $first = true;
  • trunk/wp-includes/post-template.php

    r24783 r24974  
    651651    extract( $r, EXTR_SKIP );
    652652
    653     global $page, $numpages, $multipage, $more, $pagenow;
     653    global $page, $numpages, $multipage, $more;
    654654
    655655    $output = '';
Note: See TracChangeset for help on using the changeset viewer.