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

See #37699.

Built from https://develop.svn.wordpress.org/trunk@38466


git-svn-id: http://core.svn.wordpress.org/trunk@38407 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Scott Taylor 2016-08-31 06:29:28 +00:00
parent 0419d1e318
commit 69e7fe3c5b
2 changed files with 3 additions and 9 deletions

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();

View File

@ -4,7 +4,7 @@
*
* @global string $wp_version
*/
$wp_version = '4.7-alpha-38465';
$wp_version = '4.7-alpha-38466';
/**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.