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

See #37699.


git-svn-id: https://develop.svn.wordpress.org/trunk@38466 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Scott Taylor 2016-08-31 06:28:19 +00:00
parent 2748d489f0
commit 97ea98f145

View File

@ -19,11 +19,5 @@ if ( ! current_user_can( 'edit_posts' ) || ! current_user_can( get_post_type_obj
);
}
/**
* @global WP_Press_This $wp_press_this
*/
if ( empty( $GLOBALS['wp_press_this'] ) ) {
$GLOBALS['wp_press_this'] = new WP_Press_This();
}
$GLOBALS['wp_press_this']->html();
$wp_press_this = new WP_Press_This();
$wp_press_this->html();