'page', 'post_status' => 'draft', 'page_template' => '../public/views/revslider-page-template.php' ) ); if(is_wp_error($new_page_id)) $new_page_id = 0; //fallback to 0 $page_id++; update_option('rs_import_page_id', $page_id); } return apply_filters('revslider_create_slider_page', $new_page_id, $added); } /** * @since: 5.3.1 * get cache plugins **/ public function get_installed_cache_plugins(){ //get all plugins $plugins = get_plugins(); //arrays for found cache related plugins $known_cache_plugins = array(); $unknown_cache_plugins = array(); //run through all plugins foreach ($plugins as $plugin_key => $plugin_values) { switch($plugin_key){ //check if W3TC or WP Super Cache or WP Rocket //add to known plugins case "wp-rocket/wp-rocket.php": $known_cache_plugins[$plugin_values['Name']] = "https://www.themepunch.com/faq/updating-make-sure-clear-caches/#wprocket"; break; case "wp-super-cache/wp-cache.php": $known_cache_plugins[$plugin_values['Name']] = "https://www.themepunch.com/faq/updating-make-sure-clear-caches/#wpsc"; break; case "w3-total-cache/w3-total-cache.php": $known_cache_plugins[$plugin_values['Name']] = "https://www.themepunch.com/faq/updating-make-sure-clear-caches/#w3tc"; break; //check if cache in slug default: if(strpos($plugin_key,"cache")){ //add to unknown plugins $unknown_cache_plugins[$plugin_values['Name']] = $plugin_values['PluginURI']; } break; } } $all = array_merge($known_cache_plugins, $unknown_cache_plugins); return apply_filters('revslider_get_installed_cache_plugins', $all); } /** * @since: 5.3.1 * show failed import HTML **/ public static function import_failed_message($message, $link = false){ echo '
'; echo '
'; echo '
Error: '.$message.'
'; if($link !== false){ echo 'Go Back'; } echo '
'; echo '
'; } } /** * old classname extends new one (old classnames will be obsolete soon) * @since: 5.0 **/ class RevOperations extends RevSliderOperations {} ?> Calendrier – the-unit.ch