mirror of
https://github.com/WordPress/WordPress.git
synced 2025-01-03 15:08:10 +01:00
Remove $pagenow
global from three functions that don’t use it.
Props jeremyfelt. Fixes #24920. git-svn-id: http://core.svn.wordpress.org/trunk@24974 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
0652398a22
commit
e553e85ebb
@ -1499,7 +1499,7 @@ function media_upload_header() {
|
||||
* @param unknown_type $errors
|
||||
*/
|
||||
function media_upload_form( $errors = null ) {
|
||||
global $type, $tab, $pagenow, $is_IE, $is_opera;
|
||||
global $type, $tab, $is_IE, $is_opera;
|
||||
|
||||
if ( ! _device_can_upload() ) {
|
||||
echo '<p>' . sprintf( __('The web browser on your device cannot be used to upload files. You may be able to use the <a href="%s">native app for your device</a> instead.'), 'http://wordpress.org/mobile/' ) . '</p>';
|
||||
|
@ -34,7 +34,7 @@ get_admin_page_parent();
|
||||
* @param bool $submenu_as_parent
|
||||
*/
|
||||
function _wp_menu_output( $menu, $submenu, $submenu_as_parent = true ) {
|
||||
global $self, $parent_file, $submenu_file, $plugin_page, $pagenow, $typenow;
|
||||
global $self, $parent_file, $submenu_file, $plugin_page, $typenow;
|
||||
|
||||
$first = true;
|
||||
// 0 = name, 1 = capability, 2 = file, 3 = class, 4 = id, 5 = icon src
|
||||
|
@ -650,7 +650,7 @@ function wp_link_pages( $args = '' ) {
|
||||
$r = apply_filters( 'wp_link_pages_args', $r );
|
||||
extract( $r, EXTR_SKIP );
|
||||
|
||||
global $page, $numpages, $multipage, $more, $pagenow;
|
||||
global $page, $numpages, $multipage, $more;
|
||||
|
||||
$output = '';
|
||||
if ( $multipage ) {
|
||||
|
Loading…
Reference in New Issue
Block a user