WordPress.org

Make WordPress Core

Changeset 38466


Ignore:
Timestamp:
08/31/2016 06:28:19 AM (3 years ago)
Author:
wonderboymusic
Message:

Press This: don't check for already-hoisted global in press-this.php.

See #37699.

File:
1 edited

Legend:

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

    r38411 r38466  
    2020}
    2121
    22 /**
    23  * @global WP_Press_This $wp_press_this
    24  */
    25 if ( empty( $GLOBALS['wp_press_this'] ) ) {
    26     $GLOBALS['wp_press_this'] = new WP_Press_This();
    27 }
    28 
    29 $GLOBALS['wp_press_this']->html();
     22$wp_press_this = new WP_Press_This();
     23$wp_press_this->html();
Note: See TracChangeset for help on using the changeset viewer.