Security check in migration logic.

This commit is contained in:
mateuswetah 2024-03-04 15:52:31 -03:00
parent d8b021aacc
commit bf5026a2e6
2 changed files with 3 additions and 8 deletions

View File

@ -516,7 +516,9 @@ class Migrations {
['meta_value' => 'TAINACAN_URL_Plugin_Metadata_Type'],
'%s', '%s'
);
\deactivate_plugins( 'tainacan-url-metadata-type/tainacan-metadata-type-url.php' );
if ( function_exists('deactivate_plugins') )
\deactivate_plugins( 'tainacan-url-metadata-type/tainacan-metadata-type-url.php' );
}
}

View File

@ -47,13 +47,6 @@ import {
} from '../../../admin/js/utilities';
import mitt from 'mitt';
// import { configureCompat } from 'vue';
// configureCompat({
// COMPONENT_V_MODEL: false,
// ATTR_FALSE_VALUE: false,
// RENDER_FUNCTION: false
// })
const isParameterTrue = function(value) {
return (value == true || value == 'true' || value == '1' || value == 1) ? true : false;
}