function op_remove_ngg_parse_content_filter() { global $wp_filter; if (DOING_AJAX && class_exists('C_NextGen_Shortcode_Manager') && 0 === strpos($_POST['action'], 'optimizepress')) { remove_filter('the_content', array(C_NextGen_Shortcode_Manager::get_instance(), 'parse_content'), PHP_INT_MAX - 1); } }
/** * Weaver II's 'weaver_show_posts' shortcode creates a new wp-query, causing a second round of 'the_content' * filters to apply. This checks for WeaverII and enables all NextGEN shortcodes that would otherwise be left * disabled by our shortcode manager. See https://core.trac.wordpress.org/ticket/17817 for more. * * @param $content * @return $content */ function check_weaverii($content) { if (function_exists('weaverii_show_posts_shortcode')) { C_NextGen_Shortcode_Manager::get_instance()->activate_all(); } return $content; }
function _load_non_pope() { // Load caching component include_once 'non_pope/class.photocrati_transient_manager.php'; if (isset($_REQUEST['ngg_flush']) or isset($_REQUEST['ngg_flush_expired'])) { C_Photocrati_Transient_Manager::flush(); die("Flushed all caches"); } // Load Settings Manager include_once 'non_pope/class.photocrati_settings_manager.php'; include_once 'non_pope/class.nextgen_settings.php'; C_Photocrati_Global_Settings_Manager::$option_name = $this->_settings_option_name; C_Photocrati_Settings_Manager::$option_name = $this->_settings_option_name; // Load the installer include_once 'non_pope/class.photocrati_installer.php'; // Load the resource manager include_once 'non_pope/class.photocrati_resource_manager.php'; C_Photocrati_Resource_Manager::init(); // Load the style manager include_once 'non_pope/class.nextgen_style_manager.php'; // Load the shortcode manager include_once 'non_pope/class.nextgen_shortcode_manager.php'; C_NextGen_Shortcode_Manager::get_instance(); }