You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Dec 27, 2022. It is now read-only.
@@ -153,7 +165,7 @@ public function changeset_migrate( $limit = -1, $dry_run = false ) {
153
165
* @global \WP_Customize_Manager $wp_customize
154
166
*/
155
167
publicfunctionmigrate_post( $id ) {
156
-
global$wp_customize;
168
+
global$wp_customize, $wpdb;
157
169
158
170
$post = get_post( $id );
159
171
@@ -166,7 +178,7 @@ public function migrate_post( $id ) {
166
178
// Get manager instance.
167
179
$manager = new \WP_Customize_Manager();
168
180
$original_manager = $wp_customize;
169
-
$wp_customize = $manager; // Export to global since some filters (like widget_customizer_setting_args) lack as $wp_customize context and need global.
181
+
$wp_customize = $manager; // Export to global since some filters (like widget_customizer_setting_args) lack as $wp_customize context and need global. WPCS: override ok.
0 commit comments