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:
parent
2748d489f0
commit
97ea98f145
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user