mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-04-04 12:44:31 +00:00
Add @global annotations for wp-admin/*.
See #32444. git-svn-id: https://develop.svn.wordpress.org/trunk@32642 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -14,6 +14,9 @@ require_once( dirname( __FILE__ ) . '/admin.php' );
|
||||
if ( ! current_user_can( 'edit_posts' ) || ! current_user_can( get_post_type_object( 'post' )->cap->create_posts ) )
|
||||
wp_die( __( 'Cheatin’ uh?' ), 403 );
|
||||
|
||||
/**
|
||||
* @global WP_Press_This $wp_press_this
|
||||
*/
|
||||
if ( empty( $GLOBALS['wp_press_this'] ) ) {
|
||||
include( ABSPATH . 'wp-admin/includes/class-wp-press-this.php' );
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user