Make WordPress Core


Ignore:
Timestamp:
01/10/2015 05:28:46 AM (11 years ago)
Author:
wonderboymusic
Message:

Admin globals:

  • Declare $wp_importers as a global in admin.php
  • Declare $post_type, $post_type_object, and $post as globals where applicable

See #30799.

File:
1 edited

Legend:

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

    r31106 r31121  
    9292
    9393// $pagenow is set in vars.php
     94// $wp_importers is sometimes set in wp-admin/includes/import.php
     95//
    9496// The remaining variables are imported as globals elsewhere,
    9597//     declared as globals here
    96 global $pagenow, $hook_suffix, $plugin_page, $typenow, $taxnow;
     98global $pagenow, $wp_importers, $hook_suffix, $plugin_page, $typenow, $taxnow;
    9799
    98100$page_hook = null;
Note: See TracChangeset for help on using the changeset viewer.