Server : Apache System : Linux pod-100823:apache2_74:v0.5.7 5.4.0-1138-gcp #147~18.04.1-Ubuntu SMP Mon Oct 7 21:46:26 UTC 2024 x86_64 User : www-data ( 33) PHP Version : 7.4.33.7 Disable Function : apache_child_terminate,apache_get_modules,apache_get_version,apache_getenv,apache_note,apache_setenv,disk_free_space,disk_total_space,diskfreespace,dl,exec,fastcgi_finish_request,link,opcache_compile_file,opcache_get_configuration,opcache_invalidate,opcache_is_script_cached,opcache_reset,passthru,pclose,pcntl_exec,popen,posix_getpid,posix_getppid,posix_getpwuid,posix_kill,posix_mkfifo,posix_setegid,posix_seteuid,posix_setgid,posix_setpgid,posix_setsid,posix_setuid,posix_uname,proc_close,proc_get_status,proc_nice,proc_open,proc_terminate,realpath_cache_get,shell_exec,show_source,symlink,system Directory : /nas/content/live/attorneyexperi/wp-content/plugins/wp-rocket/inc/Engine/Support/ |
<?php namespace WP_Rocket\Engine\Support; use WP_Rocket\Admin\Options_Data; class Data { /** * Options instance * * @var Options_Data */ private $options; /** * Array of WP Rocket options to send * * @var array */ private $to_send = [ 'cache_mobile' => 'Mobile Cache', 'do_caching_mobile_files' => 'Specific Cache for Mobile', 'cache_logged_user' => 'User Cache', 'emoji' => 'Disable Emojis', 'defer_all_js' => 'Defer JS', 'delay_js' => 'Delay JS', 'async_css' => 'Load CSS asynchronously', 'lazyload' => 'Lazyload Images', 'lazyload_css_bg_img' => 'Lazyload CSS Background Images', 'lazyload_iframes' => 'Lazyload Iframes', 'lazyload_youtube' => 'Lazyload Youtube', 'cache_webp' => 'WebP Cache', 'minify_css' => 'Minify CSS', 'remove_unused_css' => 'Remove Unused CSS', 'minify_js' => 'Minify JS', 'minify_concatenate_js' => 'Combine JS', 'minify_google_fonts' => 'Combine Google Fonts', 'manual_preload' => 'Preload', 'preload_links' => 'Preload Links', 'cdn' => 'CDN Enabled', 'do_cloudflare' => 'Cloudflare Enabled', 'varnish_auto_purge' => 'Varnish Purge Enabled', 'control_heartbeat' => 'Hearbeat Control', 'sucury_waf_cache_sync' => 'Sucuri Add-on', ]; /** * Instantiate the class * * @param Options_Data $options Options instance. */ public function __construct( Options_Data $options ) { $this->options = $options; } /** * Returns the data to populate the support information * * @since 3.7.5 * * @return array */ public function get_support_data() { $active_options = array_intersect_key( $this->to_send, array_filter( $this->options->get_options() ) ); return [ 'Website' => home_url(), 'WordPress Version' => get_bloginfo( 'version' ), 'WP Rocket Version' => rocket_get_constant( 'WP_ROCKET_VERSION' ), 'Theme' => wp_get_theme()->get( 'Name' ), 'Plugins Enabled' => implode( ' - ', rocket_get_active_plugins() ), 'WP Rocket Active Options' => implode( ' - ', $active_options ), ]; } }