plugin updates

This commit is contained in:
Tony Volpe
2024-07-18 20:40:50 +00:00
parent 1cbeccbe26
commit f13cad0e36
314 changed files with 45107 additions and 30963 deletions

View File

@@ -628,6 +628,10 @@ function acf_pro_deactivate_license( $silent = false ) {
);
$response = acf_updates()->request( 'v2/plugins/deactivate?p=pro', $post );
// Remove license key and status from DB.
acf_pro_update_license( '' );
acf_pro_remove_license_status();
// Check response is expected JSON array (not string).
if ( is_string( $response ) ) {
$response = new WP_Error( 'server_error', esc_html( $response ) );
@@ -641,10 +645,6 @@ function acf_pro_deactivate_license( $silent = false ) {
return $response;
}
// Remove license key and status from DB.
acf_pro_update_license( '' );
acf_pro_remove_license_status();
// Refresh plugins transient to fetch new update data.
acf_updates()->refresh_plugins_transient();