]> scripts.mit.edu Git - autoinstalls/wordpress.git/blobdiff - wp-admin/press-this.php
WordPress 4.7
[autoinstalls/wordpress.git] / wp-admin / press-this.php
index e0a4c90166e993abbd0c46267e99bfd171d66005..46322bc41c96930fa3b748b3d1bd54b3745192db 100644 (file)
@@ -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();