X-Git-Url: https://scripts.mit.edu/gitweb/autoinstalls/wordpress.git/blobdiff_plain/9e77185fafaf4e60e2b73821e0e4b9b1a11fb85f..1132430022383fdf47fa6cb9377300fd885297aa:/wp-admin/press-this.php diff --git a/wp-admin/press-this.php b/wp-admin/press-this.php index 5daa2f9b..6ae7341f 100644 --- a/wp-admin/press-this.php +++ b/wp-admin/press-this.php @@ -14,7 +14,7 @@ require_once( dirname( __FILE__ ) . '/admin.php' ); header('Content-Type: ' . get_option('html_type') . '; charset=' . get_option('blog_charset')); if ( ! current_user_can( 'edit_posts' ) || ! current_user_can( get_post_type_object( 'post' )->cap->create_posts ) ) - wp_die( __( 'Cheatin’ uh?' ) ); + wp_die( __( 'Cheatin’ uh?' ), 403 ); /** * Press It form handler. @@ -63,7 +63,7 @@ function press_it() { // Error handling for media_sideload. if ( is_wp_error($upload) ) { wp_delete_post($post_ID); - wp_die($upload); + wp_die( esc_html( $upload->get_error_message() ) ); } else { // Post formats. if ( isset( $_POST['post_format'] ) ) { @@ -149,9 +149,9 @@ if ( !empty($_REQUEST['ajax']) ) {

- + - <?php echo esc_attr(__('Click to insert.')); ?> + <?php esc_attr_e( 'Click to insert.' ); ?>