-
diff --git a/wp-admin/css/customize-controls-rtl.css b/wp-admin/css/customize-controls-rtl.css
index 39c635af72..def7434a75 100644
a
|
b
|
p.customize-section-description { |
2395 | 2395 | } |
2396 | 2396 | |
2397 | 2397 | /* Handle cheaters. */ |
2398 | | body.cheatin { |
| 2398 | body.unidentified-error { |
2399 | 2399 | font-size: medium; |
2400 | 2400 | height: auto; |
2401 | 2401 | background: #fff; |
… |
… |
body.cheatin { |
2406 | 2406 | box-shadow: 0 1px 3px rgba(0,0,0,0.13); |
2407 | 2407 | } |
2408 | 2408 | |
2409 | | body.cheatin h1 { |
| 2409 | body.unidentified-error h1 { |
2410 | 2410 | border-bottom: 1px solid #ddd; |
2411 | 2411 | clear: both; |
2412 | 2412 | color: #555d66; |
… |
… |
body.cheatin h1 { |
2417 | 2417 | padding-bottom: 7px; |
2418 | 2418 | } |
2419 | 2419 | |
2420 | | body.cheatin p { |
| 2420 | body.unidentified-error p { |
2421 | 2421 | font-size: 14px; |
2422 | 2422 | line-height: 1.5; |
2423 | 2423 | margin: 25px 0 20px; |
-
diff --git a/wp-admin/css/customize-controls.css b/wp-admin/css/customize-controls.css
index b595e2a8da..021c1f2d33 100644
a
|
b
|
p.customize-section-description { |
2395 | 2395 | } |
2396 | 2396 | |
2397 | 2397 | /* Handle cheaters. */ |
2398 | | body.cheatin { |
| 2398 | body.unidentified-error { |
2399 | 2399 | font-size: medium; |
2400 | 2400 | height: auto; |
2401 | 2401 | background: #fff; |
… |
… |
body.cheatin { |
2406 | 2406 | box-shadow: 0 1px 3px rgba(0,0,0,0.13); |
2407 | 2407 | } |
2408 | 2408 | |
2409 | | body.cheatin h1 { |
| 2409 | body.unidentified-error h1 { |
2410 | 2410 | border-bottom: 1px solid #ddd; |
2411 | 2411 | clear: both; |
2412 | 2412 | color: #555d66; |
… |
… |
body.cheatin h1 { |
2417 | 2417 | padding-bottom: 7px; |
2418 | 2418 | } |
2419 | 2419 | |
2420 | | body.cheatin p { |
| 2420 | body.unidentified-error p { |
2421 | 2421 | font-size: 14px; |
2422 | 2422 | line-height: 1.5; |
2423 | 2423 | margin: 25px 0 20px; |
-
diff --git a/wp-admin/custom-header.php b/wp-admin/custom-header.php
index c1a7896589..811c1bb48a 100644
a
|
b
|
wp_nonce_field( 'custom-header-options', '_wpnonce-custom-header-options' ); |
758 | 758 | check_admin_referer( 'custom-header-upload', '_wpnonce-custom-header-upload' ); |
759 | 759 | if ( ! current_theme_supports( 'custom-header', 'uploads' ) ) { |
760 | 760 | wp_die( |
761 | | '<h1>' . __( 'Cheatin’ uh?' ) . '</h1>' . |
| 761 | '<h1>' . __( 'An unidentified error has occurred.' ) . '</h1>' . |
762 | 762 | '<p>' . __( 'The current theme does not support uploading a custom header image.' ) . '</p>', |
763 | 763 | 403 |
764 | 764 | ); |
… |
… |
wp_nonce_field( 'custom-header-options', '_wpnonce-custom-header-options' ); |
922 | 922 | |
923 | 923 | if ( ! current_theme_supports( 'custom-header', 'uploads' ) ) { |
924 | 924 | wp_die( |
925 | | '<h1>' . __( 'Cheatin’ uh?' ) . '</h1>' . |
| 925 | '<h1>' . __( 'An unidentified error has occurred.' ) . '</h1>' . |
926 | 926 | '<p>' . __( 'The current theme does not support uploading a custom header image.' ) . '</p>', |
927 | 927 | 403 |
928 | 928 | ); |
… |
… |
wp_nonce_field( 'custom-header-options', '_wpnonce-custom-header-options' ); |
930 | 930 | |
931 | 931 | if ( ! empty( $_POST['skip-cropping'] ) && ! ( current_theme_supports( 'custom-header', 'flex-height' ) || current_theme_supports( 'custom-header', 'flex-width' ) ) ) { |
932 | 932 | wp_die( |
933 | | '<h1>' . __( 'Cheatin’ uh?' ) . '</h1>' . |
| 933 | '<h1>' . __( 'An unidentified error has occurred.' ) . '</h1>' . |
934 | 934 | '<p>' . __( 'The current theme does not support a flexible sized header image.' ) . '</p>', |
935 | 935 | 403 |
936 | 936 | ); |
-
diff --git a/wp-admin/customize.php b/wp-admin/customize.php
index e54e2170bb..25651a9b1d 100644
a
|
b
|
require_once( dirname( __FILE__ ) . '/admin.php' ); |
14 | 14 | |
15 | 15 | if ( ! current_user_can( 'customize' ) ) { |
16 | 16 | wp_die( |
17 | | '<h1>' . __( 'Cheatin’ uh?' ) . '</h1>' . |
| 17 | '<h1>' . __( 'An unidentified error has occurred.' ) . '</h1>' . |
18 | 18 | '<p>' . __( 'Sorry, you are not allowed to customize this site.' ) . '</p>', |
19 | 19 | 403 |
20 | 20 | ); |
… |
… |
if ( $wp_customize->changeset_post_id() ) { |
31 | 31 | |
32 | 32 | if ( ! current_user_can( get_post_type_object( 'customize_changeset' )->cap->edit_post, $changeset_post->ID ) ) { |
33 | 33 | wp_die( |
34 | | '<h1>' . __( 'Cheatin’ uh?' ) . '</h1>' . |
| 34 | '<h1>' . __( 'An unidentified error has occurred.' ) . '</h1>' . |
35 | 35 | '<p>' . __( 'Sorry, you are not allowed to edit this changeset.' ) . '</p>', |
36 | 36 | 403 |
37 | 37 | ); |
… |
… |
if ( $wp_customize->changeset_post_id() ) { |
76 | 76 | |
77 | 77 | if ( in_array( get_post_status( $changeset_post->ID ), array( 'publish', 'trash' ), true ) ) { |
78 | 78 | wp_die( |
79 | | '<h1>' . __( 'Cheatin’ uh?' ) . '</h1>' . |
| 79 | '<h1>' . __( 'An unidentified error has occurred.' ) . '</h1>' . |
80 | 80 | '<p>' . __( 'This changeset cannot be further modified.' ) . '</p>' . |
81 | 81 | '<p><a href="' . esc_url( remove_query_arg( 'changeset_uuid' ) ) . '">' . __( 'Customize New Changes' ) . '</a></p>', |
82 | 82 | 403 |
-
diff --git a/wp-admin/edit-comments.php b/wp-admin/edit-comments.php
index 85c04ead57..6daf00a0da 100644
a
|
b
|
|
10 | 10 | require_once( dirname( __FILE__ ) . '/admin.php' ); |
11 | 11 | if ( ! current_user_can( 'edit_posts' ) ) { |
12 | 12 | wp_die( |
13 | | '<h1>' . __( 'Cheatin’ uh?' ) . '</h1>' . |
| 13 | '<h1>' . __( 'An unidentified error has occurred.' ) . '</h1>' . |
14 | 14 | '<p>' . __( 'Sorry, you are not allowed to edit comments.' ) . '</p>', |
15 | 15 | 403 |
16 | 16 | ); |
-
diff --git a/wp-admin/edit-tags.php b/wp-admin/edit-tags.php
index c49b61b2cb..3d3dc4ba29 100644
a
|
b
|
if ( ! in_array( $tax->name, get_taxonomies( array( 'show_ui' => true ) ) ) ) { |
25 | 25 | |
26 | 26 | if ( ! current_user_can( $tax->cap->manage_terms ) ) { |
27 | 27 | wp_die( |
28 | | '<h1>' . __( 'Cheatin’ uh?' ) . '</h1>' . |
| 28 | '<h1>' . __( 'An unidentified error has occurred.' ) . '</h1>' . |
29 | 29 | '<p>' . __( 'Sorry, you are not allowed to manage terms in this taxonomy.' ) . '</p>', |
30 | 30 | 403 |
31 | 31 | ); |
… |
… |
switch ( $wp_list_table->current_action() ) { |
81 | 81 | |
82 | 82 | if ( ! current_user_can( $tax->cap->edit_terms ) ) { |
83 | 83 | wp_die( |
84 | | '<h1>' . __( 'Cheatin’ uh?' ) . '</h1>' . |
| 84 | '<h1>' . __( 'An unidentified error has occurred.' ) . '</h1>' . |
85 | 85 | '<p>' . __( 'Sorry, you are not allowed to create terms in this taxonomy.' ) . '</p>', |
86 | 86 | 403 |
87 | 87 | ); |
… |
… |
switch ( $wp_list_table->current_action() ) { |
111 | 111 | |
112 | 112 | if ( ! current_user_can( 'delete_term', $tag_ID ) ) { |
113 | 113 | wp_die( |
114 | | '<h1>' . __( 'Cheatin’ uh?' ) . '</h1>' . |
| 114 | '<h1>' . __( 'An unidentified error has occurred.' ) . '</h1>' . |
115 | 115 | '<p>' . __( 'Sorry, you are not allowed to delete this item.' ) . '</p>', |
116 | 116 | 403 |
117 | 117 | ); |
… |
… |
switch ( $wp_list_table->current_action() ) { |
131 | 131 | |
132 | 132 | if ( ! current_user_can( $tax->cap->delete_terms ) ) { |
133 | 133 | wp_die( |
134 | | '<h1>' . __( 'Cheatin’ uh?' ) . '</h1>' . |
| 134 | '<h1>' . __( 'An unidentified error has occurred.' ) . '</h1>' . |
135 | 135 | '<p>' . __( 'Sorry, you are not allowed to delete these items.' ) . '</p>', |
136 | 136 | 403 |
137 | 137 | ); |
… |
… |
switch ( $wp_list_table->current_action() ) { |
167 | 167 | |
168 | 168 | if ( ! current_user_can( 'edit_term', $tag_ID ) ) { |
169 | 169 | wp_die( |
170 | | '<h1>' . __( 'Cheatin’ uh?' ) . '</h1>' . |
| 170 | '<h1>' . __( 'An unidentified error has occurred.' ) . '</h1>' . |
171 | 171 | '<p>' . __( 'Sorry, you are not allowed to edit this item.' ) . '</p>', |
172 | 172 | 403 |
173 | 173 | ); |
-
diff --git a/wp-admin/edit.php b/wp-admin/edit.php
index f629734c18..e00da3d449 100644
a
|
b
|
if ( ! $post_type_object ) { |
38 | 38 | |
39 | 39 | if ( ! current_user_can( $post_type_object->cap->edit_posts ) ) { |
40 | 40 | wp_die( |
41 | | '<h1>' . __( 'Cheatin’ uh?' ) . '</h1>' . |
| 41 | '<h1>' . __( 'An unidentified error has occurred.' ) . '</h1>' . |
42 | 42 | '<p>' . __( 'Sorry, you are not allowed to edit posts in this post type.' ) . '</p>', |
43 | 43 | 403 |
44 | 44 | ); |
-
diff --git a/wp-admin/includes/bookmark.php b/wp-admin/includes/bookmark.php
index 285d716c2a..acae1a69b8 100644
a
|
b
|
function add_link() { |
28 | 28 | function edit_link( $link_id = 0 ) { |
29 | 29 | if ( ! current_user_can( 'manage_links' ) ) { |
30 | 30 | wp_die( |
31 | | '<h1>' . __( 'Cheatin’ uh?' ) . '</h1>' . |
| 31 | '<h1>' . __( 'An unidentified error has occurred.' ) . '</h1>' . |
32 | 32 | '<p>' . __( 'Sorry, you are not allowed to edit the links for this site.' ) . '</p>', |
33 | 33 | 403 |
34 | 34 | ); |
-
diff --git a/wp-admin/js/customize-controls.js b/wp-admin/js/customize-controls.js
index d9db2e600a..0d1506aae0 100644
a
|
b
|
|
6334 | 6334 | |
6335 | 6335 | // Check for cheaters. |
6336 | 6336 | if ( -1 === error ) { |
6337 | | deferred.rejectWith( previewFrame, [ 'cheatin' ] ); |
| 6337 | deferred.rejectWith( previewFrame, [ 'unidentifiedError' ] ); |
6338 | 6338 | return; |
6339 | 6339 | } |
6340 | 6340 | |
… |
… |
|
6786 | 6786 | previewer.login().done( previewer.refresh ); |
6787 | 6787 | } |
6788 | 6788 | |
6789 | | if ( 'cheatin' === reason ) { |
6790 | | previewer.cheatin(); |
| 6789 | if ( 'unidentifiedError' === reason ) { |
| 6790 | previewer.unidentifiedError(); |
6791 | 6791 | } |
6792 | 6792 | }); |
6793 | 6793 | }, |
… |
… |
|
6826 | 6826 | }); |
6827 | 6827 | |
6828 | 6828 | refreshNonces.fail( function() { |
6829 | | previewer.cheatin(); |
| 6829 | previewer.unidentifiedError(); |
6830 | 6830 | deferred.reject(); |
6831 | 6831 | }); |
6832 | 6832 | }); |
… |
… |
|
6834 | 6834 | return this._login; |
6835 | 6835 | }, |
6836 | 6836 | |
6837 | | cheatin: function() { |
6838 | | $( document.body ).empty().addClass( 'cheatin' ).append( |
6839 | | '<h1>' + api.l10n.cheatin + '</h1>' + |
| 6837 | unidentifiedError: function() { |
| 6838 | $( document.body ).empty().addClass( 'unidentified-error' ).append( |
| 6839 | '<h1>' + api.l10n.unidentifiedError + '</h1>' + |
6840 | 6840 | '<p>' + api.l10n.notAllowed + '</p>' |
6841 | 6841 | ); |
6842 | 6842 | }, |
… |
… |
|
7575 | 7575 | } |
7576 | 7576 | |
7577 | 7577 | if ( 'invalid_nonce' === response ) { |
7578 | | previewer.cheatin(); |
| 7578 | previewer.unidentifiedError(); |
7579 | 7579 | } else if ( 'not_logged_in' === response ) { |
7580 | 7580 | previewer.preview.iframe.hide(); |
7581 | 7581 | previewer.login().done( function() { |
-
diff --git a/wp-admin/js/customize-widgets.js b/wp-admin/js/customize-widgets.js
index 40b514876b..f4c0359d53 100644
a
|
b
|
|
1226 | 1226 | |
1227 | 1227 | // Check for cheaters. |
1228 | 1228 | if ( '-1' === r ) { |
1229 | | api.previewer.cheatin(); |
| 1229 | api.previewer.unidentifiedError(); |
1230 | 1230 | return; |
1231 | 1231 | } |
1232 | 1232 | |
-
diff --git a/wp-admin/media-upload.php b/wp-admin/media-upload.php
index 7b0bd53806..47e753006b 100644
a
|
b
|
$post_id = isset( $post_id ) ? (int) $post_id : 0; |
35 | 35 | // Require an ID for the edit screen. |
36 | 36 | if ( isset( $action ) && $action == 'edit' && ! $ID ) { |
37 | 37 | wp_die( |
38 | | '<h1>' . __( 'Cheatin’ uh?' ) . '</h1>' . |
| 38 | '<h1>' . __( 'An unidentified error has occurred.' ) . '</h1>' . |
39 | 39 | '<p>' . __( 'Invalid item ID.' ) . '</p>', |
40 | 40 | 403 |
41 | 41 | ); |
… |
… |
if ( isset( $action ) && $action == 'edit' && ! $ID ) { |
43 | 43 | |
44 | 44 | if ( ! empty( $_REQUEST['post_id'] ) && ! current_user_can( 'edit_post', $_REQUEST['post_id'] ) ) { |
45 | 45 | wp_die( |
46 | | '<h1>' . __( 'Cheatin’ uh?' ) . '</h1>' . |
| 46 | '<h1>' . __( 'An unidentified error has occurred.' ) . '</h1>' . |
47 | 47 | '<p>' . __( 'Sorry, you are not allowed to edit this item.' ) . '</p>', |
48 | 48 | 403 |
49 | 49 | ); |
-
diff --git a/wp-admin/nav-menus.php b/wp-admin/nav-menus.php
index c73a05878a..e580a0048d 100644
a
|
b
|
if ( ! current_theme_supports( 'menus' ) && ! current_theme_supports( 'widgets' |
22 | 22 | // Permissions Check |
23 | 23 | if ( ! current_user_can( 'edit_theme_options' ) ) { |
24 | 24 | wp_die( |
25 | | '<h1>' . __( 'Cheatin’ uh?' ) . '</h1>' . |
| 25 | '<h1>' . __( 'An unidentified error has occurred.' ) . '</h1>' . |
26 | 26 | '<p>' . __( 'Sorry, you are not allowed to edit theme options on this site.' ) . '</p>', |
27 | 27 | 403 |
28 | 28 | ); |
-
diff --git a/wp-admin/network/site-users.php b/wp-admin/network/site-users.php
index d1a125b844..51ef92f1a2 100644
a
|
b
|
if ( $action ) { |
159 | 159 | // If the user doesn't already belong to the blog, bail. |
160 | 160 | if ( ! is_user_member_of_blog( $user_id ) ) { |
161 | 161 | wp_die( |
162 | | '<h1>' . __( 'Cheatin’ uh?' ) . '</h1>' . |
| 162 | '<h1>' . __( 'An unidentified error has occurred.' ) . '</h1>' . |
163 | 163 | '<p>' . __( 'One of the selected users is not a member of this site.' ) . '</p>', |
164 | 164 | 403 |
165 | 165 | ); |
-
diff --git a/wp-admin/options.php b/wp-admin/options.php
index b2ecfc816e..12f6b60003 100644
a
|
b
|
if ( empty( $option_page ) ) { |
46 | 46 | |
47 | 47 | if ( ! current_user_can( $capability ) ) { |
48 | 48 | wp_die( |
49 | | '<h1>' . __( 'Cheatin’ uh?' ) . '</h1>' . |
| 49 | '<h1>' . __( 'An unidentified error has occurred.' ) . '</h1>' . |
50 | 50 | '<p>' . __( 'Sorry, you are not allowed to manage these options.' ) . '</p>', |
51 | 51 | 403 |
52 | 52 | ); |
… |
… |
if ( ! empty( $_GET['adminhash'] ) ) { |
74 | 74 | |
75 | 75 | if ( is_multisite() && ! current_user_can( 'manage_network_options' ) && 'update' != $action ) { |
76 | 76 | wp_die( |
77 | | '<h1>' . __( 'Cheatin’ uh?' ) . '</h1>' . |
| 77 | '<h1>' . __( 'An unidentified error has occurred.' ) . '</h1>' . |
78 | 78 | '<p>' . __( 'Sorry, you are not allowed to delete these items.' ) . '</p>', |
79 | 79 | 403 |
80 | 80 | ); |
-
diff --git a/wp-admin/post-new.php b/wp-admin/post-new.php
index 7c09650b85..a9b60f8527 100644
a
|
b
|
$editing = true; |
57 | 57 | |
58 | 58 | if ( ! current_user_can( $post_type_object->cap->edit_posts ) || ! current_user_can( $post_type_object->cap->create_posts ) ) { |
59 | 59 | wp_die( |
60 | | '<h1>' . __( 'Cheatin’ uh?' ) . '</h1>' . |
| 60 | '<h1>' . __( 'An unidentified error has occurred.' ) . '</h1>' . |
61 | 61 | '<p>' . __( 'Sorry, you are not allowed to create posts as this user.' ) . '</p>', |
62 | 62 | 403 |
63 | 63 | ); |
-
diff --git a/wp-admin/press-this.php b/wp-admin/press-this.php
index 8f97728fec..95b13d19ce 100644
a
|
b
|
function wp_load_press_this() { |
18 | 18 | if ( ! current_user_can( 'edit_posts' ) || ! current_user_can( get_post_type_object( 'post' )->cap->create_posts ) ) { |
19 | 19 | wp_die( |
20 | 20 | __( 'Sorry, you are not allowed to create posts as this user.' ), |
21 | | __( 'Cheatin’ uh?' ), |
| 21 | __( 'An unidentified error has occurred.' ), |
22 | 22 | 403 |
23 | 23 | ); |
24 | 24 | } elseif ( is_plugin_active( $plugin_file ) ) { |
-
diff --git a/wp-admin/term.php b/wp-admin/term.php
index b8331828b4..59b7a7dd17 100644
a
|
b
|
if ( ! in_array( $taxonomy, get_taxonomies( array( 'show_ui' => true ) ) ) || |
34 | 34 | ! current_user_can( 'edit_term', $tag->term_id ) ) { |
35 | 35 | |
36 | 36 | wp_die( |
37 | | '<h1>' . __( 'Cheatin’ uh?' ) . '</h1>' . |
| 37 | '<h1>' . __( 'An unidentified error has occurred.' ) . '</h1>' . |
38 | 38 | '<p>' . __( 'Sorry, you are not allowed to edit this item.' ) . '</p>', |
39 | 39 | 403 |
40 | 40 | ); |
-
diff --git a/wp-admin/themes.php b/wp-admin/themes.php
index b399f92f67..923d4b40a5 100644
a
|
b
|
require_once( dirname( __FILE__ ) . '/admin.php' ); |
11 | 11 | |
12 | 12 | if ( ! current_user_can( 'switch_themes' ) && ! current_user_can( 'edit_theme_options' ) ) { |
13 | 13 | wp_die( |
14 | | '<h1>' . __( 'Cheatin’ uh?' ) . '</h1>' . |
| 14 | '<h1>' . __( 'An unidentified error has occurred.' ) . '</h1>' . |
15 | 15 | '<p>' . __( 'Sorry, you are not allowed to edit theme options on this site.' ) . '</p>', |
16 | 16 | 403 |
17 | 17 | ); |
… |
… |
if ( current_user_can( 'switch_themes' ) && isset( $_GET['action'] ) ) { |
24 | 24 | |
25 | 25 | if ( ! $theme->exists() || ! $theme->is_allowed() ) { |
26 | 26 | wp_die( |
27 | | '<h1>' . __( 'Cheatin’ uh?' ) . '</h1>' . |
| 27 | '<h1>' . __( 'An unidentified error has occurred.' ) . '</h1>' . |
28 | 28 | '<p>' . __( 'The requested theme does not exist.' ) . '</p>', |
29 | 29 | 403 |
30 | 30 | ); |
… |
… |
if ( current_user_can( 'switch_themes' ) && isset( $_GET['action'] ) ) { |
39 | 39 | |
40 | 40 | if ( ! current_user_can( 'delete_themes' ) ) { |
41 | 41 | wp_die( |
42 | | '<h1>' . __( 'Cheatin’ uh?' ) . '</h1>' . |
| 42 | '<h1>' . __( 'An unidentified error has occurred.' ) . '</h1>' . |
43 | 43 | '<p>' . __( 'Sorry, you are not allowed to delete this item.' ) . '</p>', |
44 | 44 | 403 |
45 | 45 | ); |
… |
… |
if ( current_user_can( 'switch_themes' ) && isset( $_GET['action'] ) ) { |
47 | 47 | |
48 | 48 | if ( ! $theme->exists() ) { |
49 | 49 | wp_die( |
50 | | '<h1>' . __( 'Cheatin’ uh?' ) . '</h1>' . |
| 50 | '<h1>' . __( 'An unidentified error has occurred.' ) . '</h1>' . |
51 | 51 | '<p>' . __( 'The requested theme does not exist.' ) . '</p>', |
52 | 52 | 403 |
53 | 53 | ); |
-
diff --git a/wp-admin/user-new.php b/wp-admin/user-new.php
index 59e68dad76..4dddcdf01b 100644
a
|
b
|
require_once( dirname( __FILE__ ) . '/admin.php' ); |
12 | 12 | if ( is_multisite() ) { |
13 | 13 | if ( ! current_user_can( 'create_users' ) && ! current_user_can( 'promote_users' ) ) { |
14 | 14 | wp_die( |
15 | | '<h1>' . __( 'Cheatin’ uh?' ) . '</h1>' . |
| 15 | '<h1>' . __( 'An unidentified error has occurred.' ) . '</h1>' . |
16 | 16 | '<p>' . __( 'Sorry, you are not allowed to add users to this network.' ) . '</p>', |
17 | 17 | 403 |
18 | 18 | ); |
19 | 19 | } |
20 | 20 | } elseif ( ! current_user_can( 'create_users' ) ) { |
21 | 21 | wp_die( |
22 | | '<h1>' . __( 'Cheatin’ uh?' ) . '</h1>' . |
| 22 | '<h1>' . __( 'An unidentified error has occurred.' ) . '</h1>' . |
23 | 23 | '<p>' . __( 'Sorry, you are not allowed to create users.' ) . '</p>', |
24 | 24 | 403 |
25 | 25 | ); |
… |
… |
if ( isset( $_REQUEST['action'] ) && 'adduser' == $_REQUEST['action'] ) { |
52 | 52 | |
53 | 53 | if ( ! current_user_can( 'promote_user', $user_details->ID ) ) { |
54 | 54 | wp_die( |
55 | | '<h1>' . __( 'Cheatin’ uh?' ) . '</h1>' . |
| 55 | '<h1>' . __( 'An unidentified error has occurred.' ) . '</h1>' . |
56 | 56 | '<p>' . __( 'Sorry, you are not allowed to add users to this network.' ) . '</p>', |
57 | 57 | 403 |
58 | 58 | ); |
… |
… |
Please click the following link to confirm the invite: |
136 | 136 | |
137 | 137 | if ( ! current_user_can( 'create_users' ) ) { |
138 | 138 | wp_die( |
139 | | '<h1>' . __( 'Cheatin’ uh?' ) . '</h1>' . |
| 139 | '<h1>' . __( 'An unidentified error has occurred.' ) . '</h1>' . |
140 | 140 | '<p>' . __( 'Sorry, you are not allowed to create users.' ) . '</p>', |
141 | 141 | 403 |
142 | 142 | ); |
-
diff --git a/wp-admin/users.php b/wp-admin/users.php
index ac47c392c4..d95e72f43e 100644
a
|
b
|
require_once( dirname( __FILE__ ) . '/admin.php' ); |
12 | 12 | |
13 | 13 | if ( ! current_user_can( 'list_users' ) ) { |
14 | 14 | wp_die( |
15 | | '<h1>' . __( 'Cheatin’ uh?' ) . '</h1>' . |
| 15 | '<h1>' . __( 'An unidentified error has occurred.' ) . '</h1>' . |
16 | 16 | '<p>' . __( 'Sorry, you are not allowed to list users.' ) . '</p>', |
17 | 17 | 403 |
18 | 18 | ); |
… |
… |
switch ( $wp_list_table->current_action() ) { |
141 | 141 | // If the user doesn't already belong to the blog, bail. |
142 | 142 | if ( is_multisite() && ! is_user_member_of_blog( $id ) ) { |
143 | 143 | wp_die( |
144 | | '<h1>' . __( 'Cheatin’ uh?' ) . '</h1>' . |
| 144 | '<h1>' . __( 'An unidentified error has occurred.' ) . '</h1>' . |
145 | 145 | '<p>' . __( 'One of the selected users is not a member of this site.' ) . '</p>', |
146 | 146 | 403 |
147 | 147 | ); |
-
diff --git a/wp-admin/widgets.php b/wp-admin/widgets.php
index 533767023a..711c910c6e 100644
a
|
b
|
require_once( ABSPATH . 'wp-admin/includes/widgets.php' ); |
14 | 14 | |
15 | 15 | if ( ! current_user_can( 'edit_theme_options' ) ) { |
16 | 16 | wp_die( |
17 | | '<h1>' . __( 'Cheatin’ uh?' ) . '</h1>' . |
| 17 | '<h1>' . __( 'An unidentified error has occurred.' ) . '</h1>' . |
18 | 18 | '<p>' . __( 'Sorry, you are not allowed to edit theme options on this site.' ) . '</p>', |
19 | 19 | 403 |
20 | 20 | ); |
-
diff --git a/wp-includes/class-wp-customize-manager.php b/wp-includes/class-wp-customize-manager.php
index fe22d87a06..a9ced414df 100644
a
|
b
|
final class WP_Customize_Manager { |
447 | 447 | } |
448 | 448 | |
449 | 449 | if ( ! $message ) { |
450 | | $message = __( 'Cheatin’ uh?' ); |
| 450 | $message = __( 'An unidentified error has occurred.' ); |
451 | 451 | } |
452 | 452 | |
453 | 453 | if ( $this->messenger_channel ) { |
… |
… |
final class WP_Customize_Manager { |
512 | 512 | auth_redirect(); |
513 | 513 | } else { |
514 | 514 | wp_die( |
515 | | '<h1>' . __( 'Cheatin’ uh?' ) . '</h1>' . |
| 515 | '<h1>' . __( 'An unidentified error has occurred.' ) . '</h1>' . |
516 | 516 | '<p>' . __( 'Sorry, you are not allowed to customize this site.' ) . '</p>', |
517 | 517 | 403 |
518 | 518 | ); |
-
diff --git a/wp-includes/script-loader.php b/wp-includes/script-loader.php
index a490e6c5af..b11db518dc 100644
a
|
b
|
function wp_default_scripts( &$scripts ) { |
604 | 604 | 'close' => __( 'Close' ), |
605 | 605 | 'action' => __( 'Action' ), |
606 | 606 | 'discardChanges' => __( 'Discard changes' ), |
607 | | 'cheatin' => __( 'Cheatin’ uh?' ), |
| 607 | 'unidentifiedError' => __( 'An unidentified error has occurred.' ), |
608 | 608 | 'notAllowed' => __( 'Sorry, you are not allowed to customize this site.' ), |
609 | 609 | 'previewIframeTitle' => __( 'Site Preview' ), |
610 | 610 | 'loginIframeTitle' => __( 'Session expired' ), |