OwlCyberSecurity - MANAGER
Edit File: bootstrap.php
<?php $currentpath = dirname(__FILE__).DIRECTORY_SEPARATOR; # # All relevant configuration information (args, sections, tabs) have been # moved to redux-* files located in the same section as this file. # # The setup function, ie. setup_framework_options has been renamed to # wpgrade_call_redux_options_setup since this is the only place it's used # and god knows "framework" is what everyone and their monther calls # anything they make these days. # # The use of the global has been removed in favor of using a proper Options # object at the theme level, which accepts more then just redux as a # source and may have multiple sources. This is both more flexible # and a cleaner implementation. # # The file has also been purged of code that had no effect, with the # exception of configuration file commented out entries, since those are # generally helpful. # wpgrade::require_coremodule('redux2'); function wpgrade_callback_redux_options_setup() { $currentpath = dirname(__FILE__).DIRECTORY_SEPARATOR; $wpgrade_redux_coremodule = 'redux2'; # used inside configuration files $args = include $currentpath.'redux-args'.EXT; $sections = include $currentpath.'redux-sections'.EXT; $tabs = include $currentpath.'redux-tabs'.EXT; $redux = new Redux_Options($sections, $args, $tabs); wpgrade::resolve('redux-instance', $redux); } add_action('after_setup_theme', 'wpgrade_callback_redux_options_setup', 0); // register callbacks require $currentpath.'callbacks'.EXT;