Changeset 42648
- Timestamp:
- 02/05/2018 02:29:53 AM (7 years ago)
- Location:
- trunk/src
- Files:
-
- 24 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/custom-header.php
r42343 r42648 759 759 if ( ! current_theme_supports( 'custom-header', 'uploads' ) ) { 760 760 wp_die( 761 '<h1>' . __( ' Cheatin’ uh?' ) . '</h1>' .761 '<h1>' . __( 'An error has occurred.' ) . '</h1>' . 762 762 '<p>' . __( 'The current theme does not support uploading a custom header image.' ) . '</p>', 763 763 403 … … 923 923 if ( ! current_theme_supports( 'custom-header', 'uploads' ) ) { 924 924 wp_die( 925 '<h1>' . __( ' Cheatin’ uh?' ) . '</h1>' .925 '<h1>' . __( 'An error has occurred.' ) . '</h1>' . 926 926 '<p>' . __( 'The current theme does not support uploading a custom header image.' ) . '</p>', 927 927 403 … … 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 error has occurred.' ) . '</h1>' . 934 934 '<p>' . __( 'The current theme does not support a flexible sized header image.' ) . '</p>', 935 935 403 -
trunk/src/wp-admin/customize.php
r42343 r42648 15 15 if ( ! current_user_can( 'customize' ) ) { 16 16 wp_die( 17 '<h1>' . __( ' Cheatin’ uh?' ) . '</h1>' .17 '<h1>' . __( 'You don’t have permission to do this.' ) . '</h1>' . 18 18 '<p>' . __( 'Sorry, you are not allowed to customize this site.' ) . '</p>', 19 19 403 … … 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>' . __( 'You don’t have permission to do this.' ) . '</h1>' . 35 35 '<p>' . __( 'Sorry, you are not allowed to edit this changeset.' ) . '</p>', 36 36 403 … … 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 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>', -
trunk/src/wp-admin/edit-comments.php
r42343 r42648 11 11 if ( ! current_user_can( 'edit_posts' ) ) { 12 12 wp_die( 13 '<h1>' . __( ' Cheatin’ uh?' ) . '</h1>' .13 '<h1>' . __( 'You don’t have permission to do this.' ) . '</h1>' . 14 14 '<p>' . __( 'Sorry, you are not allowed to edit comments.' ) . '</p>', 15 15 403 -
trunk/src/wp-admin/edit-tags.php
r42343 r42648 26 26 if ( ! current_user_can( $tax->cap->manage_terms ) ) { 27 27 wp_die( 28 '<h1>' . __( ' Cheatin’ uh?' ) . '</h1>' .28 '<h1>' . __( 'You don’t have permission to do this.' ) . '</h1>' . 29 29 '<p>' . __( 'Sorry, you are not allowed to manage terms in this taxonomy.' ) . '</p>', 30 30 403 … … 82 82 if ( ! current_user_can( $tax->cap->edit_terms ) ) { 83 83 wp_die( 84 '<h1>' . __( ' Cheatin’ uh?' ) . '</h1>' .84 '<h1>' . __( 'You don’t have permission to do this.' ) . '</h1>' . 85 85 '<p>' . __( 'Sorry, you are not allowed to create terms in this taxonomy.' ) . '</p>', 86 86 403 … … 112 112 if ( ! current_user_can( 'delete_term', $tag_ID ) ) { 113 113 wp_die( 114 '<h1>' . __( ' Cheatin’ uh?' ) . '</h1>' .114 '<h1>' . __( 'You don’t have permission to do this.' ) . '</h1>' . 115 115 '<p>' . __( 'Sorry, you are not allowed to delete this item.' ) . '</p>', 116 116 403 … … 132 132 if ( ! current_user_can( $tax->cap->delete_terms ) ) { 133 133 wp_die( 134 '<h1>' . __( ' Cheatin’ uh?' ) . '</h1>' .134 '<h1>' . __( 'You don’t have permission to do this.' ) . '</h1>' . 135 135 '<p>' . __( 'Sorry, you are not allowed to delete these items.' ) . '</p>', 136 136 403 … … 168 168 if ( ! current_user_can( 'edit_term', $tag_ID ) ) { 169 169 wp_die( 170 '<h1>' . __( ' Cheatin’ uh?' ) . '</h1>' .170 '<h1>' . __( 'You don’t have permission to do this.' ) . '</h1>' . 171 171 '<p>' . __( 'Sorry, you are not allowed to edit this item.' ) . '</p>', 172 172 403 -
trunk/src/wp-admin/edit.php
r42343 r42648 39 39 if ( ! current_user_can( $post_type_object->cap->edit_posts ) ) { 40 40 wp_die( 41 '<h1>' . __( ' Cheatin’ uh?' ) . '</h1>' .41 '<h1>' . __( 'You don’t have permission to do this.' ) . '</h1>' . 42 42 '<p>' . __( 'Sorry, you are not allowed to edit posts in this post type.' ) . '</p>', 43 43 403 -
trunk/src/wp-admin/includes/bookmark.php
r42343 r42648 29 29 if ( ! current_user_can( 'manage_links' ) ) { 30 30 wp_die( 31 '<h1>' . __( ' Cheatin’ uh?' ) . '</h1>' .31 '<h1>' . __( 'You don’t have permission to do this.' ) . '</h1>' . 32 32 '<p>' . __( 'Sorry, you are not allowed to edit the links for this site.' ) . '</p>', 33 33 403 -
trunk/src/wp-admin/includes/file.php
r42525 r42648 592 592 593 593 if ( ! isset( $result['message'] ) ) { 594 $message = __( 'An unidentifiederror has occurred.' );594 $message = __( 'An error has occurred.' ); 595 595 } else { 596 596 $message = $result['message']; -
trunk/src/wp-admin/js/customize-controls.js
r42612 r42648 6837 6837 cheatin: function() { 6838 6838 $( document.body ).empty().addClass( 'cheatin' ).append( 6839 '<h1>' + api.l10n. cheatin+ '</h1>' +6839 '<h1>' + api.l10n.notAllowedHeading + '</h1>' + 6840 6840 '<p>' + api.l10n.notAllowed + '</p>' 6841 6841 ); -
trunk/src/wp-admin/media-upload.php
r42343 r42648 36 36 if ( isset( $action ) && $action == 'edit' && ! $ID ) { 37 37 wp_die( 38 '<h1>' . __( ' Cheatin’ uh?' ) . '</h1>' .38 '<h1>' . __( 'An error has occurred.' ) . '</h1>' . 39 39 '<p>' . __( 'Invalid item ID.' ) . '</p>', 40 40 403 … … 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>' . __( 'You don’t have permission to do this.' ) . '</h1>' . 47 47 '<p>' . __( 'Sorry, you are not allowed to edit this item.' ) . '</p>', 48 48 403 -
trunk/src/wp-admin/nav-menus.php
r42343 r42648 23 23 if ( ! current_user_can( 'edit_theme_options' ) ) { 24 24 wp_die( 25 '<h1>' . __( ' Cheatin’ uh?' ) . '</h1>' .25 '<h1>' . __( 'You don’t have permission to do this.' ) . '</h1>' . 26 26 '<p>' . __( 'Sorry, you are not allowed to edit theme options on this site.' ) . '</p>', 27 27 403 -
trunk/src/wp-admin/network/site-users.php
r42343 r42648 160 160 if ( ! is_user_member_of_blog( $user_id ) ) { 161 161 wp_die( 162 '<h1>' . __( ' Cheatin’ uh?' ) . '</h1>' .162 '<h1>' . __( 'An error has occurred.' ) . '</h1>' . 163 163 '<p>' . __( 'One of the selected users is not a member of this site.' ) . '</p>', 164 164 403 -
trunk/src/wp-admin/options.php
r42606 r42648 47 47 if ( ! current_user_can( $capability ) ) { 48 48 wp_die( 49 '<h1>' . __( ' Cheatin’ uh?' ) . '</h1>' .49 '<h1>' . __( 'You don’t have permission to do this.' ) . '</h1>' . 50 50 '<p>' . __( 'Sorry, you are not allowed to manage these options.' ) . '</p>', 51 51 403 … … 75 75 if ( is_multisite() && ! current_user_can( 'manage_network_options' ) && 'update' != $action ) { 76 76 wp_die( 77 '<h1>' . __( ' Cheatin’ uh?' ) . '</h1>' .77 '<h1>' . __( 'You don’t have permission to do this.' ) . '</h1>' . 78 78 '<p>' . __( 'Sorry, you are not allowed to delete these items.' ) . '</p>', 79 79 403 -
trunk/src/wp-admin/post-new.php
r42343 r42648 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>' . __( 'You don’t have permission to do this.' ) . '</h1>' . 61 61 '<p>' . __( 'Sorry, you are not allowed to create posts as this user.' ) . '</p>', 62 62 403 -
trunk/src/wp-admin/press-this.php
r42343 r42648 19 19 wp_die( 20 20 __( 'Sorry, you are not allowed to create posts as this user.' ), 21 __( ' Cheatin’ uh?' ),21 __( 'You don’t have permission to do this.' ), 22 22 403 23 23 ); -
trunk/src/wp-admin/term.php
r42343 r42648 35 35 36 36 wp_die( 37 '<h1>' . __( ' Cheatin’ uh?' ) . '</h1>' .37 '<h1>' . __( 'You don’t have permission to do this.' ) . '</h1>' . 38 38 '<p>' . __( 'Sorry, you are not allowed to edit this item.' ) . '</p>', 39 39 403 -
trunk/src/wp-admin/themes.php
r42343 r42648 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>' . __( 'You don’t have permission to do this.' ) . '</h1>' . 15 15 '<p>' . __( 'Sorry, you are not allowed to edit theme options on this site.' ) . '</p>', 16 16 403 … … 25 25 if ( ! $theme->exists() || ! $theme->is_allowed() ) { 26 26 wp_die( 27 '<h1>' . __( ' Cheatin’ uh?' ) . '</h1>' .27 '<h1>' . __( 'An error has occurred.' ) . '</h1>' . 28 28 '<p>' . __( 'The requested theme does not exist.' ) . '</p>', 29 29 403 … … 40 40 if ( ! current_user_can( 'delete_themes' ) ) { 41 41 wp_die( 42 '<h1>' . __( ' Cheatin’ uh?' ) . '</h1>' .42 '<h1>' . __( 'You don’t have permission to do this.' ) . '</h1>' . 43 43 '<p>' . __( 'Sorry, you are not allowed to delete this item.' ) . '</p>', 44 44 403 … … 48 48 if ( ! $theme->exists() ) { 49 49 wp_die( 50 '<h1>' . __( ' Cheatin’ uh?' ) . '</h1>' .50 '<h1>' . __( 'An error has occurred.' ) . '</h1>' . 51 51 '<p>' . __( 'The requested theme does not exist.' ) . '</p>', 52 52 403 -
trunk/src/wp-admin/user-new.php
r42343 r42648 13 13 if ( ! current_user_can( 'create_users' ) && ! current_user_can( 'promote_users' ) ) { 14 14 wp_die( 15 '<h1>' . __( ' Cheatin’ uh?' ) . '</h1>' .15 '<h1>' . __( 'You don’t have permission to do this.' ) . '</h1>' . 16 16 '<p>' . __( 'Sorry, you are not allowed to add users to this network.' ) . '</p>', 17 17 403 … … 20 20 } elseif ( ! current_user_can( 'create_users' ) ) { 21 21 wp_die( 22 '<h1>' . __( ' Cheatin’ uh?' ) . '</h1>' .22 '<h1>' . __( 'You don’t have permission to do this.' ) . '</h1>' . 23 23 '<p>' . __( 'Sorry, you are not allowed to create users.' ) . '</p>', 24 24 403 … … 53 53 if ( ! current_user_can( 'promote_user', $user_details->ID ) ) { 54 54 wp_die( 55 '<h1>' . __( ' Cheatin’ uh?' ) . '</h1>' .55 '<h1>' . __( 'You don’t have permission to do this.' ) . '</h1>' . 56 56 '<p>' . __( 'Sorry, you are not allowed to add users to this network.' ) . '</p>', 57 57 403 … … 137 137 if ( ! current_user_can( 'create_users' ) ) { 138 138 wp_die( 139 '<h1>' . __( ' Cheatin’ uh?' ) . '</h1>' .139 '<h1>' . __( 'You don’t have permission to do this.' ) . '</h1>' . 140 140 '<p>' . __( 'Sorry, you are not allowed to create users.' ) . '</p>', 141 141 403 -
trunk/src/wp-admin/users.php
r42343 r42648 13 13 if ( ! current_user_can( 'list_users' ) ) { 14 14 wp_die( 15 '<h1>' . __( ' Cheatin’ uh?' ) . '</h1>' .15 '<h1>' . __( 'You don’t have permission to do this.' ) . '</h1>' . 16 16 '<p>' . __( 'Sorry, you are not allowed to list users.' ) . '</p>', 17 17 403 … … 142 142 if ( is_multisite() && ! is_user_member_of_blog( $id ) ) { 143 143 wp_die( 144 '<h1>' . __( ' Cheatin’ uh?' ) . '</h1>' .144 '<h1>' . __( 'An error has occurred.' ) . '</h1>' . 145 145 '<p>' . __( 'One of the selected users is not a member of this site.' ) . '</p>', 146 146 403 -
trunk/src/wp-admin/widgets.php
r42343 r42648 15 15 if ( ! current_user_can( 'edit_theme_options' ) ) { 16 16 wp_die( 17 '<h1>' . __( ' Cheatin’ uh?' ) . '</h1>' .17 '<h1>' . __( 'You don’t have permission to do this.' ) . '</h1>' . 18 18 '<p>' . __( 'Sorry, you are not allowed to edit theme options on this site.' ) . '</p>', 19 19 403 -
trunk/src/wp-includes/class-wp-customize-manager.php
r42632 r42648 448 448 449 449 if ( ! $message ) { 450 $message = __( ' Cheatin’ uh?' );450 $message = __( 'An error has occurred.' ); 451 451 } 452 452 … … 513 513 } else { 514 514 wp_die( 515 '<h1>' . __( ' Cheatin’ uh?' ) . '</h1>' .515 '<h1>' . __( 'You don’t have permission to do this.' ) . '</h1>' . 516 516 '<p>' . __( 'Sorry, you are not allowed to customize this site.' ) . '</p>', 517 517 403 -
trunk/src/wp-includes/class-wp-xmlrpc-server.php
r42343 r42648 3880 3880 3881 3881 if ( ! $comment_ID ) { 3882 return new IXR_Error( 403, __( 'An unidentifiederror has occurred.' ) );3882 return new IXR_Error( 403, __( 'An error has occurred.' ) ); 3883 3883 } 3884 3884 -
trunk/src/wp-includes/functions.php
r42570 r42648 2719 2719 ); 2720 2720 } else { 2721 $html = __( ' Are you sure you want to do this?' );2721 $html = __( 'The link you followed no longer exists.' ); 2722 2722 if ( wp_get_referer() ) { 2723 2723 $html .= '</p><p>'; … … 2730 2730 } 2731 2731 2732 wp_die( $html, __( ' WordPress Failure Notice' ), 403 );2732 wp_die( $html, __( 'An error has occurred.' ), 403 ); 2733 2733 } 2734 2734 -
trunk/src/wp-includes/js/wp-ajax-response.js
r39253 r42648 57 57 return !wpAjax.invalidateForm( selector.find('.form-required').filter( function() { return jQuery('input:visible', this).val() === ''; } ) ).length; 58 58 } 59 }, wpAjax || { noPerm: 'Sorry, you are not allowed to do that.', broken: 'An unidentifiederror has occurred.' } );59 }, wpAjax || { noPerm: 'Sorry, you are not allowed to do that.', broken: 'An error has occurred.' } ); 60 60 61 61 // Basic form validation -
trunk/src/wp-includes/script-loader.php
r42616 r42648 138 138 'wp-ajax-response', 'wpAjax', array( 139 139 'noPerm' => __( 'Sorry, you are not allowed to do that.' ), 140 'broken' => __( 'An unidentifiederror has occurred.' ),140 'broken' => __( 'An error has occurred.' ), 141 141 ) 142 142 ); … … 606 606 'action' => __( 'Action' ), 607 607 'discardChanges' => __( 'Discard changes' ), 608 'cheatin' => __( 'Cheatin’ uh?' ), 608 'cheatin' => __( 'An error has occurred.' ), 609 'notAllowedHeading' => __( 'You don’t have permission to do this.' ), 609 610 'notAllowed' => __( 'Sorry, you are not allowed to customize this site.' ), 610 611 'previewIframeTitle' => __( 'Site Preview' ), … … 689 690 'admin-tags', 'tagsl10n', array( 690 691 'noPerm' => __( 'Sorry, you are not allowed to do that.' ), 691 'broken' => __( 'An unidentifiederror has occurred.' ),692 'broken' => __( 'An error has occurred.' ), 692 693 ) 693 694 ); … … 918 919 /* translators: %s: Importer name */ 919 920 'activateImporterLabel' => __( 'Run %s' ), 920 'unknownError' => __( 'An unidentifiederror has occurred.' ),921 'unknownError' => __( 'An error has occurred.' ), 921 922 'connectionError' => __( 'Connection lost or the server is busy. Please try again later.' ), 922 923 'nonceError' => __( 'An error has occurred. Please reload the page and try again.' ),
Note: See TracChangeset
for help on using the changeset viewer.