X-Git-Url: https://scripts.mit.edu/gitweb/autoinstalls/wordpress.git/blobdiff_plain/607b7e02d77e7326161e8ec15639052d2040f745..e3ff8f35458a959c1879c0a4976701ed8dcfe651:/wp-admin/press-this.php diff --git a/wp-admin/press-this.php b/wp-admin/press-this.php index e0a4c901..46322bc4 100644 --- a/wp-admin/press-this.php +++ b/wp-admin/press-this.php @@ -19,11 +19,6 @@ 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'] ) ) { - include( ABSPATH . 'wp-admin/includes/class-wp-press-this.php' ); -} - -$GLOBALS['wp_press_this']->html(); +include( ABSPATH . 'wp-admin/includes/class-wp-press-this.php' ); +$wp_press_this = new WP_Press_This(); +$wp_press_this->html();