WordPress.org

Make WordPress Core

Ticket #34521: 34521.4.patch

File 34521.4.patch, 72.7 KB (added by Presskopp, 5 years ago)
  • wp-admin/admin.php

     
    272272        $importer = $_GET['import'];
    273273
    274274        if ( ! current_user_can('import') )
    275                 wp_die(__('You are not allowed to import.'));
     275                wp_die(__('Sorry, you are not allowed to import.'));
    276276
    277277        if ( validate_file($importer) ) {
    278278                wp_redirect( admin_url( 'import.php?invalid=' . $importer ) );
  • wp-admin/async-upload.php

     
    4545}
    4646
    4747if ( ! current_user_can( 'upload_files' ) ) {
    48         wp_die( __( 'You do not have permission to upload files.' ) );
     48        wp_die( __( 'Sorry, you are not allowed to upload files.' ) );
    4949}
    5050
    5151// just fetch the detail form for that attachment
     
    5454        if ( 'attachment' != $post->post_type )
    5555                wp_die( __( 'Unknown post type.' ) );
    5656        if ( ! current_user_can( 'edit_post', $id ) )
    57                 wp_die( __( 'You are not allowed to edit this item.' ) );
     57                wp_die( __( 'Sorry, you are not allowed to edit this item.' ) );
    5858
    5959        switch ( $_REQUEST['fetch'] ) {
    6060                case 3 :
  • wp-admin/comment.php

     
    6161                comment_footer_die( __( 'Invalid comment ID.' ) . sprintf(' <a href="%s">' . __('Go back') . '</a>.', 'javascript:history.go(-1)') );
    6262
    6363        if ( !current_user_can( 'edit_comment', $comment_id ) )
    64                 comment_footer_die( __('You are not allowed to edit this comment.') );
     64                comment_footer_die( __('Sorry, you are not allowed to edit this comment.') );
    6565
    6666        if ( 'trash' == $comment->comment_approved )
    6767                comment_footer_die( __('This comment is in the Trash. Please move it out of the Trash if you want to edit it.') );
     
    254254        if ( !$comment = get_comment($comment_id) )
    255255                comment_footer_die( __( 'Invalid comment ID.' ) . sprintf(' <a href="%s">' . __('Go back') . '</a>.', 'edit-comments.php') );
    256256        if ( !current_user_can( 'edit_comment', $comment->comment_ID ) )
    257                 comment_footer_die( __('You are not allowed to edit comments on this post.') );
     257                comment_footer_die( __('Sorry, you are not allowed to edit comments on this post.') );
    258258
    259259        if ( '' != wp_get_referer() && ! $noredir && false === strpos(wp_get_referer(), 'comment.php') )
    260260                $redir = wp_get_referer();
  • wp-admin/custom-header.php

     
    966966         */
    967967        public function admin_page() {
    968968                if ( ! current_user_can('edit_theme_options') )
    969                         wp_die(__('You do not have permission to customize headers.'));
     969                        wp_die(__('Sorry, you are not allowed to customize headers.'));
    970970                $step = $this->step();
    971971                if ( 2 == $step )
    972972                        $this->step_2();
  • wp-admin/customize.php

     
    1515if ( ! current_user_can( 'customize' ) ) {
    1616        wp_die(
    1717                '<h1>' . __( 'Cheatin&#8217; uh?' ) . '</h1>' .
    18                 '<p>' . __( 'You are not allowed to customize this site.' ) . '</p>',
     18                '<p>' . __( 'Sorry, you are not allowed to customize this site.' ) . '</p>',
    1919                403
    2020        );
    2121}
  • wp-admin/edit-comments.php

     
    1111if ( ! current_user_can( 'edit_posts' ) ) {
    1212        wp_die(
    1313                '<h1>' . __( 'Cheatin&#8217; uh?' ) . '</h1>' .
    14                 '<p>' . __( 'You are not allowed to edit comments.' ) . '</p>',
     14                '<p>' . __( 'Sorry, you are not allowed to edit comments.' ) . '</p>',
    1515                403
    1616        );
    1717}
     
    210210                        $error_msg = __( 'Invalid comment ID.' );
    211211                        break;
    212212                case 2 :
    213                         $error_msg = __( 'You are not allowed to edit comments on this post.' );
     213                        $error_msg = __( 'Sorry, you are not allowed to edit comments on this post.' );
    214214                        break;
    215215        }
    216216        if ( $error_msg )
  • wp-admin/edit-tags.php

     
    1818        wp_die( __( 'Invalid taxonomy' ) );
    1919
    2020if ( ! in_array( $tax->name, get_taxonomies( array( 'show_ui' => true ) ) ) ) {
    21    wp_die( __( 'You are not allowed to manage these items.' ) );
     21   wp_die( __( 'Sorry, you are not allowed to manage these items.' ) );
    2222}
    2323
    2424if ( ! current_user_can( $tax->cap->manage_terms ) ) {
    2525        wp_die(
    2626                '<h1>' . __( 'Cheatin&#8217; uh?' ) . '</h1>' .
    27                 '<p>' . __( 'You are not allowed to manage these items.' ) . '</p>',
     27                '<p>' . __( 'Sorry, you are not allowed to manage these items.' ) . '</p>',
    2828                403
    2929        );
    3030}
     
    7171        if ( ! current_user_can( $tax->cap->edit_terms ) ) {
    7272                wp_die(
    7373                        '<h1>' . __( 'Cheatin&#8217; uh?' ) . '</h1>' .
    74                         '<p>' . __( 'You are not allowed to add this item.' ) . '</p>',
     74                        '<p>' . __( 'Sorry, you are not allowed to add this item.' ) . '</p>',
    7575                        403
    7676                );
    7777        }
     
    111111        if ( ! current_user_can( $tax->cap->delete_terms ) ) {
    112112                wp_die(
    113113                        '<h1>' . __( 'Cheatin&#8217; uh?' ) . '</h1>' .
    114                         '<p>' . __( 'You are not allowed to delete this item.' ) . '</p>',
     114                        '<p>' . __( 'Sorry, you are not allowed to delete this item.' ) . '</p>',
    115115                        403
    116116                );
    117117        }
     
    128128        if ( ! current_user_can( $tax->cap->delete_terms ) ) {
    129129                wp_die(
    130130                        '<h1>' . __( 'Cheatin&#8217; uh?' ) . '</h1>' .
    131                         '<p>' . __( 'You are not allowed to delete these items.' ) . '</p>',
     131                        '<p>' . __( 'Sorry, you are not allowed to delete these items.' ) . '</p>',
    132132                        403
    133133                );
    134134        }
     
    171171        if ( ! current_user_can( $tax->cap->edit_terms ) ) {
    172172                wp_die(
    173173                        '<h1>' . __( 'Cheatin&#8217; uh?' ) . '</h1>' .
    174                         '<p>' . __( 'You are not allowed to edit this item.' ) . '</p>',
     174                        '<p>' . __( 'Sorry, you are not allowed to edit this item.' ) . '</p>',
    175175                        403
    176176                );
    177177        }
     
    288288if ( ! current_user_can( $tax->cap->edit_terms ) ) {
    289289        wp_die(
    290290                '<h1>' . __( 'Cheatin&#8217; uh?' ) . '</h1>' .
    291                 '<p>' . __( 'You are not allowed to edit this item.' ) . '</p>',
     291                '<p>' . __( 'Sorry, you are not allowed to edit this item.' ) . '</p>',
    292292                403
    293293        );
    294294}
  • wp-admin/edit.php

     
    1313        wp_die( __( 'Invalid post type' ) );
    1414
    1515if ( ! in_array( $typenow, get_post_types( array( 'show_ui' => true ) ) ) ) {
    16         wp_die( __( 'You are not allowed to edit posts in this post type.' ) );
     16        wp_die( __( 'Sorry, you are not allowed to edit posts in this post type.' ) );
    1717}
    1818
    1919if ( 'attachment' === $typenow ) {
     
    3737if ( ! current_user_can( $post_type_object->cap->edit_posts ) ) {
    3838        wp_die(
    3939                '<h1>' . __( 'Cheatin&#8217; uh?' ) . '</h1>' .
    40                 '<p>' . __( 'You are not allowed to edit posts in this post type.' ) . '</p>',
     40                '<p>' . __( 'Sorry, you are not allowed to edit posts in this post type.' ) . '</p>',
    4141                403
    4242        );
    4343}
     
    103103
    104104                        foreach ( (array) $post_ids as $post_id ) {
    105105                                if ( !current_user_can( 'delete_post', $post_id) )
    106                                         wp_die( __('You are not allowed to move this item to the Trash.') );
     106                                        wp_die( __('Sorry, you are not allowed to move this item to the Trash.') );
    107107
    108108                                if ( wp_check_post_lock( $post_id ) ) {
    109109                                        $locked++;
     
    122122                        $untrashed = 0;
    123123                        foreach ( (array) $post_ids as $post_id ) {
    124124                                if ( !current_user_can( 'delete_post', $post_id) )
    125                                         wp_die( __('You are not allowed to restore this item from the Trash.') );
     125                                        wp_die( __('Sorry, you are not allowed to restore this item from the Trash.') );
    126126
    127127                                if ( !wp_untrash_post($post_id) )
    128128                                        wp_die( __('Error in restoring from Trash.') );
     
    137137                                $post_del = get_post($post_id);
    138138
    139139                                if ( !current_user_can( 'delete_post', $post_id ) )
    140                                         wp_die( __('You are not allowed to delete this item.') );
     140                                        wp_die( __('Sorry, you are not allowed to delete this item.') );
    141141
    142142                                if ( $post_del->post_type == 'attachment' ) {
    143143                                        if ( ! wp_delete_attachment($post_id) )
  • wp-admin/export.php

     
    1010require_once( dirname( __FILE__ ) . '/admin.php' );
    1111
    1212if ( !current_user_can('export') )
    13         wp_die(__('You do not have sufficient permissions to export the content of this site.'));
     13        wp_die(__('Sorry, you are not allowed to export the content of this site.'));
    1414
    1515/** Load WordPress export API */
    1616require_once( ABSPATH . 'wp-admin/includes/export.php' );
  • wp-admin/import.php

     
    1212require_once( dirname( __FILE__ ) . '/admin.php' );
    1313
    1414if ( !current_user_can('import') )
    15         wp_die(__('You do not have sufficient permissions to import content in this site.'));
     15        wp_die(__('Sorry, you are not allowed to import content in this site.'));
    1616
    1717$title = __('Import');
    1818
  • wp-admin/includes/ajax-actions.php

     
    16051605
    16061606        if ( 'page' == $_POST['post_type'] ) {
    16071607                if ( ! current_user_can( 'edit_page', $post_ID ) )
    1608                         wp_die( __( 'You are not allowed to edit this page.' ) );
     1608                        wp_die( __( 'Sorry, you are not allowed to edit this page.' ) );
    16091609        } else {
    16101610                if ( ! current_user_can( 'edit_post', $post_ID ) )
    1611                         wp_die( __( 'You are not allowed to edit this post.' ) );
     1611                        wp_die( __( 'Sorry, you are not allowed to edit this post.' ) );
    16121612        }
    16131613
    16141614        if ( $last = wp_check_post_lock( $post_ID ) ) {
     
    20012001                echo wp_json_encode( array(
    20022002                        'success' => false,
    20032003                        'data'    => array(
    2004                                 'message'  => __( 'You do not have permission to upload files.' ),
     2004                                'message'  => __( 'Sorry, you are not allowed to upload files.' ),
    20052005                                'filename' => $_FILES['async-upload']['name'],
    20062006                        )
    20072007                ) );
     
    30903090        }
    30913091
    30923092        if ( ! current_user_can( 'update_plugins' ) ) {
    3093                 $status['error'] = __( 'You do not have sufficient permissions to update plugins for this site.' );
     3093                $status['error'] = __( 'Sorry, you are not allowed to update plugins for this site.' );
    30943094                wp_send_json_error( $status );
    30953095        }
    30963096
  • wp-admin/includes/bookmark.php

     
    2929        if ( ! current_user_can( 'manage_links' ) ) {
    3030                wp_die(
    3131                        '<h1>' . __( 'Cheatin&#8217; uh?' ) . '</h1>' .
    32                         '<p>' . __( 'You do not have sufficient permissions to edit the links for this site.' ) . '</p>',
     32                        '<p>' . __( 'Sorry, you are not allowed to edit the links for this site.' ) . '</p>',
    3333                        403
    3434                );
    3535        }
     
    312312                wp_die( sprintf( __( 'If you are looking to use the link manager, please install the <a href="%s">Link Manager</a> plugin.' ), $link ) );
    313313        }
    314314
    315         wp_die( __( 'You do not have sufficient permissions to edit the links for this site.' ) );
     315        wp_die( __( 'Sorry, you are not allowed to edit the links for this site.' ) );
    316316}
  • wp-admin/includes/comment.php

     
    4646 */
    4747function edit_comment() {
    4848        if ( ! current_user_can( 'edit_comment', (int) $_POST['comment_ID'] ) )
    49                 wp_die ( __( 'You are not allowed to edit comments on this post.' ) );
     49                wp_die ( __( 'Sorry, you are not allowed to edit comments on this post.' ) );
    5050
    5151        if ( isset( $_POST['newcomment_author'] ) )
    5252                $_POST['comment_author'] = $_POST['newcomment_author'];
  • wp-admin/includes/media.php

     
    31103110        }
    31113111
    31123112        if ( ! current_user_can( 'edit_post', $parent_id ) ) {
    3113                 wp_die( __( 'You are not allowed to edit this post.' ) );
     3113                wp_die( __( 'Sorry, you are not allowed to edit this post.' ) );
    31143114        }
    31153115        $ids = array();
    31163116        foreach ( (array) $_REQUEST['media'] as $att_id ) {
  • wp-admin/includes/menu.php

     
    339339         */
    340340        do_action( 'admin_page_access_denied' );
    341341
    342         wp_die( __( 'You do not have sufficient permissions to access this page.' ), 403 );
     342        wp_die( __( 'Sorry, you are not allowed to access this page.' ), 403 );
    343343}
    344344
    345345$menu = add_menu_classes($menu);
  • wp-admin/includes/post.php

     
    3030
    3131        if ( $update && ! current_user_can( 'edit_post', $post_data['ID'] ) ) {
    3232                if ( 'page' == $post_data['post_type'] )
    33                         return new WP_Error( 'edit_others_pages', __( 'You are not allowed to edit pages as this user.' ) );
     33                        return new WP_Error( 'edit_others_pages', __( 'Sorry, you are not allowed to edit pages as this user.' ) );
    3434                else
    35                         return new WP_Error( 'edit_others_posts', __( 'You are not allowed to edit posts as this user.' ) );
     35                        return new WP_Error( 'edit_others_posts', __( 'Sorry, you are not allowed to edit posts as this user.' ) );
    3636        } elseif ( ! $update && ! current_user_can( $ptype->cap->create_posts ) ) {
    3737                if ( 'page' == $post_data['post_type'] )
    38                         return new WP_Error( 'edit_others_pages', __( 'You are not allowed to create pages as this user.' ) );
     38                        return new WP_Error( 'edit_others_pages', __( 'Sorry, you are not allowed to create pages as this user.' ) );
    3939                else
    40                         return new WP_Error( 'edit_others_posts', __( 'You are not allowed to create posts as this user.' ) );
     40                        return new WP_Error( 'edit_others_posts', __( 'Sorry, you are not allowed to create posts as this user.' ) );
    4141        }
    4242
    4343        if ( isset( $post_data['content'] ) )
     
    6868                 && ! current_user_can( $ptype->cap->edit_others_posts ) ) {
    6969                if ( $update ) {
    7070                        if ( 'page' == $post_data['post_type'] )
    71                                 return new WP_Error( 'edit_others_pages', __( 'You are not allowed to edit pages as this user.' ) );
     71                                return new WP_Error( 'edit_others_pages', __( 'Sorry, you are not allowed to edit pages as this user.' ) );
    7272                        else
    73                                 return new WP_Error( 'edit_others_posts', __( 'You are not allowed to edit posts as this user.' ) );
     73                                return new WP_Error( 'edit_others_posts', __( 'Sorry, you are not allowed to edit posts as this user.' ) );
    7474                } else {
    7575                        if ( 'page' == $post_data['post_type'] )
    76                                 return new WP_Error( 'edit_others_pages', __( 'You are not allowed to create pages as this user.' ) );
     76                                return new WP_Error( 'edit_others_pages', __( 'Sorry, you are not allowed to create pages as this user.' ) );
    7777                        else
    78                                 return new WP_Error( 'edit_others_posts', __( 'You are not allowed to create posts as this user.' ) );
     78                                return new WP_Error( 'edit_others_posts', __( 'Sorry, you are not allowed to create posts as this user.' ) );
    7979                }
    8080        }
    8181
     
    203203        $ptype = get_post_type_object($post_data['post_type']);
    204204        if ( !current_user_can( 'edit_post', $post_ID ) ) {
    205205                if ( 'page' == $post_data['post_type'] )
    206                         wp_die( __('You are not allowed to edit this page.' ));
     206                        wp_die( __('Sorry, you are not allowed to edit this page.' ));
    207207                else
    208                         wp_die( __('You are not allowed to edit this post.' ));
     208                        wp_die( __('Sorry, you are not allowed to edit this post.' ));
    209209        }
    210210
    211211        if ( post_type_supports( $ptype->name, 'revisions' ) ) {
     
    421421
    422422        if ( !current_user_can( $ptype->cap->edit_posts ) ) {
    423423                if ( 'page' == $ptype->name )
    424                         wp_die( __('You are not allowed to edit pages.'));
     424                        wp_die( __('Sorry, you are not allowed to edit pages.'));
    425425                else
    426                         wp_die( __('You are not allowed to edit posts.'));
     426                        wp_die( __('Sorry, you are not allowed to edit posts.'));
    427427        }
    428428
    429429        if ( -1 == $post_data['_status'] ) {
     
    714714
    715715        if ( !current_user_can( $ptype->cap->edit_posts ) ) {
    716716                if ( 'page' == $ptype->name )
    717                         return new WP_Error( 'edit_pages', __( 'You are not allowed to create pages on this site.' ) );
     717                        return new WP_Error( 'edit_pages', __( 'Sorry, you are not allowed to create pages on this site.' ) );
    718718                else
    719                         return new WP_Error( 'edit_posts', __( 'You are not allowed to create posts or drafts on this site.' ) );
     719                        return new WP_Error( 'edit_posts', __( 'Sorry, you are not allowed to create posts or drafts on this site.' ) );
    720720        }
    721721
    722722        $_POST['post_mime_type'] = '';
     
    17171717        $_POST['ID'] = $post_ID;
    17181718
    17191719        if ( ! $post = get_post( $post_ID ) ) {
    1720                 wp_die( __( 'You are not allowed to edit this post.' ) );
     1720                wp_die( __( 'Sorry, you are not allowed to edit this post.' ) );
    17211721        }
    17221722
    17231723        if ( ! current_user_can( 'edit_post', $post->ID ) ) {
    1724                 wp_die( __( 'You are not allowed to edit this post.' ) );
     1724                wp_die( __( 'Sorry, you are not allowed to edit this post.' ) );
    17251725        }
    17261726
    17271727        $is_autosave = false;
     
    17791779        $post = get_post( $post_id );
    17801780
    17811781        if ( ! current_user_can( 'edit_post', $post->ID ) ) {
    1782                 return new WP_Error( 'edit_posts', __( 'You are not allowed to edit this item.' ) );
     1782                return new WP_Error( 'edit_posts', __( 'Sorry, you are not allowed to edit this item.' ) );
    17831783        }
    17841784
    17851785        if ( 'auto-draft' == $post->post_status )
  • wp-admin/link-add.php

     
    1010require_once( dirname( __FILE__ ) . '/admin.php' );
    1111
    1212if ( ! current_user_can('manage_links') )
    13         wp_die(__('You do not have sufficient permissions to add links to this site.'));
     13        wp_die(__('Sorry, you are not allowed to add links to this site.'));
    1414
    1515$title = __('Add New Link');
    1616$parent_file = 'link-manager.php';
  • wp-admin/link-manager.php

     
    99/** Load WordPress Administration Bootstrap */
    1010require_once( dirname( __FILE__ ) . '/admin.php' );
    1111if ( ! current_user_can( 'manage_links' ) )
    12         wp_die( __( 'You do not have sufficient permissions to edit the links for this site.' ) );
     12        wp_die( __( 'Sorry, you are not allowed to edit the links for this site.' ) );
    1313
    1414$wp_list_table = _get_list_table('WP_Links_List_Table');
    1515
  • wp-admin/media-new.php

     
    1313require_once( dirname( __FILE__ ) . '/admin.php' );
    1414
    1515if (!current_user_can('upload_files'))
    16         wp_die(__('You do not have permission to upload files.'));
     16        wp_die(__('Sorry, you are not allowed to upload files.'));
    1717
    1818wp_enqueue_script('plupload-handlers');
    1919
  • wp-admin/media-upload.php

     
    1616require_once( dirname( __FILE__ ) . '/admin.php' );
    1717
    1818if ( ! current_user_can( 'upload_files' ) ) {
    19         wp_die( __( 'You do not have permission to upload files.' ), 403 );
     19        wp_die( __( 'Sorry, you are not allowed to upload files.' ), 403 );
    2020}
    2121
    2222wp_enqueue_script('plupload-handlers');
     
    4343if ( ! empty( $_REQUEST['post_id'] ) && ! current_user_can( 'edit_post' , $_REQUEST['post_id'] ) ) {
    4444        wp_die(
    4545                '<h1>' . __( 'Cheatin&#8217; uh?' ) . '</h1>' .
    46                 '<p>' . __( 'You are not allowed to edit this item.' ) . '</p>',
     46                '<p>' . __( 'Sorry, you are not allowed to edit this item.' ) . '</p>',
    4747                403
    4848        );
    4949}
  • wp-admin/media.php

     
    2020        check_admin_referer('media-form');
    2121
    2222        if ( !current_user_can('edit_post', $attachment_id) )
    23                 wp_die ( __('You are not allowed to edit this attachment.') );
     23                wp_die ( __('Sorry, you are not allowed to edit this attachment.') );
    2424
    2525        $errors = media_upload_form_handler();
    2626
     
    5454        $att_id = (int) $_GET['attachment_id'];
    5555
    5656        if ( !current_user_can('edit_post', $att_id) )
    57                 wp_die ( __('You are not allowed to edit this attachment.') );
     57                wp_die ( __('Sorry, you are not allowed to edit this attachment.') );
    5858
    5959        $att = get_post($att_id);
    6060
  • wp-admin/ms-delete-site.php

     
    1313        wp_die( __( 'Multisite support is not enabled.' ) );
    1414
    1515if ( ! current_user_can( 'delete_site' ) )
    16         wp_die(__( 'You do not have sufficient permissions to delete this site.'));
     16        wp_die(__( 'Sorry, you are not allowed to delete this site.'));
    1717
    1818if ( isset( $_GET['h'] ) && $_GET['h'] != '' && get_option( 'delete_blog_hash' ) != false ) {
    1919        if ( get_option( 'delete_blog_hash' ) == $_GET['h'] ) {
  • wp-admin/my-sites.php

     
    1313        wp_die( __( 'Multisite support is not enabled.' ) );
    1414
    1515if ( ! current_user_can('read') )
    16         wp_die( __( 'You do not have sufficient permissions to access this page.' ) );
     16        wp_die( __( 'Sorry, you are not allowed to access this page.' ) );
    1717
    1818$action = isset( $_POST['action'] ) ? $_POST['action'] : 'splash';
    1919
  • wp-admin/nav-menus.php

     
    2222if ( ! current_user_can( 'edit_theme_options' ) ) {
    2323        wp_die(
    2424                '<h1>' . __( 'Cheatin&#8217; uh?' ) . '</h1>' .
    25                 '<p>' . __( 'You are not allowed to edit theme options on this site.' ) . '</p>',
     25                '<p>' . __( 'Sorry, you are not allowed to edit theme options on this site.' ) . '</p>',
    2626                403
    2727        );
    2828}
  • wp-admin/network.php

     
    1616require_once( dirname( __FILE__ ) . '/admin.php' );
    1717
    1818if ( ! is_super_admin() ) {
    19         wp_die( __( 'You do not have sufficient permissions to manage options for this site.' ) );
     19        wp_die( __( 'Sorry, you are not allowed to manage options for this site.' ) );
    2020}
    2121
    2222if ( is_multisite() ) {
  • wp-admin/network/index.php

     
    1717        wp_die( __( 'Multisite support is not enabled.' ) );
    1818
    1919if ( ! current_user_can( 'manage_network' ) )
    20         wp_die( __( 'You do not have permission to access this page.' ), 403 );
     20        wp_die( __( 'Sorry, you are not allowed to access this page.' ), 403 );
    2121
    2222$title = __( 'Dashboard' );
    2323$parent_file = 'index.php';
  • wp-admin/network/settings.php

     
    1717        wp_die( __( 'Multisite support is not enabled.' ) );
    1818
    1919if ( ! current_user_can( 'manage_network_options' ) )
    20         wp_die( __( 'You do not have permission to access this page.' ), 403 );
     20        wp_die( __( 'Sorry, you are not allowed to access this page.' ), 403 );
    2121
    2222$title = __( 'Network Settings' );
    2323$parent_file = 'settings.php';
  • wp-admin/network/site-info.php

     
    1515}
    1616
    1717if ( ! current_user_can( 'manage_sites' ) ) {
    18         wp_die( __( 'You do not have sufficient permissions to edit this site.' ) );
     18        wp_die( __( 'Sorry, you are not allowed to edit this site.' ) );
    1919}
    2020
    2121get_current_screen()->add_help_tab( array(
     
    4747}
    4848
    4949if ( ! can_edit_network( $details->site_id ) ) {
    50         wp_die( __( 'You do not have permission to access this page.' ), 403 );
     50        wp_die( __( 'Sorry, you are not allowed to access this page.' ), 403 );
    5151}
    5252
    5353$parsed_scheme = parse_url( $details->siteurl, PHP_URL_SCHEME );
  • wp-admin/network/site-new.php

     
    1717        wp_die( __( 'Multisite support is not enabled.' ) );
    1818
    1919if ( ! current_user_can( 'manage_sites' ) )
    20         wp_die( __( 'You do not have sufficient permissions to add sites to this network.' ) );
     20        wp_die( __( 'Sorry, you are not allowed to add sites to this network.' ) );
    2121
    2222get_current_screen()->add_help_tab( array(
    2323        'id'      => 'overview',
  • wp-admin/network/site-settings.php

     
    1414        wp_die( __( 'Multisite support is not enabled.' ) );
    1515
    1616if ( ! current_user_can( 'manage_sites' ) )
    17         wp_die( __( 'You do not have sufficient permissions to edit this site.' ) );
     17        wp_die( __( 'Sorry, you are not allowed to edit this site.' ) );
    1818
    1919get_current_screen()->add_help_tab( array(
    2020        'id'      => 'overview',
     
    4444}
    4545
    4646if ( !can_edit_network( $details->site_id ) )
    47         wp_die( __( 'You do not have permission to access this page.' ), 403 );
     47        wp_die( __( 'Sorry, you are not allowed to access this page.' ), 403 );
    4848
    4949$is_main_site = is_main_site( $id );
    5050
  • wp-admin/network/site-themes.php

     
    1414        wp_die( __( 'Multisite support is not enabled.' ) );
    1515
    1616if ( ! current_user_can( 'manage_sites' ) )
    17         wp_die( __( 'You do not have sufficient permissions to manage themes for this site.' ) );
     17        wp_die( __( 'Sorry, you are not allowed to manage themes for this site.' ) );
    1818
    1919get_current_screen()->add_help_tab( array(
    2020        'id'      => 'overview',
     
    6767}
    6868
    6969if ( !can_edit_network( $details->site_id ) )
    70         wp_die( __( 'You do not have permission to access this page.' ), 403 );
     70        wp_die( __( 'Sorry, you are not allowed to access this page.' ), 403 );
    7171
    7272$is_main_site = is_main_site( $id );
    7373
  • wp-admin/network/site-users.php

     
    1414        wp_die( __( 'Multisite support is not enabled.' ) );
    1515
    1616if ( ! current_user_can('manage_sites') )
    17         wp_die(__('You do not have sufficient permissions to edit this site.'));
     17        wp_die(__('Sorry, you are not allowed to edit this site.'));
    1818
    1919$wp_list_table = _get_list_table('WP_Users_List_Table');
    2020$wp_list_table->prepare_items();
     
    6060}
    6161
    6262if ( ! can_edit_network( $details->site_id ) )
    63         wp_die( __( 'You do not have permission to access this page.' ), 403 );
     63        wp_die( __( 'Sorry, you are not allowed to access this page.' ), 403 );
    6464
    6565$is_main_site = is_main_site( $id );
    6666
  • wp-admin/network/sites.php

     
    1414        wp_die( __( 'Multisite support is not enabled.' ) );
    1515
    1616if ( ! current_user_can( 'manage_sites' ) )
    17         wp_die( __( 'You do not have permission to access this page.' ), 403 );
     17        wp_die( __( 'Sorry, you are not allowed to access this page.' ), 403 );
    1818
    1919$wp_list_table = _get_list_table( 'WP_MS_Sites_List_Table' );
    2020$pagenum = $wp_list_table->get_pagenum();
     
    9191                }
    9292
    9393                if ( $current_site->blog_id == $id ) {
    94                         wp_die( __( 'You are not allowed to change the current site.' ) );
     94                        wp_die( __( 'Sorry, you are not allowed to change the current site.' ) );
    9595                }
    9696
    9797                $site_details = get_blog_details( $id );
     
    126126
    127127                case 'deleteblog':
    128128                        if ( ! current_user_can( 'delete_sites' ) )
    129                                 wp_die( __( 'You do not have permission to access this page.' ), '', array( 'response' => 403 ) );
     129                                wp_die( __( 'Sorry, you are not allowed to access this page.' ), '', array( 'response' => 403 ) );
    130130
    131131                        $updated_action = 'not_deleted';
    132132                        if ( $id != '0' && $id != $current_site->blog_id && current_user_can( 'delete_site', $id ) ) {
     
    144144                                                switch ( $doaction ) {
    145145                                                        case 'delete':
    146146                                                                if ( ! current_user_can( 'delete_site', $val ) )
    147                                                                         wp_die( __( 'You are not allowed to delete the site.' ) );
     147                                                                        wp_die( __( 'Sorry, you are not allowed to delete the site.' ) );
    148148
    149149                                                                $updated_action = 'all_delete';
    150150                                                                wpmu_delete_blog( $val, true );
     
    157157                                                        break;
    158158                                                }
    159159                                        } else {
    160                                                 wp_die( __( 'You are not allowed to change the current site.' ) );
     160                                                wp_die( __( 'Sorry, you are not allowed to change the current site.' ) );
    161161                                        }
    162162                                }
    163163                        } else {
     
    237237                        $msg = __( 'Site deleted.' );
    238238                break;
    239239                case 'not_deleted':
    240                         $msg = __( 'You do not have permission to delete that site.' );
     240                        $msg = __( 'Sorry, you are not allowed to delete that site.' );
    241241                break;
    242242                case 'archiveblog':
    243243                        $msg = __( 'Site archived.' );
  • wp-admin/network/themes.php

     
    1414        wp_die( __( 'Multisite support is not enabled.' ) );
    1515
    1616if ( !current_user_can('manage_network_themes') )
    17         wp_die( __( 'You do not have sufficient permissions to manage network themes.' ) );
     17        wp_die( __( 'Sorry, you are not allowed to manage network themes.' ) );
    1818
    1919$wp_list_table = _get_list_table('WP_MS_Themes_List_Table');
    2020$pagenum = $wp_list_table->get_pagenum();
     
    9090                        exit;
    9191                case 'delete-selected':
    9292                        if ( ! current_user_can( 'delete_themes' ) ) {
    93                                 wp_die( __('You do not have sufficient permissions to delete themes for this site.') );
     93                                wp_die( __('Sorry, you are not allowed to delete themes for this site.') );
    9494                        }
    9595
    9696                        check_admin_referer( 'bulk-themes' );
  • wp-admin/network/upgrade.php

     
    3636require_once( ABSPATH . 'wp-admin/admin-header.php' );
    3737
    3838if ( ! current_user_can( 'manage_network' ) )
    39         wp_die( __( 'You do not have permission to access this page.' ), 403 );
     39        wp_die( __( 'Sorry, you are not allowed to access this page.' ), 403 );
    4040
    4141echo '<div class="wrap">';
    4242echo '<h1>' . __( 'Upgrade Network' ) . '</h1>';
  • wp-admin/network/user-new.php

     
    1414        wp_die( __( 'Multisite support is not enabled.' ) );
    1515
    1616if ( ! current_user_can('create_users') )
    17         wp_die(__('You do not have sufficient permissions to add users to this network.'));
     17        wp_die(__('Sorry, you are not allowed to add users to this network.'));
    1818
    1919get_current_screen()->add_help_tab( array(
    2020        'id'      => 'overview',
     
    3434        check_admin_referer( 'add-user', '_wpnonce_add-user' );
    3535
    3636        if ( ! current_user_can( 'manage_network_users' ) )
    37                 wp_die( __( 'You do not have permission to access this page.' ), 403 );
     37                wp_die( __( 'Sorry, you are not allowed to access this page.' ), 403 );
    3838
    3939        if ( ! is_array( $_POST['user'] ) )
    4040                wp_die( __( 'Cannot create an empty user.' ) );
  • wp-admin/network/users.php

     
    1414        wp_die( __( 'Multisite support is not enabled.' ) );
    1515
    1616if ( ! current_user_can( 'manage_network_users' ) )
    17         wp_die( __( 'You do not have permission to access this page.' ), 403 );
     17        wp_die( __( 'Sorry, you are not allowed to access this page.' ), 403 );
    1818
    1919if ( isset( $_GET['action'] ) ) {
    2020        /** This action is documented in wp-admin/network/edit.php */
     
    2323        switch ( $_GET['action'] ) {
    2424                case 'deleteuser':
    2525                        if ( ! current_user_can( 'manage_network_users' ) )
    26                                 wp_die( __( 'You do not have permission to access this page.' ), 403 );
     26                                wp_die( __( 'Sorry, you are not allowed to access this page.' ), 403 );
    2727
    2828                        check_admin_referer( 'deleteuser' );
    2929
     
    4444
    4545                case 'allusers':
    4646                        if ( !current_user_can( 'manage_network_users' ) )
    47                                 wp_die( __( 'You do not have permission to access this page.' ), 403 );
     47                                wp_die( __( 'Sorry, you are not allowed to access this page.' ), 403 );
    4848
    4949                        if ( ( isset( $_POST['action']) || isset($_POST['action2'] ) ) && isset( $_POST['allusers'] ) ) {
    5050                                check_admin_referer( 'bulk-users-network' );
     
    5757                                                switch ( $doaction ) {
    5858                                                        case 'delete':
    5959                                                                if ( ! current_user_can( 'delete_users' ) )
    60                                                                         wp_die( __( 'You do not have permission to access this page.' ), 403 );
     60                                                                        wp_die( __( 'Sorry, you are not allowed to access this page.' ), 403 );
    6161                                                                $title = __( 'Users' );
    6262                                                                $parent_file = 'users.php';
    6363                                                                require_once( ABSPATH . 'wp-admin/admin-header.php' );
     
    106106                case 'dodelete':
    107107                        check_admin_referer( 'ms-users-delete' );
    108108                        if ( ! ( current_user_can( 'manage_network_users' ) && current_user_can( 'delete_users' ) ) )
    109                                 wp_die( __( 'You do not have permission to access this page.' ), 403 );
     109                                wp_die( __( 'Sorry, you are not allowed to access this page.' ), 403 );
    110110
    111111                        if ( ! empty( $_POST['blog'] ) && is_array( $_POST['blog'] ) ) {
    112112                                foreach ( $_POST['blog'] as $id => $users ) {
  • wp-admin/options-discussion.php

     
    99require_once( dirname( __FILE__ ) . '/admin.php' );
    1010
    1111if ( ! current_user_can( 'manage_options' ) )
    12         wp_die( __( 'You do not have sufficient permissions to manage options for this site.' ) );
     12        wp_die( __( 'Sorry, you are not allowed to manage options for this site.' ) );
    1313
    1414$title = __('Discussion Settings');
    1515$parent_file = 'options-general.php';
  • wp-admin/options-general.php

     
    1313require_once( ABSPATH . 'wp-admin/includes/translation-install.php' );
    1414
    1515if ( ! current_user_can( 'manage_options' ) )
    16         wp_die( __( 'You do not have sufficient permissions to manage options for this site.' ) );
     16        wp_die( __( 'Sorry, you are not allowed to manage options for this site.' ) );
    1717
    1818$title = __('General Settings');
    1919$parent_file = 'options-general.php';
  • wp-admin/options-media.php

     
    1010require_once( dirname( __FILE__ ) . '/admin.php' );
    1111
    1212if ( ! current_user_can( 'manage_options' ) )
    13         wp_die( __( 'You do not have sufficient permissions to manage options for this site.' ) );
     13        wp_die( __( 'Sorry, you are not allowed to manage options for this site.' ) );
    1414
    1515$title = __('Media Settings');
    1616$parent_file = 'options-general.php';
  • wp-admin/options-permalink.php

     
    1010require_once( dirname( __FILE__ ) . '/admin.php' );
    1111
    1212if ( ! current_user_can( 'manage_options' ) )
    13         wp_die( __( 'You do not have sufficient permissions to manage options for this site.' ) );
     13        wp_die( __( 'Sorry, you are not allowed to manage options for this site.' ) );
    1414
    1515$title = __('Permalink Settings');
    1616$parent_file = 'options-general.php';
  • wp-admin/options-reading.php

     
    1010require_once( dirname( __FILE__ ) . '/admin.php' );
    1111
    1212if ( ! current_user_can( 'manage_options' ) )
    13         wp_die( __( 'You do not have sufficient permissions to manage options for this site.' ) );
     13        wp_die( __( 'Sorry, you are not allowed to manage options for this site.' ) );
    1414
    1515$title = __( 'Reading Settings' );
    1616$parent_file = 'options-general.php';
  • wp-admin/options-writing.php

     
    1010require_once( dirname( __FILE__ ) . '/admin.php' );
    1111
    1212if ( ! current_user_can( 'manage_options' ) )
    13         wp_die( __( 'You do not have sufficient permissions to manage options for this site.' ) );
     13        wp_die( __( 'Sorry, you are not allowed to manage options for this site.' ) );
    1414
    1515$title = __('Writing Settings');
    1616$parent_file = 'options-general.php';
  • wp-admin/options.php

     
    4747if ( ! current_user_can( $capability ) ) {
    4848        wp_die(
    4949                '<h1>' . __( 'Cheatin&#8217; uh?' ) . '</h1>' .
    50                 '<p>' . __( 'You are not allowed to manage these items.' ) . '</p>',
     50                '<p>' . __( 'Sorry, you are not allowed to manage these items.' ) . '</p>',
    5151                403
    5252        );
    5353}
     
    7676if ( is_multisite() && ! is_super_admin() && 'update' != $action ) {
    7777        wp_die(
    7878                '<h1>' . __( 'Cheatin&#8217; uh?' ) . '</h1>' .
    79                 '<p>' . __( 'You are not allowed to delete these items.' ) . '</p>',
     79                '<p>' . __( 'Sorry, you are not allowed to delete these items.' ) . '</p>',
    8080                403
    8181        );
    8282}
     
    160160
    161161        if ( 'options' == $option_page ) {
    162162                if ( is_multisite() && ! is_super_admin() )
    163                         wp_die( __( 'You do not have sufficient permissions to modify unregistered settings for this site.' ) );
     163                        wp_die( __( 'Sorry, you are not allowed to modify unregistered settings for this site.' ) );
    164164                $options = explode( ',', wp_unslash( $_POST[ 'page_options' ] ) );
    165165        } else {
    166166                $options = $whitelist_options[ $option_page ];
  • wp-admin/plugin-editor.php

     
    1515}
    1616
    1717if ( !current_user_can('edit_plugins') )
    18         wp_die( __('You do not have sufficient permissions to edit plugins for this site.') );
     18        wp_die( __('Sorry, you are not allowed to edit plugins for this site.') );
    1919
    2020$title = __("Edit Plugins");
    2121$parent_file = 'plugins.php';
  • wp-admin/plugin-install.php

     
    1515require_once( dirname( __FILE__ ) . '/admin.php' );
    1616
    1717if ( ! current_user_can('install_plugins') )
    18         wp_die(__('You do not have sufficient permissions to install plugins on this site.'));
     18        wp_die(__('Sorry, you are not allowed to install plugins on this site.'));
    1919
    2020if ( is_multisite() && ! is_network_admin() ) {
    2121        wp_redirect( network_admin_url( 'plugin-install.php' ) );
  • wp-admin/plugins.php

     
    1010require_once( dirname( __FILE__ ) . '/admin.php' );
    1111
    1212if ( ! current_user_can('activate_plugins') )
    13         wp_die( __( 'You do not have sufficient permissions to manage plugins for this site.' ) );
     13        wp_die( __( 'Sorry, you are not allowed to manage plugins for this site.' ) );
    1414
    1515$wp_list_table = _get_list_table('WP_Plugins_List_Table');
    1616$pagenum = $wp_list_table->get_pagenum();
     
    3030        switch ( $action ) {
    3131                case 'activate':
    3232                        if ( ! current_user_can('activate_plugins') )
    33                                 wp_die(__('You do not have sufficient permissions to activate plugins for this site.'));
     33                                wp_die(__('Sorry, you are not allowed to activate plugins for this site.'));
    3434
    3535                        if ( is_multisite() && ! is_network_admin() && is_network_only_plugin( $plugin ) ) {
    3636                                wp_redirect( self_admin_url("plugins.php?plugin_status=$status&paged=$page&s=$s") );
     
    6969
    7070                case 'activate-selected':
    7171                        if ( ! current_user_can('activate_plugins') )
    72                                 wp_die(__('You do not have sufficient permissions to activate plugins for this site.'));
     72                                wp_die(__('Sorry, you are not allowed to activate plugins for this site.'));
    7373
    7474                        check_admin_referer('bulk-plugins');
    7575
     
    147147
    148148                case 'error_scrape':
    149149                        if ( ! current_user_can('activate_plugins') )
    150                                 wp_die(__('You do not have sufficient permissions to activate plugins for this site.'));
     150                                wp_die(__('Sorry, you are not allowed to activate plugins for this site.'));
    151151
    152152                        check_admin_referer('plugin-activation-error_' . $plugin);
    153153
     
    168168
    169169                case 'deactivate':
    170170                        if ( ! current_user_can('activate_plugins') )
    171                                 wp_die(__('You do not have sufficient permissions to deactivate plugins for this site.'));
     171                                wp_die(__('Sorry, you are not allowed to deactivate plugins for this site.'));
    172172
    173173                        check_admin_referer('deactivate-plugin_' . $plugin);
    174174
     
    193193
    194194                case 'deactivate-selected':
    195195                        if ( ! current_user_can('activate_plugins') )
    196                                 wp_die(__('You do not have sufficient permissions to deactivate plugins for this site.'));
     196                                wp_die(__('Sorry, you are not allowed to deactivate plugins for this site.'));
    197197
    198198                        check_admin_referer('bulk-plugins');
    199199
     
    228228
    229229                case 'delete-selected':
    230230                        if ( ! current_user_can('delete_plugins') ) {
    231                                 wp_die(__('You do not have sufficient permissions to delete plugins for this site.'));
     231                                wp_die(__('Sorry, you are not allowed to delete plugins for this site.'));
    232232                        }
    233233
    234234                        check_admin_referer('bulk-plugins');
  • wp-admin/post-new.php

     
    5757if ( ! current_user_can( $post_type_object->cap->edit_posts ) || ! current_user_can( $post_type_object->cap->create_posts ) ) {
    5858        wp_die(
    5959                '<h1>' . __( 'Cheatin&#8217; uh?' ) . '</h1>' .
    60                 '<p>' . __( 'You are not allowed to create posts as this user.' ) . '</p>',
     60                '<p>' . __( 'Sorry, you are not allowed to create posts as this user.' ) . '</p>',
    6161                403
    6262        );
    6363}
  • wp-admin/post.php

     
    110110                wp_die( __( 'Unknown post type.' ) );
    111111
    112112        if ( ! in_array( $typenow, get_post_types( array( 'show_ui' => true ) ) ) ) {
    113                 wp_die( __( 'You are not allowed to edit posts in this post type.' ) );
     113                wp_die( __( 'Sorry, you are not allowed to edit posts in this post type.' ) );
    114114        }
    115115
    116116        if ( ! current_user_can( 'edit_post', $post_id ) )
    117                 wp_die( __( 'You are not allowed to edit this item.' ) );
     117                wp_die( __( 'Sorry, you are not allowed to edit this item.' ) );
    118118
    119119        if ( 'trash' == $post->post_status )
    120120                wp_die( __( 'You can&#8217;t edit this item because it is in the Trash. Please restore it and try again.' ) );
     
    211211                wp_die( __( 'Unknown post type.' ) );
    212212
    213213        if ( ! current_user_can( 'delete_post', $post_id ) )
    214                 wp_die( __( 'You are not allowed to move this item to the Trash.' ) );
     214                wp_die( __( 'Sorry, you are not allowed to move this item to the Trash.' ) );
    215215
    216216        if ( $user_id = wp_check_post_lock( $post_id ) ) {
    217217                $user = get_userdata( $user_id );
     
    234234                wp_die( __( 'Unknown post type.' ) );
    235235
    236236        if ( ! current_user_can( 'delete_post', $post_id ) )
    237                 wp_die( __( 'You are not allowed to restore this item from the Trash.' ) );
     237                wp_die( __( 'Sorry, you are not allowed to restore this item from the Trash.' ) );
    238238
    239239        if ( ! wp_untrash_post( $post_id ) )
    240240                wp_die( __( 'Error in restoring from Trash.' ) );
     
    252252                wp_die( __( 'Unknown post type.' ) );
    253253
    254254        if ( ! current_user_can( 'delete_post', $post_id ) )
    255                 wp_die( __( 'You are not allowed to delete this item.' ) );
     255                wp_die( __( 'Sorry, you are not allowed to delete this item.' ) );
    256256
    257257        if ( $post->post_type == 'attachment' ) {
    258258                $force = ( ! MEDIA_TRASH );
  • wp-admin/press-this.php

     
    1414if ( ! current_user_can( 'edit_posts' ) || ! current_user_can( get_post_type_object( 'post' )->cap->create_posts ) ) {
    1515        wp_die(
    1616                '<h1>' . __( 'Cheatin&#8217; uh?' ) . '</h1>' .
    17                 '<p>' . __( 'You are not allowed to create posts as this user.' ) . '</p>',
     17                '<p>' . __( 'Sorry, you are not allowed to create posts as this user.' ) . '</p>',
    1818                403
    1919        );
    2020}
  • wp-admin/term.php

     
    3535) {
    3636        wp_die(
    3737                '<h1>' . __( 'Cheatin&#8217; uh?' ) . '</h1>' .
    38                 '<p>' . __( 'You are not allowed to manage this item.' ) . '</p>',
     38                '<p>' . __( 'Sorry, you are not allowed to manage this item.' ) . '</p>',
    3939                403
    4040        );
    4141}
  • wp-admin/theme-editor.php

     
    1515}
    1616
    1717if ( !current_user_can('edit_themes') )
    18         wp_die('<p>'.__('You do not have sufficient permissions to edit templates for this site.').'</p>');
     18        wp_die('<p>'.__('Sorry, you are not allowed to edit templates for this site.').'</p>');
    1919
    2020$title = __("Edit Themes");
    2121$parent_file = 'themes.php';
  • wp-admin/theme-install.php

     
    1313wp_reset_vars( array( 'tab' ) );
    1414
    1515if ( ! current_user_can('install_themes') )
    16         wp_die( __( 'You do not have sufficient permissions to install themes on this site.' ) );
     16        wp_die( __( 'Sorry, you are not allowed to install themes on this site.' ) );
    1717
    1818if ( is_multisite() && ! is_network_admin() ) {
    1919        wp_redirect( network_admin_url( 'theme-install.php' ) );
  • wp-admin/themes.php

     
    1212if ( ! current_user_can( 'switch_themes' ) && ! current_user_can( 'edit_theme_options' ) ) {
    1313        wp_die(
    1414                '<h1>' . __( 'Cheatin&#8217; uh?' ) . '</h1>' .
    15                 '<p>' . __( 'You are not allowed to edit theme options on this site.' ) . '</p>',
     15                '<p>' . __( 'Sorry, you are not allowed to edit theme options on this site.' ) . '</p>',
    1616                403
    1717        );
    1818}
     
    4040                if ( ! current_user_can( 'delete_themes' ) ) {
    4141                        wp_die(
    4242                                '<h1>' . __( 'Cheatin&#8217; uh?' ) . '</h1>' .
    43                                 '<p>' . __( 'You are not allowed to delete this item.' ) . '</p>',
     43                                '<p>' . __( 'Sorry, you are not allowed to delete this item.' ) . '</p>',
    4444                                403
    4545                        );
    4646                }
  • wp-admin/update-core.php

     
    2020}
    2121
    2222if ( ! current_user_can( 'update_core' ) && ! current_user_can( 'update_themes' ) && ! current_user_can( 'update_plugins' ) )
    23         wp_die( __( 'You do not have sufficient permissions to update this site.' ) );
     23        wp_die( __( 'Sorry, you are not allowed to update this site.' ) );
    2424
    2525/**
    2626 *
     
    623623} elseif ( 'do-core-upgrade' == $action || 'do-core-reinstall' == $action ) {
    624624
    625625        if ( ! current_user_can( 'update_core' ) )
    626                 wp_die( __( 'You do not have sufficient permissions to update this site.' ) );
     626                wp_die( __( 'Sorry, you are not allowed to update this site.' ) );
    627627
    628628        check_admin_referer('upgrade-core');
    629629
     
    647647} elseif ( 'do-plugin-upgrade' == $action ) {
    648648
    649649        if ( ! current_user_can( 'update_plugins' ) )
    650                 wp_die( __( 'You do not have sufficient permissions to update this site.' ) );
     650                wp_die( __( 'Sorry, you are not allowed to update this site.' ) );
    651651
    652652        check_admin_referer('upgrade-core');
    653653
     
    675675} elseif ( 'do-theme-upgrade' == $action ) {
    676676
    677677        if ( ! current_user_can( 'update_themes' ) )
    678                 wp_die( __( 'You do not have sufficient permissions to update this site.' ) );
     678                wp_die( __( 'Sorry, you are not allowed to update this site.' ) );
    679679
    680680        check_admin_referer('upgrade-core');
    681681
     
    705705} elseif ( 'do-translation-upgrade' == $action ) {
    706706
    707707        if ( ! current_user_can( 'update_core' ) && ! current_user_can( 'update_plugins' ) && ! current_user_can( 'update_themes' ) )
    708                 wp_die( __( 'You do not have sufficient permissions to update this site.' ) );
     708                wp_die( __( 'Sorry, you are not allowed to update this site.' ) );
    709709
    710710        check_admin_referer( 'upgrade-translations' );
    711711
  • wp-admin/update.php

     
    2121
    2222        if ( 'update-selected' == $action ) {
    2323                if ( ! current_user_can( 'update_plugins' ) )
    24                         wp_die( __( 'You do not have sufficient permissions to update plugins for this site.' ) );
     24                        wp_die( __( 'Sorry, you are not allowed to update plugins for this site.' ) );
    2525
    2626                check_admin_referer( 'bulk-update-plugins' );
    2727
     
    4747
    4848        } elseif ( 'upgrade-plugin' == $action ) {
    4949                if ( ! current_user_can('update_plugins') )
    50                         wp_die(__('You do not have sufficient permissions to update plugins for this site.'));
     50                        wp_die(__('Sorry, you are not allowed to update plugins for this site.'));
    5151
    5252                check_admin_referer('upgrade-plugin_' . $plugin);
    5353
     
    6868
    6969        } elseif ('activate-plugin' == $action ) {
    7070                if ( ! current_user_can('update_plugins') )
    71                         wp_die(__('You do not have sufficient permissions to update plugins for this site.'));
     71                        wp_die(__('Sorry, you are not allowed to update plugins for this site.'));
    7272
    7373                check_admin_referer('activate-plugin_' . $plugin);
    7474                if ( ! isset($_GET['failure']) && ! isset($_GET['success']) ) {
     
    9393        } elseif ( 'install-plugin' == $action ) {
    9494
    9595                if ( ! current_user_can('install_plugins') )
    96                         wp_die( __( 'You do not have sufficient permissions to install plugins on this site.' ) );
     96                        wp_die( __( 'Sorry, you are not allowed to install plugins on this site.' ) );
    9797
    9898                include_once( ABSPATH . 'wp-admin/includes/plugin-install.php' ); //for plugins_api..
    9999
     
    141141        } elseif ( 'upload-plugin' == $action ) {
    142142
    143143                if ( ! current_user_can( 'upload_plugins' ) ) {
    144                         wp_die( __( 'You do not have sufficient permissions to install plugins on this site.' ) );
     144                        wp_die( __( 'Sorry, you are not allowed to install plugins on this site.' ) );
    145145                }
    146146
    147147                check_admin_referer('plugin-upload');
     
    169169        } elseif ( 'upgrade-theme' == $action ) {
    170170
    171171                if ( ! current_user_can('update_themes') )
    172                         wp_die(__('You do not have sufficient permissions to update themes for this site.'));
     172                        wp_die(__('Sorry, you are not allowed to update themes for this site.'));
    173173
    174174                check_admin_referer('upgrade-theme_' . $theme);
    175175
     
    190190                include(ABSPATH . 'wp-admin/admin-footer.php');
    191191        } elseif ( 'update-selected-themes' == $action ) {
    192192                if ( ! current_user_can( 'update_themes' ) )
    193                         wp_die( __( 'You do not have sufficient permissions to update themes for this site.' ) );
     193                        wp_die( __( 'Sorry, you are not allowed to update themes for this site.' ) );
    194194
    195195                check_admin_referer( 'bulk-update-themes' );
    196196
     
    216216        } elseif ( 'install-theme' == $action ) {
    217217
    218218                if ( ! current_user_can('install_themes') )
    219                         wp_die( __( 'You do not have sufficient permissions to install themes on this site.' ) );
     219                        wp_die( __( 'Sorry, you are not allowed to install themes on this site.' ) );
    220220
    221221                include_once( ABSPATH . 'wp-admin/includes/class-wp-upgrader.php' ); //for themes_api..
    222222
     
    246246        } elseif ( 'upload-theme' == $action ) {
    247247
    248248                if ( ! current_user_can( 'upload_themes' ) ) {
    249                         wp_die( __( 'You do not have sufficient permissions to install themes on this site.' ) );
     249                        wp_die( __( 'Sorry, you are not allowed to install themes on this site.' ) );
    250250                }
    251251
    252252                check_admin_referer('theme-upload');
  • wp-admin/upload.php

     
    1010require_once( dirname( __FILE__ ) . '/admin.php' );
    1111
    1212if ( !current_user_can('upload_files') )
    13         wp_die( __( 'You do not have permission to upload files.' ) );
     13        wp_die( __( 'Sorry, you are not allowed to upload files.' ) );
    1414
    1515$mode = get_user_option( 'media_library_mode', get_current_user_id() ) ? get_user_option( 'media_library_mode', get_current_user_id() ) : 'grid';
    1616$modes = array( 'grid', 'list' );
     
    132132                                break;
    133133                        foreach ( (array) $post_ids as $post_id ) {
    134134                                if ( !current_user_can( 'delete_post', $post_id ) )
    135                                         wp_die( __( 'You are not allowed to move this item to the Trash.' ) );
     135                                        wp_die( __( 'Sorry, you are not allowed to move this item to the Trash.' ) );
    136136
    137137                                if ( !wp_trash_post( $post_id ) )
    138138                                        wp_die( __( 'Error in moving to Trash.' ) );
     
    144144                                break;
    145145                        foreach ( (array) $post_ids as $post_id ) {
    146146                                if ( !current_user_can( 'delete_post', $post_id ) )
    147                                         wp_die( __( 'You are not allowed to move this item out of the Trash.' ) );
     147                                        wp_die( __( 'Sorry, you are not allowed to move this item out of the Trash.' ) );
    148148
    149149                                if ( !wp_untrash_post( $post_id ) )
    150150                                        wp_die( __( 'Error in restoring from Trash.' ) );
     
    156156                                break;
    157157                        foreach ( (array) $post_ids as $post_id_del ) {
    158158                                if ( !current_user_can( 'delete_post', $post_id_del ) )
    159                                         wp_die( __( 'You are not allowed to delete this item.' ) );
     159                                        wp_die( __( 'Sorry, you are not allowed to delete this item.' ) );
    160160
    161161                                if ( !wp_delete_attachment( $post_id_del ) )
    162162                                        wp_die( __( 'Error in deleting.' ) );
  • wp-admin/user-edit.php

     
    7777        && $user_id != $current_user->ID
    7878        && ! apply_filters( 'enable_edit_any_user_configuration', true )
    7979) {
    80         wp_die( __( 'You do not have permission to edit this user.' ) );
     80        wp_die( __( 'Sorry, you are not allowed to edit this user.' ) );
    8181}
    8282
    8383// Execute confirmed email change. See send_confirmation_on_profile_email().
     
    110110check_admin_referer('update-user_' . $user_id);
    111111
    112112if ( !current_user_can('edit_user', $user_id) )
    113         wp_die(__('You do not have permission to edit this user.'));
     113        wp_die(__('Sorry, you are not allowed to edit this user.'));
    114114
    115115if ( IS_PROFILE_PAGE ) {
    116116        /**
     
    163163$profileuser = get_user_to_edit($user_id);
    164164
    165165if ( !current_user_can('edit_user', $user_id) )
    166         wp_die(__('You do not have permission to edit this user.'));
     166        wp_die(__('Sorry, you are not allowed to edit this user.'));
    167167
    168168$sessions = WP_Session_Tokens::get_instance( $profileuser->ID );
    169169
  • wp-admin/user-new.php

     
    1313        if ( ! current_user_can( 'create_users' ) && ! current_user_can( 'promote_users' ) ) {
    1414                wp_die(
    1515                        '<h1>' . __( 'Cheatin&#8217; uh?' ) . '</h1>' .
    16                         '<p>' . __( 'You do not have sufficient permissions to add users to this network.' ) . '</p>',
     16                        '<p>' . __( 'Sorry, you are not allowed to add users to this network.' ) . '</p>',
    1717                        403
    1818                );
    1919        }
     
    2020} elseif ( ! current_user_can( 'create_users' ) ) {
    2121        wp_die(
    2222                '<h1>' . __( 'Cheatin&#8217; uh?' ) . '</h1>' .
    23                 '<p>' . __( 'You are not allowed to create users.' ) . '</p>',
     23                '<p>' . __( 'Sorry, you are not allowed to create users.' ) . '</p>',
    2424                403
    2525        );
    2626}
     
    5353        if ( ! current_user_can( 'promote_user', $user_details->ID ) ) {
    5454                wp_die(
    5555                        '<h1>' . __( 'Cheatin&#8217; uh?' ) . '</h1>' .
    56                         '<p>' . __( 'You do not have sufficient permissions to add users to this network.' ) . '</p>',
     56                        '<p>' . __( 'Sorry, you are not allowed to add users to this network.' ) . '</p>',
    5757                        403
    5858                );
    5959        }
     
    107107        if ( ! current_user_can( 'create_users' ) ) {
    108108                wp_die(
    109109                        '<h1>' . __( 'Cheatin&#8217; uh?' ) . '</h1>' .
    110                         '<p>' . __( 'You are not allowed to create users.' ) . '</p>',
     110                        '<p>' . __( 'Sorry, you are not allowed to create users.' ) . '</p>',
    111111                        403
    112112                );
    113113        }
  • wp-admin/users.php

     
    1313if ( ! current_user_can( 'list_users' ) ) {
    1414        wp_die(
    1515                '<h1>' . __( 'Cheatin&#8217; uh?' ) . '</h1>' .
    16                 '<p>' . __( 'You are not allowed to browse users.' ) . '</p>',
     16                '<p>' . __( 'Sorry, you are not allowed to browse users.' ) . '</p>',
    1717                403
    1818        );
    1919}
  • wp-admin/widgets.php

     
    1515if ( ! current_user_can( 'edit_theme_options' ) ) {
    1616        wp_die(
    1717                '<h1>' . __( 'Cheatin&#8217; uh?' ) . '</h1>' .
    18                 '<p>' . __( 'You are not allowed to edit theme options on this site.' ) . '</p>',
     18                '<p>' . __( 'Sorry, you are not allowed to edit theme options on this site.' ) . '</p>',
    1919                403
    2020        );
    2121}
  • wp-includes/class-wp-customize-manager.php

     
    387387                show_admin_bar( false );
    388388
    389389                if ( ! current_user_can( 'customize' ) ) {
    390                         $this->wp_die( -1, __( 'You are not allowed to customize this site.' ) );
     390                        $this->wp_die( -1, __( 'Sorry, you are not allowed to customize this site.' ) );
    391391                }
    392392
    393393                $this->original_stylesheet = get_stylesheet();
     
    401401                        // If the requested theme is not the active theme and the user doesn't have the
    402402                        // switch_themes cap, bail.
    403403                        if ( ! current_user_can( 'switch_themes' ) ) {
    404                                 $this->wp_die( -1, __( 'You are not allowed to edit theme options on this site.' ) );
     404                                $this->wp_die( -1, __( 'Sorry, you are not allowed to edit theme options on this site.' ) );
    405405                        }
    406406
    407407                        // If the theme has errors while loading, bail.
  • wp-includes/class-wp-xmlrpc-server.php

     
    13401340                $post_data['post_author'] = absint( $post_data['post_author'] );
    13411341                if ( ! empty( $post_data['post_author'] ) && $post_data['post_author'] != $user->ID ) {
    13421342                        if ( ! current_user_can( $post_type->cap->edit_others_posts ) )
    1343                                 return new IXR_Error( 401, __( 'You are not allowed to create posts as this user.' ) );
     1343                                return new IXR_Error( 401, __( 'Sorry, you are not allowed to create posts as this user.' ) );
    13441344
    13451345                        $author = get_userdata( $post_data['post_author'] );
    13461346
     
    16341634                }
    16351635
    16361636                if ( ! current_user_can( 'delete_post', $post_id ) ) {
    1637                         return new IXR_Error( 401, __( 'Sorry, you do not have the right to delete this post.' ) );
     1637                        return new IXR_Error( 401, __( 'Sorry, you are not allowed to delete this post.' ) );
    16381638                }
    16391639
    16401640                $result = wp_delete_post( $post_id );
     
    17921792                }
    17931793
    17941794                if ( ! current_user_can( $post_type->cap->edit_posts ) )
    1795                         return new IXR_Error( 401, __( 'You are not allowed to edit posts in this post type.' ));
     1795                        return new IXR_Error( 401, __( 'Sorry, you are not allowed to edit posts in this post type.' ));
    17961796
    17971797                $query['post_type'] = $post_type->name;
    17981798
     
    18751875                $taxonomy = get_taxonomy( $content_struct['taxonomy'] );
    18761876
    18771877                if ( ! current_user_can( $taxonomy->cap->manage_terms ) )
    1878                         return new IXR_Error( 401, __( 'You are not allowed to create terms in this taxonomy.' ) );
     1878                        return new IXR_Error( 401, __( 'Sorry, you are not allowed to create terms in this taxonomy.' ) );
    18791879
    18801880                $taxonomy = (array) $taxonomy;
    18811881
     
    19621962                $taxonomy = get_taxonomy( $content_struct['taxonomy'] );
    19631963
    19641964                if ( ! current_user_can( $taxonomy->cap->edit_terms ) )
    1965                         return new IXR_Error( 401, __( 'You are not allowed to edit terms in this taxonomy.' ) );
     1965                        return new IXR_Error( 401, __( 'Sorry, you are not allowed to edit terms in this taxonomy.' ) );
    19661966
    19671967                $taxonomy = (array) $taxonomy;
    19681968
     
    20582058                $taxonomy = get_taxonomy( $taxonomy );
    20592059
    20602060                if ( ! current_user_can( $taxonomy->cap->delete_terms ) )
    2061                         return new IXR_Error( 401, __( 'You are not allowed to delete terms in this taxonomy.' ) );
     2061                        return new IXR_Error( 401, __( 'Sorry, you are not allowed to delete terms in this taxonomy.' ) );
    20622062
    20632063                $term = get_term( $term_id, $taxonomy->name );
    20642064
     
    21292129                $taxonomy = get_taxonomy( $taxonomy );
    21302130
    21312131                if ( ! current_user_can( $taxonomy->cap->assign_terms ) )
    2132                         return new IXR_Error( 401, __( 'You are not allowed to assign terms in this taxonomy.' ) );
     2132                        return new IXR_Error( 401, __( 'Sorry, you are not allowed to assign terms in this taxonomy.' ) );
    21332133
    21342134                $term = get_term( $term_id , $taxonomy->name, ARRAY_A );
    21352135
     
    21872187                $taxonomy = get_taxonomy( $taxonomy );
    21882188
    21892189                if ( ! current_user_can( $taxonomy->cap->assign_terms ) )
    2190                         return new IXR_Error( 401, __( 'You are not allowed to assign terms in this taxonomy.' ) );
     2190                        return new IXR_Error( 401, __( 'Sorry, you are not allowed to assign terms in this taxonomy.' ) );
    21912191
    21922192                $query = array();
    21932193
     
    22822282                $taxonomy = get_taxonomy( $taxonomy );
    22832283
    22842284                if ( ! current_user_can( $taxonomy->cap->assign_terms ) )
    2285                         return new IXR_Error( 401, __( 'You are not allowed to assign terms in this taxonomy.' ) );
     2285                        return new IXR_Error( 401, __( 'Sorry, you are not allowed to assign terms in this taxonomy.' ) );
    22862286
    22872287                return $this->_prepare_taxonomy( $taxonomy, $fields );
    22882288        }
     
    24702470                do_action( 'xmlrpc_call', 'wp.getUsers' );
    24712471
    24722472                if ( ! current_user_can( 'list_users' ) )
    2473                         return new IXR_Error( 401, __( 'You are not allowed to browse users.' ) );
     2473                        return new IXR_Error( 401, __( 'Sorry, you are not allowed to browse users.' ) );
    24742474
    24752475                $query = array( 'fields' => 'all_with_meta' );
    24762476
     
    27942794
    27952795                // Make sure the user can delete pages.
    27962796                if ( !current_user_can('delete_page', $page_id) )
    2797                         return new IXR_Error( 401, __( 'Sorry, you do not have the right to delete this page.' ) );
     2797                        return new IXR_Error( 401, __( 'Sorry, you are not allowed to delete this page.' ) );
    27982798
    27992799                // Attempt to delete the page.
    28002800                $result = wp_delete_post($page_id);
     
    28562856
    28572857                // Make sure the user is allowed to edit pages.
    28582858                if ( !current_user_can('edit_page', $page_id) )
    2859                         return new IXR_Error( 401, __( 'Sorry, you do not have the right to edit this page.' ) );
     2859                        return new IXR_Error( 401, __( 'Sorry, you are not allowed to edit this page.' ) );
    28602860
    28612861                // Mark this as content for a page.
    28622862                $content['post_type'] = 'page';
     
    30533053
    30543054                // Make sure the user is allowed to add a category.
    30553055                if ( !current_user_can('manage_categories') )
    3056                         return new IXR_Error(401, __('Sorry, you do not have the right to add a category.'));
     3056                        return new IXR_Error(401, __('Sorry, you are not allowed to add a category.'));
    30573057
    30583058                // If no slug was provided make it empty so that
    30593059                // WordPress will generate one.
     
    31283128                do_action( 'xmlrpc_call', 'wp.deleteCategory' );
    31293129
    31303130                if ( !current_user_can('manage_categories') )
    3131                         return new IXR_Error( 401, __( 'Sorry, you do not have the right to delete a category.' ) );
     3131                        return new IXR_Error( 401, __( 'Sorry, you are not allowed to delete a category.' ) );
    31323132
    31333133                $status = wp_delete_term( $category_id, 'category' );
    31343134
     
    32263226                }
    32273227
    32283228                if ( ! current_user_can( 'edit_comment', $comment_id ) ) {
    3229                         return new IXR_Error( 403, __( 'You are not allowed to moderate or edit this comment.' ) );
     3229                        return new IXR_Error( 403, __( 'Sorry, you are not allowed to moderate or edit this comment.' ) );
    32303230                }
    32313231
    32323232                return $this->_prepare_comment( $comment );
     
    33583358                }
    33593359
    33603360                if ( !current_user_can( 'edit_comment', $comment_ID ) ) {
    3361                         return new IXR_Error( 403, __( 'You are not allowed to moderate or edit this comment.' ) );
     3361                        return new IXR_Error( 403, __( 'Sorry, you are not allowed to moderate or edit this comment.' ) );
    33623362                }
    33633363
    33643364                /** This action is documented in wp-includes/class-wp-xmlrpc-server.php */
     
    34253425                }
    34263426
    34273427                if ( ! current_user_can( 'edit_comment', $comment_ID ) ) {
    3428                         return new IXR_Error( 403, __( 'You are not allowed to moderate or edit this comment.' ) );
     3428                        return new IXR_Error( 403, __( 'Sorry, you are not allowed to moderate or edit this comment.' ) );
    34293429                }
    34303430
    34313431                /** This action is documented in wp-includes/class-wp-xmlrpc-server.php */
     
    38683868                        return $this->error;
    38693869
    38703870                if ( !current_user_can( 'manage_options' ) )
    3871                         return new IXR_Error( 403, __( 'You are not allowed to update options.' ) );
     3871                        return new IXR_Error( 403, __( 'Sorry, you are not allowed to update options.' ) );
    38723872
    38733873                $option_names = array();
    38743874                foreach ( $options as $o_name => $o_value ) {
     
    39203920                        return $this->error;
    39213921
    39223922                if ( !current_user_can( 'upload_files' ) )
    3923                         return new IXR_Error( 403, __( 'You do not have permission to upload files.' ) );
     3923                        return new IXR_Error( 403, __( 'Sorry, you are not allowed to upload files.' ) );
    39243924
    39253925                /** This action is documented in wp-includes/class-wp-xmlrpc-server.php */
    39263926                do_action( 'xmlrpc_call', 'wp.getMediaItem' );
     
    39683968                        return $this->error;
    39693969
    39703970                if ( !current_user_can( 'upload_files' ) )
    3971                         return new IXR_Error( 401, __( 'You do not have permission to upload files.' ) );
     3971                        return new IXR_Error( 401, __( 'Sorry, you are not allowed to upload files.' ) );
    39723972
    39733973                /** This action is documented in wp-includes/class-wp-xmlrpc-server.php */
    39743974                do_action( 'xmlrpc_call', 'wp.getMediaLibrary' );
     
    46824682                $this->escape($actual_post);
    46834683
    46844684                if ( ! current_user_can( 'edit_post', $post_ID ) ) {
    4685                         return new IXR_Error(401, __('Sorry, you do not have the right to edit this post.'));
     4685                        return new IXR_Error(401, __('Sorry, you are not allowed to edit this post.'));
    46864686                }
    46874687                if ( 'publish' == $actual_post['post_status'] && ! current_user_can( 'publish_posts' ) ) {
    4688                         return new IXR_Error( 401, __( 'Sorry, you do not have the right to publish this post.' ) );
     4688                        return new IXR_Error( 401, __( 'Sorry, you are not allowed to publish this post.' ) );
    46894689                }
    46904690
    46914691                $postdata = array();
     
    47524752                }
    47534753
    47544754                if ( ! current_user_can( 'delete_post', $post_ID ) ) {
    4755                         return new IXR_Error( 401, __( 'Sorry, you do not have the right to delete this post.' ) );
     4755                        return new IXR_Error( 401, __( 'Sorry, you are not allowed to delete this post.' ) );
    47564756                }
    47574757
    47584758                $result = wp_delete_post( $post_ID );
     
    49054905                        switch ( $post_type ) {
    49064906                                case "post":
    49074907                                        if ( !current_user_can( 'edit_others_posts' ) )
    4908                                                 return new IXR_Error( 401, __( 'You are not allowed to create posts as this user.' ) );
     4908                                                return new IXR_Error( 401, __( 'Sorry, you are not allowed to create posts as this user.' ) );
    49094909                                        break;
    49104910                                case "page":
    49114911                                        if ( !current_user_can( 'edit_others_pages' ) )
    4912                                                 return new IXR_Error( 401, __( 'You are not allowed to create pages as this user.' ) );
     4912                                                return new IXR_Error( 401, __( 'Sorry, you are not allowed to create pages as this user.' ) );
    49134913                                        break;
    49144914                                default:
    49154915                                        return new IXR_Error( 401, __( 'Invalid post type' ) );
     
    51865186                        return new IXR_Error( 404, __( 'Invalid post ID.' ) );
    51875187
    51885188                if ( ! current_user_can( 'edit_post', $post_ID ) )
    5189                         return new IXR_Error( 401, __( 'Sorry, you do not have the right to edit this post.' ) );
     5189                        return new IXR_Error( 401, __( 'Sorry, you are not allowed to edit this post.' ) );
    51905190
    51915191                // Use wp.editPost to edit post types other than post and page.
    51925192                if ( ! in_array( $postdata[ 'post_type' ], array( 'post', 'page' ) ) )
     
    52455245                                switch ( $post_type ) {
    52465246                                        case 'post':
    52475247                                                if ( ! current_user_can( 'edit_others_posts' ) ) {
    5248                                                         return new IXR_Error( 401, __( 'You are not allowed to change the post author as this user.' ) );
     5248                                                        return new IXR_Error( 401, __( 'Sorry, you are not allowed to change the post author as this user.' ) );
    52495249                                                }
    52505250                                                break;
    52515251                                        case 'page':
    52525252                                                if ( ! current_user_can( 'edit_others_pages' ) ) {
    5253                                                         return new IXR_Error( 401, __( 'You are not allowed to change the page author as this user.' ) );
     5253                                                        return new IXR_Error( 401, __( 'Sorry, you are not allowed to change the page author as this user.' ) );
    52545254                                                }
    52555255                                                break;
    52565256                                        default:
     
    53575357
    53585358                if ( 'publish' == $post_status || 'private' == $post_status ) {
    53595359                        if ( 'page' == $post_type && ! current_user_can( 'publish_pages' ) ) {
    5360                                 return new IXR_Error( 401, __( 'Sorry, you do not have the right to publish this page.' ) );
     5360                                return new IXR_Error( 401, __( 'Sorry, you are not allowed to publish this page.' ) );
    53615361                        } elseif ( ! current_user_can( 'publish_posts' ) ) {
    5362                                 return new IXR_Error( 401, __( 'Sorry, you do not have the right to publish this post.' ) );
     5362                                return new IXR_Error( 401, __( 'Sorry, you are not allowed to publish this post.' ) );
    53635363                        }
    53645364                }
    53655365
     
    57905790                do_action( 'xmlrpc_call', 'metaWeblog.newMediaObject' );
    57915791
    57925792                if ( !current_user_can('upload_files') ) {
    5793                         $this->error = new IXR_Error( 401, __( 'You do not have permission to upload files.' ) );
     5793                        $this->error = new IXR_Error( 401, __( 'Sorry, you are not allowed to upload files.' ) );
    57945794                        return $this->error;
    57955795                }
    57965796
  • wp-includes/revision.php

     
    553553                $id = (int) $_GET['preview_id'];
    554554
    555555                if ( false === wp_verify_nonce( $_GET['preview_nonce'], 'post_preview_' . $id ) )
    556                         wp_die( __('You do not have permission to preview drafts.') );
     556                        wp_die( __('Sorry, you are not allowed to preview drafts.') );
    557557
    558558                add_filter('the_preview', '_set_preview');
    559559        }
  • wp-includes/script-loader.php

     
    124124
    125125        $scripts->add( 'wp-ajax-response', "/wp-includes/js/wp-ajax-response$suffix.js", array('jquery'), false, 1 );
    126126        did_action( 'init' ) && $scripts->localize( 'wp-ajax-response', 'wpAjax', array(
    127                 'noPerm' => __('You do not have permission to do that.'),
     127                'noPerm' => __('Sorry, you are not allowed to do that.'),
    128128                'broken' => __('An unidentified error has occurred.')
    129129        ) );
    130130
     
    444444                'cancel'             => __( 'Cancel' ),
    445445                'close'              => __( 'Close' ),
    446446                'cheatin'            => __( 'Cheatin&#8217; uh?' ),
    447                 'notAllowed'         => __( 'You are not allowed to customize this site.' ),
     447                'notAllowed'         => __( 'Sorry, you are not allowed to customize this site.' ),
    448448                'previewIframeTitle' => __( 'Site Preview' ),
    449449                'loginIframeTitle'   => __( 'Session expired' ),
    450450                'collapseSidebar'    => __( 'Collapse Sidebar' ),
     
    484484        if ( is_admin() ) {
    485485                $scripts->add( 'admin-tags', "/wp-admin/js/tags$suffix.js", array( 'jquery', 'wp-ajax-response' ), false, 1 );
    486486                did_action( 'init' ) && $scripts->localize( 'admin-tags', 'tagsl10n', array(
    487                         'noPerm' => __('You do not have permission to do that.'),
     487                        'noPerm' => __('Sorry, you are not allowed to do that.'),
    488488                        'broken' => __('An unidentified error has occurred.')
    489489                ));
    490490