PATH:
home
/
lab2454c
/
dansact.com
/
wp-content
/
plugins
/
mailchimp-for-wp
/
includes
/
admin
/
migrations
<?php defined( 'ABSPATH' ) or exit; $section_widgets = get_option( 'sidebars_widgets', array() ); $replaced = false; foreach ( $section_widgets as $section => $widgets ) { // WP has an "array_version" key that is not an array... if ( ! is_array( $widgets ) ) { continue; } // loop through widget ID's foreach ( $widgets as $key => $widget_id ) { // does this widget ID start with "mc4wp_widget"? if ( strpos( $widget_id, 'mc4wp_widget' ) === 0 ) { // replace "mc4wp_widget" with "mc4wp_form_widget" $new_widget_id = str_replace( 'mc4wp_widget', 'mc4wp_form_widget', $widget_id ); $section_widgets[ $section ][ $key ] = $new_widget_id; $replaced = true; } } } // update option if we made changes if ( $replaced ) { update_option( 'sidebars_widgets', $section_widgets ); } // update widget options $options = get_option( 'widget_mc4wp_widget', false ); if ( $options ) { update_option( 'widget_mc4wp_form_widget', $options ); // delete old option delete_option( 'widget_mc4wp_widget' ); }
[-] 3.0.0-form-3-messages.php
[edit]
[-] 4.1.3-reschedule-event.php
[edit]
[+]
..
[-] 3.0.0-integration-options.php
[edit]
[-] 4.0.0-hidden-fields-value-delimiter.php
[edit]
[-] 4.1.2-flush-list-cache.php
[edit]
[-] 3.0.0-general-options.php
[edit]
[-] 4.8.2-move-debug-log-to-subdirectory.php
[edit]
[-] 3.0.0-form-1-post-type.php
[edit]
[-] 3.1.6-woocommerce-position-prefix.php
[edit]
[-] 4.0.0-groupings-to-interests.php
[edit]
[-] 3.0.0-styles-builder.php
[edit]
[-] 3.0.3-usage-tracking-schedule.php
[edit]
[-] 3.0.0-widget-base-id.php
[edit]
[-] 3.0.0-form-2-options.php
[edit]
[-] 4.0.7-rename-debug-log-file.php
[edit]
[-] 4.6.0-remove-lists-from-options.php
[edit]