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'); ?> - - + +
@@ -477,7 +467,7 @@ var photostorage = false; echo '

'; submit_button( __( 'Submit for Review' ), 'primary', 'review', false ); } ?> - +

-
    +
      'category', 'popular_cats' => $popular_ids ) ) ?>
@@ -527,18 +517,18 @@ var photostorage = false; cap->edit_terms) ) : ?>

- + labels->add_new_item ); ?>

- + - 'category', 'hide_empty' => 0, 'name' => 'newcategory_parent', 'orderby' => 'name', 'hierarchical' => 1, 'show_option_none' => '— ' . $tax->labels->parent_item . ' —', 'tab_index' => 3 ) ); ?> - + 'category', 'hide_empty' => 0, 'name' => 'newcategory_parent', 'orderby' => 'name', 'hierarchical' => 1, 'show_option_none' => '— ' . $tax->labels->parent_item . ' —' ) ); ?> +

@@ -558,7 +548,7 @@ var photostorage = false;
- +
@@ -596,7 +586,7 @@ var photostorage = false;
- + @@ -610,7 +600,7 @@ var photostorage = false; $content = ''; if ( $selection ) - $content .= $selection; + $content .= $selection; if ( $url ) { $content .= '

';