settings = $settings; } /** * Split publisher logos into two options. * * @since 1.7.0 */ public function migrate(): void { $publisher_logo_id = 0; $publisher_logo_settings = (array) get_option( $this->settings::SETTING_NAME_PUBLISHER_LOGOS, [] ); if ( ! empty( $publisher_logo_settings['active'] ) ) { $publisher_logo_id = $publisher_logo_settings['active']; } $this->settings->update_setting( $this->settings::SETTING_NAME_ACTIVE_PUBLISHER_LOGO, $publisher_logo_id ); $this->settings->update_setting( $this->settings::SETTING_NAME_PUBLISHER_LOGOS, array_filter( [ $publisher_logo_id ] ) ); } }