Changeset 37914
- Timestamp:
- 06/29/2016 03:15:40 PM (9 years ago)
- Location:
- trunk
- Files:
-
- 73 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/admin.php
r37537 r37914 273 273 274 274 if ( ! current_user_can('import') ) 275 wp_die(__(' You are not allowed to import.'));275 wp_die(__('Sorry, you are not allowed to import.')); 276 276 277 277 if ( validate_file($importer) ) { -
trunk/src/wp-admin/async-upload.php
r37488 r37914 46 46 47 47 if ( ! current_user_can( 'upload_files' ) ) { 48 wp_die( __( ' You do not have permissionto upload files.' ) );48 wp_die( __( 'Sorry, you are not allowed to upload files.' ) ); 49 49 } 50 50 … … 55 55 wp_die( __( 'Unknown post type.' ) ); 56 56 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.' ) ); 58 58 59 59 switch ( $_REQUEST['fetch'] ) { -
trunk/src/wp-admin/comment.php
r37674 r37914 62 62 63 63 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.') ); 65 65 66 66 if ( 'trash' == $comment->comment_approved ) … … 255 255 comment_footer_die( __( 'Invalid comment ID.' ) . sprintf(' <a href="%s">' . __('Go back') . '</a>.', 'edit-comments.php') ); 256 256 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.') ); 258 258 259 259 if ( '' != wp_get_referer() && ! $noredir && false === strpos(wp_get_referer(), 'comment.php') ) -
trunk/src/wp-admin/custom-header.php
r37488 r37914 967 967 public function admin_page() { 968 968 if ( ! current_user_can('edit_theme_options') ) 969 wp_die(__(' You do not have permissionto customize headers.'));969 wp_die(__('Sorry, you are not allowed to customize headers.')); 970 970 $step = $this->step(); 971 971 if ( 2 == $step ) -
trunk/src/wp-admin/customize.php
r37560 r37914 16 16 wp_die( 17 17 '<h1>' . __( 'Cheatin’ 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>', 19 19 403 20 20 ); -
trunk/src/wp-admin/edit-comments.php
r36302 r37914 12 12 wp_die( 13 13 '<h1>' . __( 'Cheatin’ uh?' ) . '</h1>' . 14 '<p>' . __( ' You are not allowed to edit comments.' ) . '</p>',14 '<p>' . __( 'Sorry, you are not allowed to edit comments.' ) . '</p>', 15 15 403 16 16 ); … … 211 211 break; 212 212 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.' ); 214 214 break; 215 215 } -
trunk/src/wp-admin/edit-tags.php
r37696 r37914 19 19 20 20 if ( ! 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.' ) ); 22 22 } 23 23 … … 25 25 wp_die( 26 26 '<h1>' . __( 'Cheatin’ 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>', 28 28 403 29 29 ); … … 72 72 wp_die( 73 73 '<h1>' . __( 'Cheatin’ 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>', 75 75 403 76 76 ); … … 112 112 wp_die( 113 113 '<h1>' . __( 'Cheatin’ 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>', 115 115 403 116 116 ); … … 129 129 wp_die( 130 130 '<h1>' . __( 'Cheatin’ 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>', 132 132 403 133 133 ); … … 172 172 wp_die( 173 173 '<h1>' . __( 'Cheatin’ 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>', 175 175 403 176 176 ); … … 298 298 wp_die( 299 299 '<h1>' . __( 'Cheatin’ uh?' ) . '</h1>' . 300 '<p>' . __( ' You are not allowed to edit this item.' ) . '</p>',300 '<p>' . __( 'Sorry, you are not allowed to edit this item.' ) . '</p>', 301 301 403 302 302 ); -
trunk/src/wp-admin/edit.php
r37890 r37914 14 14 15 15 if ( ! 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.' ) ); 17 17 } 18 18 … … 38 38 wp_die( 39 39 '<h1>' . __( 'Cheatin’ 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>', 41 41 403 42 42 ); … … 104 104 foreach ( (array) $post_ids as $post_id ) { 105 105 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.') ); 107 107 108 108 if ( wp_check_post_lock( $post_id ) ) { … … 123 123 foreach ( (array) $post_ids as $post_id ) { 124 124 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.') ); 126 126 127 127 if ( !wp_untrash_post($post_id) ) … … 138 138 139 139 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.') ); 141 141 142 142 if ( $post_del->post_type == 'attachment' ) { -
trunk/src/wp-admin/export.php
r37488 r37914 11 11 12 12 if ( !current_user_can('export') ) 13 wp_die(__(' You do not have sufficient permissionsto export the content of this site.'));13 wp_die(__('Sorry, you are not allowed to export the content of this site.')); 14 14 15 15 /** Load WordPress export API */ -
trunk/src/wp-admin/import.php
r37714 r37914 13 13 14 14 if ( !current_user_can('import') ) 15 wp_die(__(' You do not have sufficient permissionsto import content in this site.'));15 wp_die(__('Sorry, you are not allowed to import content in this site.')); 16 16 17 17 $title = __('Import'); -
trunk/src/wp-admin/includes/ajax-actions.php
r37913 r37914 1623 1623 if ( 'page' == $_POST['post_type'] ) { 1624 1624 if ( ! current_user_can( 'edit_page', $post_ID ) ) 1625 wp_die( __( ' You are not allowed to edit this page.' ) );1625 wp_die( __( 'Sorry, you are not allowed to edit this page.' ) ); 1626 1626 } else { 1627 1627 if ( ! current_user_can( 'edit_post', $post_ID ) ) 1628 wp_die( __( ' You are not allowed to edit this post.' ) );1628 wp_die( __( 'Sorry, you are not allowed to edit this post.' ) ); 1629 1629 } 1630 1630 … … 2021 2021 'success' => false, 2022 2022 'data' => array( 2023 'message' => __( ' You do not have permissionto upload files.' ),2023 'message' => __( 'Sorry, you are not allowed to upload files.' ), 2024 2024 'filename' => $_FILES['async-upload']['name'], 2025 2025 ) … … 3303 3303 3304 3304 if ( ! current_user_can( 'install_themes' ) ) { 3305 $status['errorMessage'] = __( ' You do not have sufficient permissionsto install themes on this site.' );3305 $status['errorMessage'] = __( 'Sorry, you are not allowed to install themes on this site.' ); 3306 3306 wp_send_json_error( $status ); 3307 3307 } … … 3399 3399 3400 3400 if ( ! current_user_can( 'update_themes' ) ) { 3401 $status['errorMessage'] = __( ' You do not have sufficient permissionsto update themes on this site.' );3401 $status['errorMessage'] = __( 'Sorry, you are not allowed to update themes on this site.' ); 3402 3402 wp_send_json_error( $status ); 3403 3403 } … … 3477 3477 3478 3478 if ( ! current_user_can( 'delete_themes' ) ) { 3479 $status['errorMessage'] = __( ' You do not have sufficient permissionsto delete themes on this site.' );3479 $status['errorMessage'] = __( 'Sorry, you are not allowed to delete themes on this site.' ); 3480 3480 wp_send_json_error( $status ); 3481 3481 } … … 3541 3541 3542 3542 if ( ! current_user_can( 'install_plugins' ) ) { 3543 $status['errorMessage'] = __( ' You do not have sufficient permissionsto install plugins on this site.' );3543 $status['errorMessage'] = __( 'Sorry, you are not allowed to install plugins on this site.' ); 3544 3544 wp_send_json_error( $status ); 3545 3545 } … … 3639 3639 3640 3640 if ( ! current_user_can( 'update_plugins' ) ) { 3641 $status['errorMessage'] = __( ' You do not have sufficient permissionsto update plugins for this site.' );3641 $status['errorMessage'] = __( 'Sorry, you are not allowed to update plugins for this site.' ); 3642 3642 wp_send_json_error( $status ); 3643 3643 } … … 3728 3728 3729 3729 if ( ! current_user_can( 'delete_plugins' ) ) { 3730 $status['errorMessage'] = __( ' You do not have sufficient permissionsto delete plugins for this site.' );3730 $status['errorMessage'] = __( 'Sorry, you are not allowed to delete plugins for this site.' ); 3731 3731 wp_send_json_error( $status ); 3732 3732 } … … 3788 3788 3789 3789 if ( ! $wp_list_table->ajax_user_can() ) { 3790 $status['errorMessage'] = __( ' You do not have sufficient permissions to manage plugins onthis site.' );3790 $status['errorMessage'] = __( 'Sorry, you are not allowed to manage plugins for this site.' ); 3791 3791 wp_send_json_error( $status ); 3792 3792 } … … 3828 3828 3829 3829 if ( ! $wp_list_table->ajax_user_can() ) { 3830 $status['errorMessage'] = __( ' You do not have sufficient permissionsto manage plugins on this site.' );3830 $status['errorMessage'] = __( 'Sorry, you are not allowed to manage plugins on this site.' ); 3831 3831 wp_send_json_error( $status ); 3832 3832 } -
trunk/src/wp-admin/includes/bookmark.php
r37353 r37914 30 30 wp_die( 31 31 '<h1>' . __( 'Cheatin’ uh?' ) . '</h1>' . 32 '<p>' . __( ' You do not have sufficient permissionsto edit the links for this site.' ) . '</p>',32 '<p>' . __( 'Sorry, you are not allowed to edit the links for this site.' ) . '</p>', 33 33 403 34 34 ); … … 313 313 } 314 314 315 wp_die( __( ' You do not have sufficient permissionsto edit the links for this site.' ) );316 } 315 wp_die( __( 'Sorry, you are not allowed to edit the links for this site.' ) ); 316 } -
trunk/src/wp-admin/includes/comment.php
r37488 r37914 47 47 function edit_comment() { 48 48 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.' ) ); 50 50 51 51 if ( isset( $_POST['newcomment_author'] ) ) -
trunk/src/wp-admin/includes/media.php
r37880 r37914 3122 3122 3123 3123 if ( ! current_user_can( 'edit_post', $parent_id ) ) { 3124 wp_die( __( ' You are not allowed to edit this post.' ) );3124 wp_die( __( 'Sorry, you are not allowed to edit this post.' ) ); 3125 3125 } 3126 3126 $ids = array(); -
trunk/src/wp-admin/includes/menu.php
r37488 r37914 340 340 do_action( 'admin_page_access_denied' ); 341 341 342 wp_die( __( ' You do not have sufficient permissionsto access this page.' ), 403 );342 wp_die( __( 'Sorry, you are not allowed to access this page.' ), 403 ); 343 343 } 344 344 -
trunk/src/wp-admin/includes/post.php
r37801 r37914 31 31 if ( $update && ! current_user_can( 'edit_post', $post_data['ID'] ) ) { 32 32 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.' ) ); 34 34 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.' ) ); 36 36 } elseif ( ! $update && ! current_user_can( $ptype->cap->create_posts ) ) { 37 37 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.' ) ); 39 39 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.' ) ); 41 41 } 42 42 … … 69 69 if ( $update ) { 70 70 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.' ) ); 72 72 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.' ) ); 74 74 } else { 75 75 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.' ) ); 77 77 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.' ) ); 79 79 } 80 80 } … … 211 211 if ( !current_user_can( 'edit_post', $post_ID ) ) { 212 212 if ( 'page' == $post_data['post_type'] ) 213 wp_die( __(' You are not allowed to edit this page.' ));213 wp_die( __('Sorry, you are not allowed to edit this page.' )); 214 214 else 215 wp_die( __(' You are not allowed to edit this post.' ));215 wp_die( __('Sorry, you are not allowed to edit this post.' )); 216 216 } 217 217 … … 429 429 if ( !current_user_can( $ptype->cap->edit_posts ) ) { 430 430 if ( 'page' == $ptype->name ) 431 wp_die( __(' You are not allowed to edit pages.'));431 wp_die( __('Sorry, you are not allowed to edit pages.')); 432 432 else 433 wp_die( __(' You are not allowed to edit posts.'));433 wp_die( __('Sorry, you are not allowed to edit posts.')); 434 434 } 435 435 … … 722 722 if ( !current_user_can( $ptype->cap->edit_posts ) ) { 723 723 if ( 'page' == $ptype->name ) 724 return new WP_Error( 'edit_pages', __( ' You are not allowed to create pages on this site.' ) );724 return new WP_Error( 'edit_pages', __( 'Sorry, you are not allowed to create pages on this site.' ) ); 725 725 else 726 return new WP_Error( 'edit_posts', __( ' You are not allowed to create posts or drafts on this site.' ) );726 return new WP_Error( 'edit_posts', __( 'Sorry, you are not allowed to create posts or drafts on this site.' ) ); 727 727 } 728 728 … … 1725 1725 1726 1726 if ( ! $post = get_post( $post_ID ) ) { 1727 wp_die( __( ' You are not allowed to edit this post.' ) );1727 wp_die( __( 'Sorry, you are not allowed to edit this post.' ) ); 1728 1728 } 1729 1729 1730 1730 if ( ! current_user_can( 'edit_post', $post->ID ) ) { 1731 wp_die( __( ' You are not allowed to edit this post.' ) );1731 wp_die( __( 'Sorry, you are not allowed to edit this post.' ) ); 1732 1732 } 1733 1733 … … 1787 1787 1788 1788 if ( ! current_user_can( 'edit_post', $post->ID ) ) { 1789 return new WP_Error( 'edit_posts', __( ' You are not allowed to edit this item.' ) );1789 return new WP_Error( 'edit_posts', __( 'Sorry, you are not allowed to edit this item.' ) ); 1790 1790 } 1791 1791 -
trunk/src/wp-admin/link-add.php
r25616 r37914 11 11 12 12 if ( ! current_user_can('manage_links') ) 13 wp_die(__(' You do not have sufficient permissionsto add links to this site.'));13 wp_die(__('Sorry, you are not allowed to add links to this site.')); 14 14 15 15 $title = __('Add New Link'); -
trunk/src/wp-admin/link-manager.php
r36302 r37914 10 10 require_once( dirname( __FILE__ ) . '/admin.php' ); 11 11 if ( ! current_user_can( 'manage_links' ) ) 12 wp_die( __( ' You do not have sufficient permissionsto edit the links for this site.' ) );12 wp_die( __( 'Sorry, you are not allowed to edit the links for this site.' ) ); 13 13 14 14 $wp_list_table = _get_list_table('WP_Links_List_Table'); … … 69 69 70 70 if ( ! current_user_can('manage_links') ) 71 wp_die(__( "You do not have sufficient permissions to edit the links for this site."));71 wp_die(__('Sorry, you are not allowed to edit the links for this site.')); 72 72 73 73 ?> -
trunk/src/wp-admin/media-new.php
r34002 r37914 14 14 15 15 if (!current_user_can('upload_files')) 16 wp_die(__(' You do not have permissionto upload files.'));16 wp_die(__('Sorry, you are not allowed to upload files.')); 17 17 18 18 wp_enqueue_script('plupload-handlers'); -
trunk/src/wp-admin/media-upload.php
r37488 r37914 17 17 18 18 if ( ! current_user_can( 'upload_files' ) ) { 19 wp_die( __( ' You do not have permissionto upload files.' ), 403 );19 wp_die( __( 'Sorry, you are not allowed to upload files.' ), 403 ); 20 20 } 21 21 … … 44 44 wp_die( 45 45 '<h1>' . __( 'Cheatin’ 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>', 47 47 403 48 48 ); -
trunk/src/wp-admin/media.php
r36887 r37914 21 21 22 22 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.') ); 24 24 25 25 $errors = media_upload_form_handler(); … … 55 55 56 56 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.') ); 58 58 59 59 $att = get_post($att_id); -
trunk/src/wp-admin/ms-delete-site.php
r37488 r37914 14 14 15 15 if ( ! current_user_can( 'delete_site' ) ) 16 wp_die(__( ' You do not have sufficient permissionsto delete this site.'));16 wp_die(__( 'Sorry, you are not allowed to delete this site.')); 17 17 18 18 if ( isset( $_GET['h'] ) && $_GET['h'] != '' && get_option( 'delete_blog_hash' ) != false ) { -
trunk/src/wp-admin/my-sites.php
r37488 r37914 14 14 15 15 if ( ! current_user_can('read') ) 16 wp_die( __( ' You do not have sufficient permissionsto access this page.' ) );16 wp_die( __( 'Sorry, you are not allowed to access this page.' ) ); 17 17 18 18 $action = isset( $_POST['action'] ) ? $_POST['action'] : 'splash'; -
trunk/src/wp-admin/nav-menus.php
r37904 r37914 23 23 wp_die( 24 24 '<h1>' . __( 'Cheatin’ 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>', 26 26 403 27 27 ); -
trunk/src/wp-admin/network.php
r34292 r37914 17 17 18 18 if ( ! is_super_admin() ) { 19 wp_die( __( ' You do not have sufficient permissionsto manage options for this site.' ) );19 wp_die( __( 'Sorry, you are not allowed to manage options for this site.' ) ); 20 20 } 21 21 -
trunk/src/wp-admin/network/index.php
r32974 r37914 18 18 19 19 if ( ! current_user_can( 'manage_network' ) ) 20 wp_die( __( ' You do not have permissionto access this page.' ), 403 );20 wp_die( __( 'Sorry, you are not allowed to access this page.' ), 403 ); 21 21 22 22 $title = __( 'Dashboard' ); -
trunk/src/wp-admin/network/settings.php
r37888 r37914 18 18 19 19 if ( ! current_user_can( 'manage_network_options' ) ) 20 wp_die( __( ' You do not have permissionto access this page.' ), 403 );20 wp_die( __( 'Sorry, you are not allowed to access this page.' ), 403 ); 21 21 22 22 $title = __( 'Network Settings' ); -
trunk/src/wp-admin/network/site-info.php
r37466 r37914 16 16 17 17 if ( ! current_user_can( 'manage_sites' ) ) { 18 wp_die( __( ' You do not have sufficient permissionsto edit this site.' ) );18 wp_die( __( 'Sorry, you are not allowed to edit this site.' ) ); 19 19 } 20 20 … … 48 48 49 49 if ( ! can_edit_network( $details->site_id ) ) { 50 wp_die( __( ' You do not have permissionto access this page.' ), 403 );50 wp_die( __( 'Sorry, you are not allowed to access this page.' ), 403 ); 51 51 } 52 52 -
trunk/src/wp-admin/network/site-new.php
r36826 r37914 18 18 19 19 if ( ! current_user_can( 'manage_sites' ) ) 20 wp_die( __( ' You do not have sufficient permissionsto add sites to this network.' ) );20 wp_die( __( 'Sorry, you are not allowed to add sites to this network.' ) ); 21 21 22 22 get_current_screen()->add_help_tab( array( -
trunk/src/wp-admin/network/site-settings.php
r37466 r37914 15 15 16 16 if ( ! current_user_can( 'manage_sites' ) ) 17 wp_die( __( ' You do not have sufficient permissionsto edit this site.' ) );17 wp_die( __( 'Sorry, you are not allowed to edit this site.' ) ); 18 18 19 19 get_current_screen()->add_help_tab( array( … … 45 45 46 46 if ( !can_edit_network( $details->site_id ) ) 47 wp_die( __( ' You do not have permissionto access this page.' ), 403 );47 wp_die( __( 'Sorry, you are not allowed to access this page.' ), 403 ); 48 48 49 49 $is_main_site = is_main_site( $id ); -
trunk/src/wp-admin/network/site-themes.php
r37466 r37914 15 15 16 16 if ( ! current_user_can( 'manage_sites' ) ) 17 wp_die( __( ' You do not have sufficient permissionsto manage themes for this site.' ) );17 wp_die( __( 'Sorry, you are not allowed to manage themes for this site.' ) ); 18 18 19 19 get_current_screen()->add_help_tab( array( … … 68 68 69 69 if ( !can_edit_network( $details->site_id ) ) 70 wp_die( __( ' You do not have permissionto access this page.' ), 403 );70 wp_die( __( 'Sorry, you are not allowed to access this page.' ), 403 ); 71 71 72 72 $is_main_site = is_main_site( $id ); -
trunk/src/wp-admin/network/site-users.php
r37488 r37914 15 15 16 16 if ( ! current_user_can('manage_sites') ) 17 wp_die(__(' You do not have sufficient permissionsto edit this site.'));17 wp_die(__('Sorry, you are not allowed to edit this site.')); 18 18 19 19 $wp_list_table = _get_list_table('WP_Users_List_Table'); … … 61 61 62 62 if ( ! can_edit_network( $details->site_id ) ) 63 wp_die( __( ' You do not have permissionto access this page.' ), 403 );63 wp_die( __( 'Sorry, you are not allowed to access this page.' ), 403 ); 64 64 65 65 $is_main_site = is_main_site( $id ); -
trunk/src/wp-admin/network/sites.php
r37488 r37914 15 15 16 16 if ( ! current_user_can( 'manage_sites' ) ) 17 wp_die( __( ' You do not have permissionto access this page.' ), 403 );17 wp_die( __( 'Sorry, you are not allowed to access this page.' ), 403 ); 18 18 19 19 $wp_list_table = _get_list_table( 'WP_MS_Sites_List_Table' ); … … 92 92 93 93 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.' ) ); 95 95 } 96 96 … … 127 127 case 'deleteblog': 128 128 if ( ! current_user_can( 'delete_sites' ) ) 129 wp_die( __( ' You do not have permissionto access this page.' ), '', array( 'response' => 403 ) );129 wp_die( __( 'Sorry, you are not allowed to access this page.' ), '', array( 'response' => 403 ) ); 130 130 131 131 $updated_action = 'not_deleted'; … … 145 145 case 'delete': 146 146 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.' ) ); 148 148 149 149 $updated_action = 'all_delete'; … … 158 158 } 159 159 } 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.' ) ); 161 161 } 162 162 } … … 238 238 break; 239 239 case 'not_deleted': 240 $msg = __( ' You do not have permissionto delete that site.' );240 $msg = __( 'Sorry, you are not allowed to delete that site.' ); 241 241 break; 242 242 case 'archiveblog': -
trunk/src/wp-admin/network/themes.php
r37714 r37914 15 15 16 16 if ( !current_user_can('manage_network_themes') ) 17 wp_die( __( ' You do not have sufficient permissionsto manage network themes.' ) );17 wp_die( __( 'Sorry, you are not allowed to manage network themes.' ) ); 18 18 19 19 $wp_list_table = _get_list_table('WP_MS_Themes_List_Table'); … … 91 91 case 'delete-selected': 92 92 if ( ! current_user_can( 'delete_themes' ) ) { 93 wp_die( __(' You do not have sufficient permissionsto delete themes for this site.') );93 wp_die( __('Sorry, you are not allowed to delete themes for this site.') ); 94 94 } 95 95 -
trunk/src/wp-admin/network/upgrade.php
r37695 r37914 37 37 38 38 if ( ! current_user_can( 'manage_network' ) ) 39 wp_die( __( ' You do not have permissionto access this page.' ), 403 );39 wp_die( __( 'Sorry, you are not allowed to access this page.' ), 403 ); 40 40 41 41 echo '<div class="wrap">'; -
trunk/src/wp-admin/network/user-new.php
r36697 r37914 15 15 16 16 if ( ! current_user_can('create_users') ) 17 wp_die(__(' You do not have sufficient permissionsto add users to this network.'));17 wp_die(__('Sorry, you are not allowed to add users to this network.')); 18 18 19 19 get_current_screen()->add_help_tab( array( … … 35 35 36 36 if ( ! current_user_can( 'manage_network_users' ) ) 37 wp_die( __( ' You do not have permissionto access this page.' ), 403 );37 wp_die( __( 'Sorry, you are not allowed to access this page.' ), 403 ); 38 38 39 39 if ( ! is_array( $_POST['user'] ) ) -
trunk/src/wp-admin/network/users.php
r37680 r37914 15 15 16 16 if ( ! current_user_can( 'manage_network_users' ) ) 17 wp_die( __( ' You do not have permissionto access this page.' ), 403 );17 wp_die( __( 'Sorry, you are not allowed to access this page.' ), 403 ); 18 18 19 19 if ( isset( $_GET['action'] ) ) { … … 24 24 case 'deleteuser': 25 25 if ( ! current_user_can( 'manage_network_users' ) ) 26 wp_die( __( ' You do not have permissionto access this page.' ), 403 );26 wp_die( __( 'Sorry, you are not allowed to access this page.' ), 403 ); 27 27 28 28 check_admin_referer( 'deleteuser' ); … … 45 45 case 'allusers': 46 46 if ( !current_user_can( 'manage_network_users' ) ) 47 wp_die( __( ' You do not have permissionto access this page.' ), 403 );47 wp_die( __( 'Sorry, you are not allowed to access this page.' ), 403 ); 48 48 49 49 if ( ( isset( $_POST['action']) || isset($_POST['action2'] ) ) && isset( $_POST['allusers'] ) ) { … … 58 58 case 'delete': 59 59 if ( ! current_user_can( 'delete_users' ) ) 60 wp_die( __( ' You do not have permissionto access this page.' ), 403 );60 wp_die( __( 'Sorry, you are not allowed to access this page.' ), 403 ); 61 61 $title = __( 'Users' ); 62 62 $parent_file = 'users.php'; … … 107 107 check_admin_referer( 'ms-users-delete' ); 108 108 if ( ! ( current_user_can( 'manage_network_users' ) && current_user_can( 'delete_users' ) ) ) 109 wp_die( __( ' You do not have permissionto access this page.' ), 403 );109 wp_die( __( 'Sorry, you are not allowed to access this page.' ), 403 ); 110 110 111 111 if ( ! empty( $_POST['blog'] ) && is_array( $_POST['blog'] ) ) { -
trunk/src/wp-admin/options-discussion.php
r37674 r37914 10 10 11 11 if ( ! current_user_can( 'manage_options' ) ) 12 wp_die( __( ' You do not have sufficient permissionsto manage options for this site.' ) );12 wp_die( __( 'Sorry, you are not allowed to manage options for this site.' ) ); 13 13 14 14 $title = __('Discussion Settings'); -
trunk/src/wp-admin/options-general.php
r37674 r37914 14 14 15 15 if ( ! current_user_can( 'manage_options' ) ) 16 wp_die( __( ' You do not have sufficient permissionsto manage options for this site.' ) );16 wp_die( __( 'Sorry, you are not allowed to manage options for this site.' ) ); 17 17 18 18 $title = __('General Settings'); -
trunk/src/wp-admin/options-media.php
r35550 r37914 11 11 12 12 if ( ! current_user_can( 'manage_options' ) ) 13 wp_die( __( ' You do not have sufficient permissionsto manage options for this site.' ) );13 wp_die( __( 'Sorry, you are not allowed to manage options for this site.' ) ); 14 14 15 15 $title = __('Media Settings'); -
trunk/src/wp-admin/options-permalink.php
r37747 r37914 11 11 12 12 if ( ! current_user_can( 'manage_options' ) ) 13 wp_die( __( ' You do not have sufficient permissionsto manage options for this site.' ) );13 wp_die( __( 'Sorry, you are not allowed to manage options for this site.' ) ); 14 14 15 15 $title = __('Permalink Settings'); -
trunk/src/wp-admin/options-reading.php
r34022 r37914 11 11 12 12 if ( ! current_user_can( 'manage_options' ) ) 13 wp_die( __( ' You do not have sufficient permissionsto manage options for this site.' ) );13 wp_die( __( 'Sorry, you are not allowed to manage options for this site.' ) ); 14 14 15 15 $title = __( 'Reading Settings' ); -
trunk/src/wp-admin/options-writing.php
r37488 r37914 11 11 12 12 if ( ! current_user_can( 'manage_options' ) ) 13 wp_die( __( ' You do not have sufficient permissionsto manage options for this site.' ) );13 wp_die( __( 'Sorry, you are not allowed to manage options for this site.' ) ); 14 14 15 15 $title = __('Writing Settings'); -
trunk/src/wp-admin/options.php
r37488 r37914 48 48 wp_die( 49 49 '<h1>' . __( 'Cheatin’ 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>', 51 51 403 52 52 ); … … 77 77 wp_die( 78 78 '<h1>' . __( 'Cheatin’ 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>', 80 80 403 81 81 ); … … 161 161 if ( 'options' == $option_page ) { 162 162 if ( is_multisite() && ! is_super_admin() ) 163 wp_die( __( ' You do not have sufficient permissionsto modify unregistered settings for this site.' ) );163 wp_die( __( 'Sorry, you are not allowed to modify unregistered settings for this site.' ) ); 164 164 $options = explode( ',', wp_unslash( $_POST[ 'page_options' ] ) ); 165 165 } else { -
trunk/src/wp-admin/plugin-editor.php
r37680 r37914 16 16 17 17 if ( !current_user_can('edit_plugins') ) 18 wp_die( __(' You do not have sufficient permissionsto edit plugins for this site.') );18 wp_die( __('Sorry, you are not allowed to edit plugins for this site.') ); 19 19 20 20 $title = __("Edit Plugins"); -
trunk/src/wp-admin/plugin-install.php
r37714 r37914 16 16 17 17 if ( ! current_user_can('install_plugins') ) 18 wp_die(__(' You do not have sufficient permissionsto install plugins on this site.'));18 wp_die(__('Sorry, you are not allowed to install plugins on this site.')); 19 19 20 20 if ( is_multisite() && ! is_network_admin() ) { -
trunk/src/wp-admin/plugins.php
r37714 r37914 11 11 12 12 if ( ! current_user_can('activate_plugins') ) 13 wp_die( __( ' You do not have sufficient permissionsto manage plugins for this site.' ) );13 wp_die( __( 'Sorry, you are not allowed to manage plugins for this site.' ) ); 14 14 15 15 $wp_list_table = _get_list_table('WP_Plugins_List_Table'); … … 31 31 case 'activate': 32 32 if ( ! current_user_can('activate_plugins') ) 33 wp_die(__(' You do not have sufficient permissionsto activate plugins for this site.'));33 wp_die(__('Sorry, you are not allowed to activate plugins for this site.')); 34 34 35 35 if ( is_multisite() && ! is_network_admin() && is_network_only_plugin( $plugin ) ) { … … 70 70 case 'activate-selected': 71 71 if ( ! current_user_can('activate_plugins') ) 72 wp_die(__(' You do not have sufficient permissionsto activate plugins for this site.'));72 wp_die(__('Sorry, you are not allowed to activate plugins for this site.')); 73 73 74 74 check_admin_referer('bulk-plugins'); … … 148 148 case 'error_scrape': 149 149 if ( ! current_user_can('activate_plugins') ) 150 wp_die(__(' You do not have sufficient permissionsto activate plugins for this site.'));150 wp_die(__('Sorry, you are not allowed to activate plugins for this site.')); 151 151 152 152 check_admin_referer('plugin-activation-error_' . $plugin); … … 169 169 case 'deactivate': 170 170 if ( ! current_user_can('activate_plugins') ) 171 wp_die(__(' You do not have sufficient permissionsto deactivate plugins for this site.'));171 wp_die(__('Sorry, you are not allowed to deactivate plugins for this site.')); 172 172 173 173 check_admin_referer('deactivate-plugin_' . $plugin); … … 194 194 case 'deactivate-selected': 195 195 if ( ! current_user_can('activate_plugins') ) 196 wp_die(__(' You do not have sufficient permissionsto deactivate plugins for this site.'));196 wp_die(__('Sorry, you are not allowed to deactivate plugins for this site.')); 197 197 198 198 check_admin_referer('bulk-plugins'); … … 229 229 case 'delete-selected': 230 230 if ( ! current_user_can('delete_plugins') ) { 231 wp_die(__(' You do not have sufficient permissionsto delete plugins for this site.'));231 wp_die(__('Sorry, you are not allowed to delete plugins for this site.')); 232 232 } 233 233 -
trunk/src/wp-admin/post-new.php
r33864 r37914 58 58 wp_die( 59 59 '<h1>' . __( 'Cheatin’ 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>', 61 61 403 62 62 ); -
trunk/src/wp-admin/post.php
r37424 r37914 111 111 112 112 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.' ) ); 114 114 } 115 115 116 116 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.' ) ); 118 118 119 119 if ( 'trash' == $post->post_status ) … … 212 212 213 213 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.' ) ); 215 215 216 216 if ( $user_id = wp_check_post_lock( $post_id ) ) { … … 235 235 236 236 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.' ) ); 238 238 239 239 if ( ! wp_untrash_post( $post_id ) ) … … 253 253 254 254 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.' ) ); 256 256 257 257 if ( $post->post_type == 'attachment' ) { -
trunk/src/wp-admin/press-this.php
r33865 r37914 15 15 wp_die( 16 16 '<h1>' . __( 'Cheatin’ 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>', 18 18 403 19 19 ); -
trunk/src/wp-admin/term.php
r36969 r37914 36 36 wp_die( 37 37 '<h1>' . __( 'Cheatin’ 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>', 39 39 403 40 40 ); -
trunk/src/wp-admin/theme-editor.php
r37680 r37914 16 16 17 17 if ( !current_user_can('edit_themes') ) 18 wp_die('<p>'.__(' You do not have sufficient permissionsto edit templates for this site.').'</p>');18 wp_die('<p>'.__('Sorry, you are not allowed to edit templates for this site.').'</p>'); 19 19 20 20 $title = __("Edit Themes"); -
trunk/src/wp-admin/theme-install.php
r37742 r37914 14 14 15 15 if ( ! current_user_can('install_themes') ) 16 wp_die( __( ' You do not have sufficient permissionsto install themes on this site.' ) );16 wp_die( __( 'Sorry, you are not allowed to install themes on this site.' ) ); 17 17 18 18 if ( is_multisite() && ! is_network_admin() ) { -
trunk/src/wp-admin/themes.php
r37714 r37914 13 13 wp_die( 14 14 '<h1>' . __( 'Cheatin’ 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>', 16 16 403 17 17 ); … … 41 41 wp_die( 42 42 '<h1>' . __( 'Cheatin’ 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>', 44 44 403 45 45 ); -
trunk/src/wp-admin/update-core.php
r37162 r37914 21 21 22 22 if ( ! current_user_can( 'update_core' ) && ! current_user_can( 'update_themes' ) && ! current_user_can( 'update_plugins' ) ) 23 wp_die( __( ' You do not have sufficient permissionsto update this site.' ) );23 wp_die( __( 'Sorry, you are not allowed to update this site.' ) ); 24 24 25 25 /** … … 624 624 625 625 if ( ! current_user_can( 'update_core' ) ) 626 wp_die( __( ' You do not have sufficient permissionsto update this site.' ) );626 wp_die( __( 'Sorry, you are not allowed to update this site.' ) ); 627 627 628 628 check_admin_referer('upgrade-core'); … … 648 648 649 649 if ( ! current_user_can( 'update_plugins' ) ) 650 wp_die( __( ' You do not have sufficient permissionsto update this site.' ) );650 wp_die( __( 'Sorry, you are not allowed to update this site.' ) ); 651 651 652 652 check_admin_referer('upgrade-core'); … … 676 676 677 677 if ( ! current_user_can( 'update_themes' ) ) 678 wp_die( __( ' You do not have sufficient permissionsto update this site.' ) );678 wp_die( __( 'Sorry, you are not allowed to update this site.' ) ); 679 679 680 680 check_admin_referer('upgrade-core'); … … 706 706 707 707 if ( ! current_user_can( 'update_core' ) && ! current_user_can( 'update_plugins' ) && ! current_user_can( 'update_themes' ) ) 708 wp_die( __( ' You do not have sufficient permissionsto update this site.' ) );708 wp_die( __( 'Sorry, you are not allowed to update this site.' ) ); 709 709 710 710 check_admin_referer( 'upgrade-translations' ); -
trunk/src/wp-admin/update.php
r34598 r37914 22 22 if ( 'update-selected' == $action ) { 23 23 if ( ! current_user_can( 'update_plugins' ) ) 24 wp_die( __( ' You do not have sufficient permissionsto update plugins for this site.' ) );24 wp_die( __( 'Sorry, you are not allowed to update plugins for this site.' ) ); 25 25 26 26 check_admin_referer( 'bulk-update-plugins' ); … … 48 48 } elseif ( 'upgrade-plugin' == $action ) { 49 49 if ( ! current_user_can('update_plugins') ) 50 wp_die(__(' You do not have sufficient permissionsto update plugins for this site.'));50 wp_die(__('Sorry, you are not allowed to update plugins for this site.')); 51 51 52 52 check_admin_referer('upgrade-plugin_' . $plugin); … … 69 69 } elseif ('activate-plugin' == $action ) { 70 70 if ( ! current_user_can('update_plugins') ) 71 wp_die(__(' You do not have sufficient permissionsto update plugins for this site.'));71 wp_die(__('Sorry, you are not allowed to update plugins for this site.')); 72 72 73 73 check_admin_referer('activate-plugin_' . $plugin); … … 94 94 95 95 if ( ! current_user_can('install_plugins') ) 96 wp_die( __( ' You do not have sufficient permissionsto install plugins on this site.' ) );96 wp_die( __( 'Sorry, you are not allowed to install plugins on this site.' ) ); 97 97 98 98 include_once( ABSPATH . 'wp-admin/includes/plugin-install.php' ); //for plugins_api.. … … 142 142 143 143 if ( ! current_user_can( 'upload_plugins' ) ) { 144 wp_die( __( ' You do not have sufficient permissionsto install plugins on this site.' ) );144 wp_die( __( 'Sorry, you are not allowed to install plugins on this site.' ) ); 145 145 } 146 146 … … 170 170 171 171 if ( ! current_user_can('update_themes') ) 172 wp_die(__(' You do not have sufficient permissionsto update themes for this site.'));172 wp_die(__('Sorry, you are not allowed to update themes for this site.')); 173 173 174 174 check_admin_referer('upgrade-theme_' . $theme); … … 191 191 } elseif ( 'update-selected-themes' == $action ) { 192 192 if ( ! current_user_can( 'update_themes' ) ) 193 wp_die( __( ' You do not have sufficient permissionsto update themes for this site.' ) );193 wp_die( __( 'Sorry, you are not allowed to update themes for this site.' ) ); 194 194 195 195 check_admin_referer( 'bulk-update-themes' ); … … 217 217 218 218 if ( ! current_user_can('install_themes') ) 219 wp_die( __( ' You do not have sufficient permissionsto install themes on this site.' ) );219 wp_die( __( 'Sorry, you are not allowed to install themes on this site.' ) ); 220 220 221 221 include_once( ABSPATH . 'wp-admin/includes/class-wp-upgrader.php' ); //for themes_api.. … … 247 247 248 248 if ( ! current_user_can( 'upload_themes' ) ) { 249 wp_die( __( ' You do not have sufficient permissionsto install themes on this site.' ) );249 wp_die( __( 'Sorry, you are not allowed to install themes on this site.' ) ); 250 250 } 251 251 -
trunk/src/wp-admin/upload.php
r36987 r37914 11 11 12 12 if ( !current_user_can('upload_files') ) 13 wp_die( __( ' You do not have permissionto upload files.' ) );13 wp_die( __( 'Sorry, you are not allowed to upload files.' ) ); 14 14 15 15 $mode = get_user_option( 'media_library_mode', get_current_user_id() ) ? get_user_option( 'media_library_mode', get_current_user_id() ) : 'grid'; … … 133 133 foreach ( (array) $post_ids as $post_id ) { 134 134 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.' ) ); 136 136 137 137 if ( !wp_trash_post( $post_id ) ) … … 145 145 foreach ( (array) $post_ids as $post_id ) { 146 146 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.' ) ); 148 148 149 149 if ( !wp_untrash_post( $post_id ) ) … … 157 157 foreach ( (array) $post_ids as $post_id_del ) { 158 158 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.' ) ); 160 160 161 161 if ( !wp_delete_attachment( $post_id_del ) ) -
trunk/src/wp-admin/user-edit.php
r37488 r37914 78 78 && ! apply_filters( 'enable_edit_any_user_configuration', true ) 79 79 ) { 80 wp_die( __( ' You do not have permissionto edit this user.' ) );80 wp_die( __( 'Sorry, you are not allowed to edit this user.' ) ); 81 81 } 82 82 … … 111 111 112 112 if ( !current_user_can('edit_user', $user_id) ) 113 wp_die(__(' You do not have permissionto edit this user.'));113 wp_die(__('Sorry, you are not allowed to edit this user.')); 114 114 115 115 if ( IS_PROFILE_PAGE ) { … … 164 164 165 165 if ( !current_user_can('edit_user', $user_id) ) 166 wp_die(__(' You do not have permissionto edit this user.'));166 wp_die(__('Sorry, you are not allowed to edit this user.')); 167 167 168 168 $sessions = WP_Session_Tokens::get_instance( $profileuser->ID ); -
trunk/src/wp-admin/user-new.php
r37488 r37914 14 14 wp_die( 15 15 '<h1>' . __( 'Cheatin’ uh?' ) . '</h1>' . 16 '<p>' . __( ' You do not have sufficient permissionsto add users to this network.' ) . '</p>',16 '<p>' . __( 'Sorry, you are not allowed to add users to this network.' ) . '</p>', 17 17 403 18 18 ); … … 21 21 wp_die( 22 22 '<h1>' . __( 'Cheatin’ uh?' ) . '</h1>' . 23 '<p>' . __( ' You are not allowed to create users.' ) . '</p>',23 '<p>' . __( 'Sorry, you are not allowed to create users.' ) . '</p>', 24 24 403 25 25 ); … … 54 54 wp_die( 55 55 '<h1>' . __( 'Cheatin’ uh?' ) . '</h1>' . 56 '<p>' . __( ' You do not have sufficient permissionsto add users to this network.' ) . '</p>',56 '<p>' . __( 'Sorry, you are not allowed to add users to this network.' ) . '</p>', 57 57 403 58 58 ); … … 108 108 wp_die( 109 109 '<h1>' . __( 'Cheatin’ uh?' ) . '</h1>' . 110 '<p>' . __( ' You are not allowed to create users.' ) . '</p>',110 '<p>' . __( 'Sorry, you are not allowed to create users.' ) . '</p>', 111 111 403 112 112 ); -
trunk/src/wp-admin/users.php
r37680 r37914 14 14 wp_die( 15 15 '<h1>' . __( 'Cheatin’ uh?' ) . '</h1>' . 16 '<p>' . __( ' You are not allowed to browse users.' ) . '</p>',16 '<p>' . __( 'Sorry, you are not allowed to browse users.' ) . '</p>', 17 17 403 18 18 ); -
trunk/src/wp-admin/widgets.php
r37904 r37914 16 16 wp_die( 17 17 '<h1>' . __( 'Cheatin’ 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>', 19 19 403 20 20 ); -
trunk/src/wp-includes/class-wp-customize-manager.php
r37700 r37914 388 388 389 389 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.' ) ); 391 391 } 392 392 … … 402 402 // switch_themes cap, bail. 403 403 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.' ) ); 405 405 } 406 406 -
trunk/src/wp-includes/class-wp-xmlrpc-server.php
r37890 r37914 1341 1341 if ( ! empty( $post_data['post_author'] ) && $post_data['post_author'] != $user->ID ) { 1342 1342 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.' ) ); 1344 1344 1345 1345 $author = get_userdata( $post_data['post_author'] ); … … 1635 1635 1636 1636 if ( ! current_user_can( 'delete_post', $post_id ) ) { 1637 return new IXR_Error( 401, __( 'Sorry, you do not have the rightto delete this post.' ) );1637 return new IXR_Error( 401, __( 'Sorry, you are not allowed to delete this post.' ) ); 1638 1638 } 1639 1639 … … 1793 1793 1794 1794 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.' )); 1796 1796 1797 1797 $query['post_type'] = $post_type->name; … … 1876 1876 1877 1877 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.' ) ); 1879 1879 1880 1880 $taxonomy = (array) $taxonomy; … … 1963 1963 1964 1964 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.' ) ); 1966 1966 1967 1967 $taxonomy = (array) $taxonomy; … … 2059 2059 2060 2060 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.' ) ); 2062 2062 2063 2063 $term = get_term( $term_id, $taxonomy->name ); … … 2130 2130 2131 2131 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.' ) ); 2133 2133 2134 2134 $term = get_term( $term_id , $taxonomy->name, ARRAY_A ); … … 2188 2188 2189 2189 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.' ) ); 2191 2191 2192 2192 $query = array(); … … 2283 2283 2284 2284 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.' ) ); 2286 2286 2287 2287 return $this->_prepare_taxonomy( $taxonomy, $fields ); … … 2471 2471 2472 2472 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.' ) ); 2474 2474 2475 2475 $query = array( 'fields' => 'all_with_meta' ); … … 2795 2795 // Make sure the user can delete pages. 2796 2796 if ( !current_user_can('delete_page', $page_id) ) 2797 return new IXR_Error( 401, __( 'Sorry, you do not have the rightto delete this page.' ) );2797 return new IXR_Error( 401, __( 'Sorry, you are not allowed to delete this page.' ) ); 2798 2798 2799 2799 // Attempt to delete the page. … … 2857 2857 // Make sure the user is allowed to edit pages. 2858 2858 if ( !current_user_can('edit_page', $page_id) ) 2859 return new IXR_Error( 401, __( 'Sorry, you do not have the rightto edit this page.' ) );2859 return new IXR_Error( 401, __( 'Sorry, you are not allowed to edit this page.' ) ); 2860 2860 2861 2861 // Mark this as content for a page. … … 3054 3054 // Make sure the user is allowed to add a category. 3055 3055 if ( !current_user_can('manage_categories') ) 3056 return new IXR_Error(401, __('Sorry, you do not have the rightto add a category.'));3056 return new IXR_Error(401, __('Sorry, you are not allowed to add a category.')); 3057 3057 3058 3058 // If no slug was provided make it empty so that … … 3129 3129 3130 3130 if ( !current_user_can('manage_categories') ) 3131 return new IXR_Error( 401, __( 'Sorry, you do not have the rightto delete a category.' ) );3131 return new IXR_Error( 401, __( 'Sorry, you are not allowed to delete a category.' ) ); 3132 3132 3133 3133 $status = wp_delete_term( $category_id, 'category' ); … … 3227 3227 3228 3228 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.' ) ); 3230 3230 } 3231 3231 … … 3359 3359 3360 3360 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.' ) ); 3362 3362 } 3363 3363 … … 3426 3426 3427 3427 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.' ) ); 3429 3429 } 3430 3430 … … 3630 3630 3631 3631 if ( ! current_user_can( 'publish_posts' ) ) { 3632 return new IXR_Error( 403, __( ' You are not allowed access to details about this site.' ) );3632 return new IXR_Error( 403, __( 'Sorry, you are not allowed access to details about this site.' ) ); 3633 3633 } 3634 3634 … … 3671 3671 3672 3672 if ( ! current_user_can( 'edit_post', $post_id ) ) { 3673 return new IXR_Error( 403, __( ' You are not allowed access to details of this post.' ) );3673 return new IXR_Error( 403, __( 'Sorry, you are not allowed access to details of this post.' ) ); 3674 3674 } 3675 3675 … … 3711 3711 3712 3712 if ( !current_user_can( 'edit_posts' ) ) 3713 return new IXR_Error( 403, __( ' You are not allowed access to details about this site.' ) );3713 return new IXR_Error( 403, __( 'Sorry, you are not allowed access to details about this site.' ) ); 3714 3714 3715 3715 /** This action is documented in wp-includes/class-wp-xmlrpc-server.php */ … … 3743 3743 3744 3744 if ( !current_user_can( 'edit_pages' ) ) 3745 return new IXR_Error( 403, __( ' You are not allowed access to details about this site.' ) );3745 return new IXR_Error( 403, __( 'Sorry, you are not allowed access to details about this site.' ) ); 3746 3746 3747 3747 /** This action is documented in wp-includes/class-wp-xmlrpc-server.php */ … … 3775 3775 3776 3776 if ( !current_user_can( 'edit_pages' ) ) 3777 return new IXR_Error( 403, __( ' You are not allowed access to details about this site.' ) );3777 return new IXR_Error( 403, __( 'Sorry, you are not allowed access to details about this site.' ) ); 3778 3778 3779 3779 $templates = get_page_templates(); … … 3869 3869 3870 3870 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.' ) ); 3872 3872 3873 3873 $option_names = array(); … … 3921 3921 3922 3922 if ( !current_user_can( 'upload_files' ) ) 3923 return new IXR_Error( 403, __( ' You do not have permissionto upload files.' ) );3923 return new IXR_Error( 403, __( 'Sorry, you are not allowed to upload files.' ) ); 3924 3924 3925 3925 /** This action is documented in wp-includes/class-wp-xmlrpc-server.php */ … … 3969 3969 3970 3970 if ( !current_user_can( 'upload_files' ) ) 3971 return new IXR_Error( 401, __( ' You do not have permissionto upload files.' ) );3971 return new IXR_Error( 401, __( 'Sorry, you are not allowed to upload files.' ) ); 3972 3972 3973 3973 /** This action is documented in wp-includes/class-wp-xmlrpc-server.php */ … … 4013 4013 4014 4014 if ( !current_user_can( 'edit_posts' ) ) 4015 return new IXR_Error( 403, __( ' You are not allowed access to details about this site.' ) );4015 return new IXR_Error( 403, __( 'Sorry, you are not allowed access to details about this site.' ) ); 4016 4016 4017 4017 /** This action is documented in wp-includes/class-wp-xmlrpc-server.php */ … … 4683 4683 4684 4684 if ( ! current_user_can( 'edit_post', $post_ID ) ) { 4685 return new IXR_Error(401, __('Sorry, you do not have the rightto edit this post.'));4685 return new IXR_Error(401, __('Sorry, you are not allowed to edit this post.')); 4686 4686 } 4687 4687 if ( 'publish' == $actual_post['post_status'] && ! current_user_can( 'publish_posts' ) ) { 4688 return new IXR_Error( 401, __( 'Sorry, you do not have the rightto publish this post.' ) );4688 return new IXR_Error( 401, __( 'Sorry, you are not allowed to publish this post.' ) ); 4689 4689 } 4690 4690 … … 4753 4753 4754 4754 if ( ! current_user_can( 'delete_post', $post_ID ) ) { 4755 return new IXR_Error( 401, __( 'Sorry, you do not have the rightto delete this post.' ) );4755 return new IXR_Error( 401, __( 'Sorry, you are not allowed to delete this post.' ) ); 4756 4756 } 4757 4757 … … 4906 4906 case "post": 4907 4907 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.' ) ); 4909 4909 break; 4910 4910 case "page": 4911 4911 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.' ) ); 4913 4913 break; 4914 4914 default: … … 5187 5187 5188 5188 if ( ! current_user_can( 'edit_post', $post_ID ) ) 5189 return new IXR_Error( 401, __( 'Sorry, you do not have the rightto edit this post.' ) );5189 return new IXR_Error( 401, __( 'Sorry, you are not allowed to edit this post.' ) ); 5190 5190 5191 5191 // Use wp.editPost to edit post types other than post and page. … … 5246 5246 case 'post': 5247 5247 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.' ) ); 5249 5249 } 5250 5250 break; 5251 5251 case 'page': 5252 5252 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.' ) ); 5254 5254 } 5255 5255 break; … … 5358 5358 if ( 'publish' == $post_status || 'private' == $post_status ) { 5359 5359 if ( 'page' == $post_type && ! current_user_can( 'publish_pages' ) ) { 5360 return new IXR_Error( 401, __( 'Sorry, you do not have the rightto publish this page.' ) );5360 return new IXR_Error( 401, __( 'Sorry, you are not allowed to publish this page.' ) ); 5361 5361 } elseif ( ! current_user_can( 'publish_posts' ) ) { 5362 return new IXR_Error( 401, __( 'Sorry, you do not have the rightto publish this post.' ) );5362 return new IXR_Error( 401, __( 'Sorry, you are not allowed to publish this post.' ) ); 5363 5363 } 5364 5364 } … … 5791 5791 5792 5792 if ( !current_user_can('upload_files') ) { 5793 $this->error = new IXR_Error( 401, __( ' You do not have permissionto upload files.' ) );5793 $this->error = new IXR_Error( 401, __( 'Sorry, you are not allowed to upload files.' ) ); 5794 5794 return $this->error; 5795 5795 } -
trunk/src/wp-includes/revision.php
r37854 r37914 546 546 547 547 if ( false === wp_verify_nonce( $_GET['preview_nonce'], 'post_preview_' . $id ) ) 548 wp_die( __(' You do not have permissionto preview drafts.') );548 wp_die( __('Sorry, you are not allowed to preview drafts.') ); 549 549 550 550 add_filter('the_preview', '_set_preview'); -
trunk/src/wp-includes/script-loader.php
r37908 r37914 125 125 $scripts->add( 'wp-ajax-response', "/wp-includes/js/wp-ajax-response$suffix.js", array('jquery'), false, 1 ); 126 126 did_action( 'init' ) && $scripts->localize( 'wp-ajax-response', 'wpAjax', array( 127 'noPerm' => __(' You do not have permissionto do that.'),127 'noPerm' => __('Sorry, you are not allowed to do that.'), 128 128 'broken' => __('An unidentified error has occurred.') 129 129 ) ); … … 446 446 'close' => __( 'Close' ), 447 447 'cheatin' => __( 'Cheatin’ uh?' ), 448 'notAllowed' => __( ' You are not allowed to customize this site.' ),448 'notAllowed' => __( 'Sorry, you are not allowed to customize this site.' ), 449 449 'previewIframeTitle' => __( 'Site Preview' ), 450 450 'loginIframeTitle' => __( 'Session expired' ), … … 486 486 $scripts->add( 'admin-tags', "/wp-admin/js/tags$suffix.js", array( 'jquery', 'wp-ajax-response' ), false, 1 ); 487 487 did_action( 'init' ) && $scripts->localize( 'admin-tags', 'tagsl10n', array( 488 'noPerm' => __(' You do not have permissionto do that.'),488 'noPerm' => __('Sorry, you are not allowed to do that.'), 489 489 'broken' => __('An unidentified error has occurred.') 490 490 )); -
trunk/tests/phpunit/tests/admin/includesPost.php
r36853 r37914 65 65 $this->assertInstanceOf( 'WP_Error', $_results ); 66 66 $this->assertEquals( 'edit_others_posts', $_results->get_error_code() ); 67 $this->assertEquals( ' You are not allowed to create posts as this user.', $_results->get_error_message() );67 $this->assertEquals( 'Sorry, you are not allowed to create posts as this user.', $_results->get_error_message() ); 68 68 69 69 // Edit Draft Post for another user … … 78 78 $this->assertInstanceOf( 'WP_Error', $_results ); 79 79 $this->assertEquals( 'edit_others_posts', $_results->get_error_code() ); 80 $this->assertEquals( ' You are not allowed to edit posts as this user.', $_results->get_error_message() );80 $this->assertEquals( 'Sorry, you are not allowed to edit posts as this user.', $_results->get_error_message() ); 81 81 } 82 82 -
trunk/tests/phpunit/tests/xmlrpc/wp/deleteTerm.php
r25002 r37914 44 44 $this->assertInstanceOf( 'IXR_Error', $result ); 45 45 $this->assertEquals( 401, $result->code ); 46 $this->assertEquals( __( ' You are not allowed to delete terms in this taxonomy.' ), $result->message );46 $this->assertEquals( __( 'Sorry, you are not allowed to delete terms in this taxonomy.' ), $result->message ); 47 47 } 48 48 -
trunk/tests/phpunit/tests/xmlrpc/wp/editComment.php
r36163 r37914 45 45 $this->assertInstanceOf( 'IXR_Error', $result ); 46 46 $this->assertEquals( 403, $result->code ); 47 $this->assertEquals( __( ' You are not allowed to moderate or edit this comment.' ), $result->message );47 $this->assertEquals( __( 'Sorry, you are not allowed to moderate or edit this comment.' ), $result->message ); 48 48 } 49 49 -
trunk/tests/phpunit/tests/xmlrpc/wp/editTerm.php
r34580 r37914 50 50 $this->assertInstanceOf( 'IXR_Error', $result ); 51 51 $this->assertEquals( 401, $result->code ); 52 $this->assertEquals( __( ' You are not allowed to edit terms in this taxonomy.' ), $result->message );52 $this->assertEquals( __( 'Sorry, you are not allowed to edit terms in this taxonomy.' ), $result->message ); 53 53 } 54 54 -
trunk/tests/phpunit/tests/xmlrpc/wp/getTaxonomy.php
r25002 r37914 36 36 $this->assertInstanceOf( 'IXR_Error', $result ); 37 37 $this->assertEquals( 401, $result->code ); 38 $this->assertEquals( __( ' You are not allowed to assign terms in this taxonomy.' ), $result->message );38 $this->assertEquals( __( 'Sorry, you are not allowed to assign terms in this taxonomy.' ), $result->message ); 39 39 } 40 40 -
trunk/tests/phpunit/tests/xmlrpc/wp/getTerm.php
r25002 r37914 44 44 $this->assertInstanceOf( 'IXR_Error', $result ); 45 45 $this->assertEquals( 401, $result->code ); 46 $this->assertEquals( __( ' You are not allowed to assign terms in this taxonomy.' ), $result->message );46 $this->assertEquals( __( 'Sorry, you are not allowed to assign terms in this taxonomy.' ), $result->message ); 47 47 } 48 48 -
trunk/tests/phpunit/tests/xmlrpc/wp/getTerms.php
r35242 r37914 36 36 $this->assertInstanceOf( 'IXR_Error', $result ); 37 37 $this->assertEquals( 401, $result->code ); 38 $this->assertEquals( __( ' You are not allowed to assign terms in this taxonomy.' ), $result->message );38 $this->assertEquals( __( 'Sorry, you are not allowed to assign terms in this taxonomy.' ), $result->message ); 39 39 } 40 40 -
trunk/tests/phpunit/tests/xmlrpc/wp/newTerm.php
r25002 r37914 45 45 $this->assertInstanceOf( 'IXR_Error', $result ); 46 46 $this->assertEquals( 401, $result->code ); 47 $this->assertEquals( __( ' You are not allowed to create terms in this taxonomy.' ), $result->message );47 $this->assertEquals( __( 'Sorry, you are not allowed to create terms in this taxonomy.' ), $result->message ); 48 48 } 49 49
Note: See TracChangeset
for help on using the changeset viewer.