/** * load_core_configuration * * this is hooked into 'AHEE__EE_Bootstrap__load_core_configuration' * which runs during the WP 'plugins_loaded' action at priority 5 * * @return void */ public function load_core_configuration() { do_action('AHEE__EE_System__load_core_configuration__begin', $this); $this->registry->load_core('EE_Load_Textdomain'); //load textdomain EE_Load_Textdomain::load_textdomain(); // load and setup EE_Config and EE_Network_Config $this->registry->load_core('Config'); $this->registry->load_core('Network_Config'); // setup autoloaders // enable logging? if ($this->registry->CFG->admin->use_full_logging) { $this->registry->load_core('Log'); } // check for activation errors $activation_errors = get_option('ee_plugin_activation_errors', FALSE); if ($activation_errors) { EE_Error::add_error($activation_errors, __FILE__, __FUNCTION__, __LINE__); update_option('ee_plugin_activation_errors', FALSE); } // get model names $this->_parse_model_names(); //load caf stuff a chance to play during the activation process too. $this->_maybe_brew_regular(); do_action('AHEE__EE_System__load_core_configuration__complete', $this); }