X-Git-Url: https://scripts.mit.edu/gitweb/autoinstallsdev/wordpress.git/blobdiff_plain/bf5c68485ef07868ad0a91168ecd0092af7661ae..6c8f14c09105d0afa4c1574215c59b5021040e76:/wp-admin/press-this.php diff --git a/wp-admin/press-this.php b/wp-admin/press-this.php index b8402529..6542fa31 100644 --- a/wp-admin/press-this.php +++ b/wp-admin/press-this.php @@ -13,7 +13,7 @@ require_once('./admin.php'); header('Content-Type: ' . get_option('html_type') . '; charset=' . get_option('blog_charset')); -if ( ! current_user_can('edit_posts') ) +if ( ! current_user_can( 'edit_posts' ) || ! current_user_can( get_post_type_object( 'post' )->cap->create_posts ) ) wp_die( __( 'Cheatin’ uh?' ) ); /** @@ -110,7 +110,7 @@ $image = isset($_GET['i']) ? $_GET['i'] : ''; if ( !empty($_REQUEST['ajax']) ) { switch ($_REQUEST['ajax']) { case 'video': ?> - @@ -314,20 +314,6 @@ var photostorage = false; do_action('admin_print_scripts'); do_action('admin_head'); ?> - -
+ +