Security check in migration logic.
This commit is contained in:
parent
d8b021aacc
commit
bf5026a2e6
|
@ -516,7 +516,9 @@ class Migrations {
|
||||||
['meta_value' => 'TAINACAN_URL_Plugin_Metadata_Type'],
|
['meta_value' => 'TAINACAN_URL_Plugin_Metadata_Type'],
|
||||||
'%s', '%s'
|
'%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' );
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -47,13 +47,6 @@ import {
|
||||||
} from '../../../admin/js/utilities';
|
} from '../../../admin/js/utilities';
|
||||||
import mitt from 'mitt';
|
import mitt from 'mitt';
|
||||||
|
|
||||||
// import { configureCompat } from 'vue';
|
|
||||||
// configureCompat({
|
|
||||||
// COMPONENT_V_MODEL: false,
|
|
||||||
// ATTR_FALSE_VALUE: false,
|
|
||||||
// RENDER_FUNCTION: false
|
|
||||||
// })
|
|
||||||
|
|
||||||
const isParameterTrue = function(value) {
|
const isParameterTrue = function(value) {
|
||||||
return (value == true || value == 'true' || value == '1' || value == 1) ? true : false;
|
return (value == true || value == 'true' || value == '1' || value == 1) ? true : false;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue