'', 'Description' => '', ); if ( is_network_admin() ) { $old_stored = get_site_option( 'astra_pro_sites_white_label', $defaults ); } else { $old_stored = get_option( 'astra_pro_sites_white_label', $defaults ); } // Set old values in new format. $old_stored_in_new_format = array( 'astra-sites' => array( 'name' => $old_stored['Name'], 'description' => $old_stored['Description'], ), ); $branding = Astra_Admin_Helper::get_admin_settings_option( '_astra_ext_white_label', true ); $branding = wp_parse_args( $old_stored_in_new_format, $branding ); Astra_Admin_Helper::update_admin_settings_option( '_astra_ext_white_label', $branding, true ); } } } /** * Kicking this off by calling 'set_instance()' method */ Astra_Pro_Sites_Update::set_instance(); endif;