Remove `$pagenow` global from three functions that don’t use it.
Props jeremyfelt. Fixes #24920. git-svn-id: https://develop.svn.wordpress.org/trunk@24974 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
2a2a356b47
commit
271e9b40a4
|
@ -1499,7 +1499,7 @@ function media_upload_header() {
|
||||||
* @param unknown_type $errors
|
* @param unknown_type $errors
|
||||||
*/
|
*/
|
||||||
function media_upload_form( $errors = null ) {
|
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() ) {
|
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>';
|
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
|
* @param bool $submenu_as_parent
|
||||||
*/
|
*/
|
||||||
function _wp_menu_output( $menu, $submenu, $submenu_as_parent = true ) {
|
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;
|
$first = true;
|
||||||
// 0 = name, 1 = capability, 2 = file, 3 = class, 4 = id, 5 = icon src
|
// 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 );
|
$r = apply_filters( 'wp_link_pages_args', $r );
|
||||||
extract( $r, EXTR_SKIP );
|
extract( $r, EXTR_SKIP );
|
||||||
|
|
||||||
global $page, $numpages, $multipage, $more, $pagenow;
|
global $page, $numpages, $multipage, $more;
|
||||||
|
|
||||||
$output = '';
|
$output = '';
|
||||||
if ( $multipage ) {
|
if ( $multipage ) {
|
||||||
|
|
Loading…
Reference in New Issue