Changeset 37914 for trunk/src/wp-admin/includes/ajax-actions.php
- Timestamp:
- 06/29/2016 03:15:40 PM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
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 }
Note: See TracChangeset
for help on using the changeset viewer.