fix: update migration functions

This commit is contained in:
Vinícius Nunes Medeiros 2024-02-20 17:08:02 -03:00 committed by GitHub
parent d261f5ab9b
commit bf5f695144
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 4 additions and 4 deletions

View File

@ -511,10 +511,10 @@ class Migrations {
static function update_plugin_url_metadata_type_slug_to_core() {
global $wpdb;
// Brings plugin metadata type url to core
$wpdb->query(
"UPDATE $wpdb->postmeta SET meta_value = 'Tainacan\\Metadata_Types\\URL'
WHERE meta_value='TAINACAN_URL_Plugin_Metadata_Type'
"
$wpdb->update($wpdb->postmeta,
['meta_value' => 'Tainacan\Metadata_Types\URL'],
['meta_value' => 'TAINACAN_URL_Plugin_Metadata_Type'],
'%s', '%s'
);
\deactivate_plugins( 'tainacan-url-metadata-type/tainacan-metadata-type-url.php' );
}