Skip to content
Snippets Groups Projects
Commit a973bef3 authored by Erick Hitter's avatar Erick Hitter
Browse files

Add filter to disable `cleanup()` method

parent c35beef1
Branches
Tags
No related merge requests found
......@@ -78,10 +78,14 @@ class taxonomy_dropdown_widget_plugin {
/*
* Remove options related to plugin versions older than 2.0.
* @uses add_filter
* @uses delete_option
* @return null
*/
function cleanup() {
if ( ! add_filter( 'taxonomy_dropdown_widget_run_cleanup', true ) )
return;
$legacy_options = array(
'widget_TagDropdown',
'widget_TagDropdown_exclude',
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment