<?php
 class WP2Static { public function loadSettings( $target_settings ) { $general_settings = array( 'general', ); $target_settings = array_merge( $general_settings, $target_settings ); if ( isset( $_POST['selected_deployment_option'] ) ) { require_once dirname( __FILE__ ) . '/PostSettings.php'; $this->settings = WPSHO_PostSettings::get( $target_settings ); } else { require_once dirname( __FILE__ ) . '/DBSettings.php'; $this->settings = WPSHO_DBSettings::get( $target_settings ); } } } 