Changeset 45508 for branches/5.2/src/wp-admin/includes/ajax-actions.php
- Timestamp:
- 06/10/2019 07:49:27 AM (5 years ago)
- Location:
- branches/5.2
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/5.2
-
branches/5.2/src/wp-admin/includes/ajax-actions.php
r45239 r45508 4870 4870 check_ajax_referer( 'health-check-site-status' ); 4871 4871 4872 if ( ! current_user_can( ' install_plugins' ) ) {4872 if ( ! current_user_can( 'view_site_health_checks' ) ) { 4873 4873 wp_send_json_error(); 4874 4874 } … … 4890 4890 wp_verify_nonce( 'health-check-site-status' ); 4891 4891 4892 if ( ! current_user_can( ' install_plugins' ) ) {4892 if ( ! current_user_can( 'view_site_health_checks' ) ) { 4893 4893 wp_send_json_error(); 4894 4894 } … … 4910 4910 check_ajax_referer( 'health-check-site-status' ); 4911 4911 4912 if ( ! current_user_can( ' install_plugins' ) ) {4912 if ( ! current_user_can( 'view_site_health_checks' ) ) { 4913 4913 wp_send_json_error(); 4914 4914 } … … 4931 4931 check_ajax_referer( 'health-check-site-status' ); 4932 4932 4933 if ( ! current_user_can( ' install_plugins' ) ) {4933 if ( ! current_user_can( 'view_site_health_checks' ) ) { 4934 4934 wp_send_json_error(); 4935 4935 } … … 4951 4951 check_ajax_referer( 'health-check-site-status-result' ); 4952 4952 4953 if ( ! current_user_can( ' install_plugins' ) ) {4953 if ( ! current_user_can( 'view_site_health_checks' ) ) { 4954 4954 wp_send_json_error(); 4955 4955 } … … 4968 4968 check_ajax_referer( 'health-check-site-status-result' ); 4969 4969 4970 if ( ! current_user_can( ' install_plugins' ) || is_multisite() ) {4970 if ( ! current_user_can( 'view_site_health_checks' ) || is_multisite() ) { 4971 4971 wp_send_json_error(); 4972 4972 }
Note: See TracChangeset
for help on using the changeset viewer.