plugin updates

This commit is contained in:
Tony Volpe
2024-08-07 16:35:46 +00:00
parent 8734babf54
commit 36dc023d6d
195 changed files with 11094 additions and 2509 deletions

View File

@@ -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();

View File

@@ -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.