Last active
February 3, 2016 02:54
-
-
Save aschweigert/c6fc7db56c2e777ff34a to your computer and use it in GitHub Desktop.
Revisions
-
aschweigert revised this gist
Feb 3, 2016 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,4 +1,4 @@ //least destructive, just update ones set to the old default UPDATE wp_43_postmeta SET meta_value = 'none' WHERE meta_key = 'custom_sidebar' AND meta_value = 'sidebar-single' -
aschweigert created this gist
Feb 3, 2016 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,12 @@ //safest, just update ones set to the old default UPDATE wp_43_postmeta SET meta_value = 'none' WHERE meta_key = 'custom_sidebar' AND meta_value = 'sidebar-single' //OR set them all to "none" UPDATE wp_43_postmeta SET meta_value = 'none' WHERE meta_key = 'custom_sidebar' //OR just delete them all DELETE FROM wp_43_postmeta WHERE meta_key = 'custom_sidebar'