Changeset 42811
- Timestamp:
- 03/09/2018 12:14:20 AM (7 years ago)
- Location:
- branches/4.9
- Files:
-
- 25 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/4.9
- Property svn:mergeinfo changed
/trunk merged: 42648,42719
- Property svn:mergeinfo changed
-
branches/4.9/src/wp-admin/custom-header.php
r41937 r42811 720 720 if ( ! current_theme_supports( 'custom-header', 'uploads' ) ) { 721 721 wp_die( 722 '<h1>' . __( ' Cheatin’ uh?' ) . '</h1>' .722 '<h1>' . __( 'Something went wrong.' ) . '</h1>' . 723 723 '<p>' . __( 'The current theme does not support uploading a custom header image.' ) . '</p>', 724 724 403 … … 878 878 if ( ! current_theme_supports( 'custom-header', 'uploads' ) ) { 879 879 wp_die( 880 '<h1>' . __( ' Cheatin’ uh?' ) . '</h1>' .880 '<h1>' . __( 'Something went wrong.' ) . '</h1>' . 881 881 '<p>' . __( 'The current theme does not support uploading a custom header image.' ) . '</p>', 882 882 403 … … 886 886 if ( ! empty( $_POST['skip-cropping'] ) && ! ( current_theme_supports( 'custom-header', 'flex-height' ) || current_theme_supports( 'custom-header', 'flex-width' ) ) ) { 887 887 wp_die( 888 '<h1>' . __( ' Cheatin’ uh?' ) . '</h1>' .888 '<h1>' . __( 'Something went wrong.' ) . '</h1>' . 889 889 '<p>' . __( 'The current theme does not support a flexible sized header image.' ) . '</p>', 890 890 403 -
branches/4.9/src/wp-admin/customize.php
r42535 r42811 15 15 if ( ! current_user_can( 'customize' ) ) { 16 16 wp_die( 17 '<h1>' . __( ' Cheatin’ uh?' ) . '</h1>' .17 '<h1>' . __( 'You need a higher level of permission.' ) . '</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 need a higher level of permission.' ) . '</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>' . __( 'Something went wrong.' ) . '</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>', -
branches/4.9/src/wp-admin/edit-comments.php
r39600 r42811 11 11 if ( ! current_user_can( 'edit_posts' ) ) { 12 12 wp_die( 13 '<h1>' . __( ' Cheatin’ uh?' ) . '</h1>' .13 '<h1>' . __( 'You need a higher level of permission.' ) . '</h1>' . 14 14 '<p>' . __( 'Sorry, you are not allowed to edit comments.' ) . '</p>', 15 15 403 -
branches/4.9/src/wp-admin/edit-tags.php
r41378 r42811 24 24 if ( ! current_user_can( $tax->cap->manage_terms ) ) { 25 25 wp_die( 26 '<h1>' . __( ' Cheatin’ uh?' ) . '</h1>' .26 '<h1>' . __( 'You need a higher level of permission.' ) . '</h1>' . 27 27 '<p>' . __( 'Sorry, you are not allowed to manage terms in this taxonomy.' ) . '</p>', 28 28 403 … … 73 73 if ( ! current_user_can( $tax->cap->edit_terms ) ) { 74 74 wp_die( 75 '<h1>' . __( ' Cheatin’ uh?' ) . '</h1>' .75 '<h1>' . __( 'You need a higher level of permission.' ) . '</h1>' . 76 76 '<p>' . __( 'Sorry, you are not allowed to create terms in this taxonomy.' ) . '</p>', 77 77 403 … … 97 97 if ( ! current_user_can( 'delete_term', $tag_ID ) ) { 98 98 wp_die( 99 '<h1>' . __( ' Cheatin’ uh?' ) . '</h1>' .99 '<h1>' . __( 'You need a higher level of permission.' ) . '</h1>' . 100 100 '<p>' . __( 'Sorry, you are not allowed to delete this item.' ) . '</p>', 101 101 403 … … 117 117 if ( ! current_user_can( $tax->cap->delete_terms ) ) { 118 118 wp_die( 119 '<h1>' . __( ' Cheatin’ uh?' ) . '</h1>' .119 '<h1>' . __( 'You need a higher level of permission.' ) . '</h1>' . 120 120 '<p>' . __( 'Sorry, you are not allowed to delete these items.' ) . '</p>', 121 121 403 … … 153 153 if ( ! current_user_can( 'edit_term', $tag_ID ) ) { 154 154 wp_die( 155 '<h1>' . __( ' Cheatin’ uh?' ) . '</h1>' .155 '<h1>' . __( 'You need a higher level of permission.' ) . '</h1>' . 156 156 '<p>' . __( 'Sorry, you are not allowed to edit this item.' ) . '</p>', 157 157 403 -
branches/4.9/src/wp-admin/edit.php
r39938 r42811 37 37 if ( ! current_user_can( $post_type_object->cap->edit_posts ) ) { 38 38 wp_die( 39 '<h1>' . __( ' Cheatin’ uh?' ) . '</h1>' .39 '<h1>' . __( 'You need a higher level of permission.' ) . '</h1>' . 40 40 '<p>' . __( 'Sorry, you are not allowed to edit posts in this post type.' ) . '</p>', 41 41 403 -
branches/4.9/src/wp-admin/includes/bookmark.php
r37914 r42811 29 29 if ( ! current_user_can( 'manage_links' ) ) { 30 30 wp_die( 31 '<h1>' . __( ' Cheatin’ uh?' ) . '</h1>' .31 '<h1>' . __( 'You need a higher level of permission.' ) . '</h1>' . 32 32 '<p>' . __( 'Sorry, you are not allowed to edit the links for this site.' ) . '</p>', 33 33 403 -
branches/4.9/src/wp-admin/includes/file.php
r42245 r42811 590 590 591 591 if ( ! isset( $result['message'] ) ) { 592 $message = __( ' An unidentified error has occurred.' );592 $message = __( 'Something went wrong.' ); 593 593 } else { 594 594 $message = $result['message']; -
branches/4.9/src/wp-admin/js/customize-controls.js
r42623 r42811 6874 6874 cheatin: function() { 6875 6875 $( document.body ).empty().addClass( 'cheatin' ).append( 6876 '<h1>' + api.l10n. cheatin+ '</h1>' +6876 '<h1>' + api.l10n.notAllowedHeading + '</h1>' + 6877 6877 '<p>' + api.l10n.notAllowed + '</p>' 6878 6878 ); -
branches/4.9/src/wp-admin/media-upload.php
r38307 r42811 35 35 if ( isset( $action ) && $action == 'edit' && !$ID ) { 36 36 wp_die( 37 '<h1>' . __( ' Cheatin’ uh?' ) . '</h1>' .37 '<h1>' . __( 'Something went wrong.' ) . '</h1>' . 38 38 '<p>' . __( 'Invalid item ID.' ) . '</p>', 39 39 403 … … 43 43 if ( ! empty( $_REQUEST['post_id'] ) && ! current_user_can( 'edit_post' , $_REQUEST['post_id'] ) ) { 44 44 wp_die( 45 '<h1>' . __( ' Cheatin’ 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 -
branches/4.9/src/wp-admin/nav-menus.php
r41868 r42811 22 22 if ( ! current_user_can( 'edit_theme_options' ) ) { 23 23 wp_die( 24 '<h1>' . __( ' Cheatin’ uh?' ) . '</h1>' .24 '<h1>' . __( 'You need a higher level of permission.' ) . '</h1>' . 25 25 '<p>' . __( 'Sorry, you are not allowed to edit theme options on this site.' ) . '</p>', 26 26 403 -
branches/4.9/src/wp-admin/network/site-users.php
r41652 r42811 155 155 if ( ! is_user_member_of_blog( $user_id ) ) { 156 156 wp_die( 157 '<h1>' . __( ' Cheatin’ uh?' ) . '</h1>' .157 '<h1>' . __( 'Something went wrong.' ) . '</h1>' . 158 158 '<p>' . __( 'One of the selected users is not a member of this site.' ) . '</p>', 159 159 403 -
branches/4.9/src/wp-admin/options.php
r42607 r42811 47 47 if ( ! current_user_can( $capability ) ) { 48 48 wp_die( 49 '<h1>' . __( ' Cheatin’ uh?' ) . '</h1>' .49 '<h1>' . __( 'You need a higher level of permission.' ) . '</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 need a higher level of permission.' ) . '</h1>' . 78 78 '<p>' . __( 'Sorry, you are not allowed to delete these items.' ) . '</p>', 79 79 403 -
branches/4.9/src/wp-admin/post-new.php
r41829 r42811 57 57 if ( ! current_user_can( $post_type_object->cap->edit_posts ) || ! current_user_can( $post_type_object->cap->create_posts ) ) { 58 58 wp_die( 59 '<h1>' . __( ' Cheatin’ uh?' ) . '</h1>' .59 '<h1>' . __( 'You need a higher level of permission.' ) . '</h1>' . 60 60 '<p>' . __( 'Sorry, you are not allowed to create posts as this user.' ) . '</p>', 61 61 403 -
branches/4.9/src/wp-admin/press-this.php
r41794 r42811 19 19 wp_die( 20 20 __( 'Sorry, you are not allowed to create posts as this user.' ), 21 __( ' Cheatin’ uh?' ),21 __( 'You need a higher level of permission.' ), 22 22 403 23 23 ); -
branches/4.9/src/wp-admin/term.php
r40655 r42811 35 35 ) { 36 36 wp_die( 37 '<h1>' . __( ' Cheatin’ uh?' ) . '</h1>' .37 '<h1>' . __( 'You need a higher level of permission.' ) . '</h1>' . 38 38 '<p>' . __( 'Sorry, you are not allowed to edit this item.' ) . '</p>', 39 39 403 -
branches/4.9/src/wp-admin/themes.php
r41968 r42811 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 need a higher level of permission.' ) . '</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>' . __( 'Something went wrong.' ) . '</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 need a higher level of permission.' ) . '</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>' . __( 'Something went wrong.' ) . '</h1>' . 51 51 '<p>' . __( 'The requested theme does not exist.' ) . '</p>', 52 52 403 -
branches/4.9/src/wp-admin/user-new.php
r42264 r42811 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 need a higher level of permission.' ) . '</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 need a higher level of permission.' ) . '</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 need a higher level of permission.' ) . '</h1>' . 56 56 '<p>' . __( 'Sorry, you are not allowed to add users to this network.' ) . '</p>', 57 57 403 … … 119 119 if ( ! current_user_can( 'create_users' ) ) { 120 120 wp_die( 121 '<h1>' . __( ' Cheatin’ uh?' ) . '</h1>' .121 '<h1>' . __( 'You need a higher level of permission.' ) . '</h1>' . 122 122 '<p>' . __( 'Sorry, you are not allowed to create users.' ) . '</p>', 123 123 403 -
branches/4.9/src/wp-admin/users.php
r41566 r42811 13 13 if ( ! current_user_can( 'list_users' ) ) { 14 14 wp_die( 15 '<h1>' . __( ' Cheatin’ uh?' ) . '</h1>' .15 '<h1>' . __( 'You need a higher level of permission.' ) . '</h1>' . 16 16 '<p>' . __( 'Sorry, you are not allowed to list users.' ) . '</p>', 17 17 403 … … 131 131 if ( is_multisite() && !is_user_member_of_blog( $id ) ) { 132 132 wp_die( 133 '<h1>' . __( ' Cheatin’ uh?' ) . '</h1>' .133 '<h1>' . __( 'Something went wrong.' ) . '</h1>' . 134 134 '<p>' . __( 'One of the selected users is not a member of this site.' ) . '</p>', 135 135 403 -
branches/4.9/src/wp-admin/widgets.php
r41621 r42811 15 15 if ( ! current_user_can( 'edit_theme_options' ) ) { 16 16 wp_die( 17 '<h1>' . __( ' Cheatin’ uh?' ) . '</h1>' .17 '<h1>' . __( 'You need a higher level of permission.' ) . '</h1>' . 18 18 '<p>' . __( 'Sorry, you are not allowed to edit theme options on this site.' ) . '</p>', 19 19 403 -
branches/4.9/src/wp-includes/class-wp-customize-manager.php
r42623 r42811 448 448 449 449 if ( ! $message ) { 450 $message = __( ' Cheatin’ uh?' );450 $message = __( 'Something went wrong.' ); 451 451 } 452 452 … … 513 513 } else { 514 514 wp_die( 515 '<h1>' . __( ' Cheatin’ uh?' ) . '</h1>' .515 '<h1>' . __( 'You need a higher level of permission.' ) . '</h1>' . 516 516 '<p>' . __( 'Sorry, you are not allowed to customize this site.' ) . '</p>', 517 517 403 -
branches/4.9/src/wp-includes/class-wp-xmlrpc-server.php
r41980 r42811 3687 3687 3688 3688 if ( ! $comment_ID ) { 3689 return new IXR_Error( 403, __( ' An unidentified error has occurred.' ) );3689 return new IXR_Error( 403, __( 'Something went wrong.' ) ); 3690 3690 } 3691 3691 -
branches/4.9/src/wp-includes/functions.php
r42804 r42811 2605 2605 ); 2606 2606 } else { 2607 $html = __( ' Are you sure you want to do this?' );2607 $html = __( 'The link you followed has expired.' ); 2608 2608 if ( wp_get_referer() ) { 2609 2609 $html .= '</p><p>'; … … 2615 2615 } 2616 2616 2617 wp_die( $html, __( ' WordPress Failure Notice' ), 403 );2617 wp_die( $html, __( 'Something went wrong.' ), 403 ); 2618 2618 } 2619 2619 -
branches/4.9/src/wp-includes/js/wp-ajax-response.js
r39253 r42811 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 unidentified error has occurred.' } );59 }, wpAjax || { noPerm: 'Sorry, you are not allowed to do that.', broken: 'Something went wrong.' } ); 60 60 61 61 // Basic form validation -
branches/4.9/src/wp-includes/script-loader.php
r42548 r42811 131 131 did_action( 'init' ) && $scripts->localize( 'wp-ajax-response', 'wpAjax', array( 132 132 'noPerm' => __('Sorry, you are not allowed to do that.'), 133 'broken' => __(' An unidentified error has occurred.')133 'broken' => __('Something went wrong.') 134 134 ) ); 135 135 … … 563 563 'action' => __( 'Action' ), 564 564 'discardChanges' => __( 'Discard changes' ), 565 'cheatin' => __( 'Cheatin’ uh?' ), 565 'cheatin' => __( 'Something went wrong.' ), 566 'notAllowedHeading' => __( 'You need a higher level of permission.' ), 566 567 'notAllowed' => __( 'Sorry, you are not allowed to customize this site.' ), 567 568 'previewIframeTitle' => __( 'Site Preview' ), … … 642 643 did_action( 'init' ) && $scripts->localize( 'admin-tags', 'tagsl10n', array( 643 644 'noPerm' => __('Sorry, you are not allowed to do that.'), 644 'broken' => __(' An unidentified error has occurred.')645 'broken' => __('Something went wrong.') 645 646 )); 646 647 … … 836 837 /* translators: %s: Importer name */ 837 838 'activateImporterLabel' => __( 'Run %s' ), 838 'unknownError' => __( ' An unidentified error has occurred.' ),839 'unknownError' => __( 'Something went wrong.' ), 839 840 'connectionError' => __( 'Connection lost or the server is busy. Please try again later.' ), 840 841 'nonceError' => __( 'An error has occurred. Please reload the page and try again.' ),
Note: See TracChangeset
for help on using the changeset viewer.