~canonical-sysadmins/wordpress/4.9.8

« back to all changes in this revision

Viewing changes to wp-admin/media-upload.php

  • Committer: Barry Price
  • Date: 2018-04-10 03:27:48 UTC
  • mfrom: (1.2.4 upstream)
  • Revision ID: barryprice@flollop-20180410032748-da232uugwx07f9m8
Merge WP4.9.5 from upstream

Show diffs side-by-side

added added

removed removed

Lines of Context:
34
34
// Require an ID for the edit screen.
35
35
if ( isset( $action ) && $action == 'edit' && !$ID ) {
36
36
        wp_die(
37
 
                '<h1>' . __( 'Cheatin&#8217; uh?' ) . '</h1>' .
 
37
                '<h1>' . __( 'Something went wrong.' ) . '</h1>' .
38
38
                '<p>' . __( 'Invalid item ID.' ) . '</p>',
39
39
                403
40
40
        );
42
42
 
43
43
if ( ! empty( $_REQUEST['post_id'] ) && ! current_user_can( 'edit_post' , $_REQUEST['post_id'] ) ) {
44
44
        wp_die(
45
 
                '<h1>' . __( 'Cheatin&#8217; uh?' ) . '</h1>' .
 
45
                '<h1>' . __( 'You need a higher level of permission.' ) . '</h1>' .
46
46
                '<p>' . __( 'Sorry, you are not allowed to edit this item.' ) . '</p>',
47
47
                403
48
48
        );