plugin updates
This commit is contained in:
@@ -34,7 +34,7 @@ if ( ! class_exists( 'ACF_Ajax_Local_JSON_Diff' ) ) :
|
||||
public function get_response( $request ) {
|
||||
// Bail early if the current user can't access the ACF admin.
|
||||
if ( ! acf_current_user_can_admin() ) {
|
||||
return new WP_Error( 'acf_not_allowed', __( 'Sorry, you are not allowed to do that.', 'acf' ), array( 'status' => 403 ) );
|
||||
return new WP_Error( 'acf_not_allowed', __( 'Sorry, you do not have permission to do that.', 'acf' ), array( 'status' => 403 ) );
|
||||
}
|
||||
|
||||
$json = array();
|
||||
|
||||
@@ -21,7 +21,7 @@ if ( ! class_exists( 'ACF_Ajax_Upgrade' ) ) :
|
||||
*/
|
||||
public function get_response( $request ) {
|
||||
if ( ! current_user_can( acf_get_setting( 'capability' ) ) ) {
|
||||
return new WP_Error( 'upgrade_error', __( 'Sorry, you don\'t have permission to do that.', 'acf' ) );
|
||||
return new WP_Error( 'upgrade_error', __( 'Sorry, you do not have permission to do that.', 'acf' ) );
|
||||
}
|
||||
|
||||
// Switch blog.
|
||||
|
||||
Reference in New Issue
Block a user