Changeset 3313932
- Timestamp:
- 06/18/2025 02:17:33 PM (7 months ago)
- Location:
- w3-total-cache/tags/2.8.10
- Files:
-
- 9 edited
-
Cdn_Plugin.php (modified) (2 diffs)
-
Generic_Plugin_Admin.php (modified) (1 diff)
-
Root_AdminActivation.php (modified) (1 diff)
-
UserExperience_Emoji_Extension.php (modified) (1 diff)
-
languages/w3-total-cache.pot (modified) (5 diffs)
-
readme.txt (modified) (2 diffs)
-
vendor/composer/installed.php (modified) (2 diffs)
-
w3-total-cache-api.php (modified) (1 diff)
-
w3-total-cache.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
w3-total-cache/tags/2.8.10/Cdn_Plugin.php
r3294392 r3313932 73 73 } 74 74 75 add_action( 'send_headers', array( $this, 'send_headers' ) ); 76 75 77 $default_override = Cdn_Util::get_flush_manually_default_override( $cdn_engine ); 76 78 $flush_on_actions = ! $this->_config->get_boolean( 'cdn.flush_manually', $default_override ); … … 102 104 103 105 add_filter( 'w3tc_minify_http2_preload_url', array( $this, 'w3tc_minify_http2_preload_url' ), 3000 ); 106 } 107 108 /** 109 * Send CDN Headers. 110 * 111 * @return void 112 * 113 * @since 2.8.10 114 */ 115 public function send_headers() { 116 $cdn_engine = $this->_config->get_string( 'cdn.engine' ); 117 $is_cdn_enabled = $this->_config->get_boolean( 'cdn.enabled' ); 118 119 if ( $is_cdn_enabled && $cdn_engine ) { 120 @header( 'X-W3TC-CDN: ' . $cdn_engine ); 121 } 104 122 } 105 123 -
w3-total-cache/tags/2.8.10/Generic_Plugin_Admin.php
r3272823 r3313932 1237 1237 '<tr>' . 1238 1238 '<td>' . esc_html__( 'or use FTP form to allow ', 'w3-total-cache' ) . 1239 '<strong>' . esc_html__( 'W3 Total Cache', 'w3-total-cache' ) . '</strong> ' .1239 '<strong>' . esc_html__( 'W3 Total Cache', 'w3-total-cache' ) . '</strong> ' . 1240 1240 esc_html__( 'make it automatically.', 'w3-total-cache' ) . 1241 1241 '</td>' . -
w3-total-cache/tags/2.8.10/Root_AdminActivation.php
r3272823 r3313932 62 62 } 63 63 64 try { 65 $e = Dispatcher::component( 'Root_Environment' ); 66 $config = Dispatcher::config(); 64 $e = Dispatcher::component( 'Root_Environment' ); 65 $config = Dispatcher::config(); 66 $debug = \defined( 'WP_DEBUG' ) && WP_DEBUG && ! \defined( 'W3D_TESTING' ); 67 68 try { 67 69 $e->fix_in_wpadmin( $config, true ); 70 } catch ( Util_Environment_Exceptions $exs ) { 71 $r = Util_Activation::parse_environment_exceptions( $exs ); 72 73 if ( \strlen( $r['required_changes'] ) > 0 ) { 74 // Log the error for debugging purposes. 75 if ( $debug ) { 76 \error_log( 'W3 Total Cache environment exception: ' . $r['required_changes'] ); // phpcs:ignore WordPress.PHP.DevelopmentFunctions.error_log_error_log 77 } 78 } 79 } catch ( \Exception $e ) { 80 // Log the exception for debugging purposes. 81 if ( $debug ) { 82 \error_log( 'W3 Total Cache exception: ' . $e->getMessage() ); // phpcs:ignore WordPress.PHP.DevelopmentFunctions.error_log_error_log 83 } 84 85 // Handle the exception gracefully. 86 Util_Activation::error_on_exception( $e ); 87 } 88 89 try { 68 90 $e->fix_on_event( $config, 'activate' ); 69 70 // try to save config file if needed, optional thing so exceptions hidden. 71 if ( ! ConfigUtil::is_item_exists( 0, false ) ) { 72 try { 73 // create folders. 74 $e->fix_in_wpadmin( $config ); 75 } catch ( \Exception $ex ) { 76 // missing exception handle? 77 } 78 79 try { 80 Util_Admin::config_save( Dispatcher::config(), $config ); 81 } catch ( \Exception $ex ) { 82 // missing exception handle? 83 } 84 } 85 86 if ( ! get_option( 'w3tc_install_date' ) ) { 87 update_option( 'w3tc_install_date', current_time( 'mysql' ) ); 88 } 89 } catch ( Util_Environment_Exceptions $e ) { 90 // missing exception handle? 91 } catch ( Util_Environment_Exceptions $exs ) { 92 $r = Util_Activation::parse_environment_exceptions( $exs ); 93 94 if ( \strlen( $r['required_changes'] ) > 0 ) { 95 // Log the error for debugging purposes. 96 if ( $debug ) { 97 \error_log( 'W3 Total Cache environment exception: ' . $r['required_changes'] ); // phpcs:ignore WordPress.PHP.DevelopmentFunctions.error_log_error_log 98 } 99 } 91 100 } catch ( \Exception $e ) { 101 // Log the exception for debugging purposes. 102 if ( $debug ) { 103 \error_log( 'W3 Total Cache exception: ' . $e->getMessage() ); // phpcs:ignore WordPress.PHP.DevelopmentFunctions.error_log_error_log 104 } 105 106 // Handle the exception gracefully. 92 107 Util_Activation::error_on_exception( $e ); 108 } 109 110 // try to save config file if needed, optional thing so exceptions hidden. 111 if ( ! ConfigUtil::is_item_exists( 0, false ) ) { 112 try { 113 // create folders. 114 $e->fix_in_wpadmin( $config ); 115 } catch ( Util_Environment_Exceptions $exs ) { 116 $r = Util_Activation::parse_environment_exceptions( $exs ); 117 118 if ( \strlen( $r['required_changes'] ) > 0 ) { 119 // Log the error for debugging purposes. 120 if ( $debug ) { 121 \error_log( 'W3 Total Cache environment exception: ' . $r['required_changes'] ); // phpcs:ignore WordPress.PHP.DevelopmentFunctions.error_log_error_log 122 } 123 } 124 } 125 126 try { 127 Util_Admin::config_save( Dispatcher::config(), $config ); 128 } catch ( \Exception $ex ) { 129 // Log the exception for debugging purposes. 130 if ( $debug ) { 131 \error_log( 'W3 Total Cache exception: ' . $ex->getMessage() ); // phpcs:ignore WordPress.PHP.DevelopmentFunctions.error_log_error_log 132 } 133 } 134 } 135 136 // Set the installation date if it is not already set. 137 if ( ! get_option( 'w3tc_install_date' ) ) { 138 update_option( 'w3tc_install_date', current_time( 'mysql' ) ); 93 139 } 94 140 } -
w3-total-cache/tags/2.8.10/UserExperience_Emoji_Extension.php
r3272823 r3313932 78 78 return array_filter( 79 79 $urls, 80 function ( $v ) { 81 return ( 'https://s.w.org/' !== substr( $v, 0, 16 ) ); 80 function ( $hint ) { 81 // Handle the case where each hint is an array with 'href' key. 82 if ( is_array( $hint ) && isset( $hint['href'] ) ) { 83 return strpos( $hint['href'], '//s.w.org' ) === false; 84 } 85 86 // Handle the case where hint is a simple string URL. 87 if ( is_string( $hint ) ) { 88 return strpos( $hint, '//s.w.org' ) === false; 89 } 90 91 // In any other case, keep the item. 92 return true; 82 93 } 83 94 ); -
w3-total-cache/tags/2.8.10/languages/w3-total-cache.pot
r3294392 r3313932 3 3 msgid "" 4 4 msgstr "" 5 "Project-Id-Version: W3 Total Cache 2.8. 9\n"5 "Project-Id-Version: W3 Total Cache 2.8.10\n" 6 6 "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/w3-total-cache\n" 7 7 "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" … … 10 10 "Content-Type: text/plain; charset=UTF-8\n" 11 11 "Content-Transfer-Encoding: 8bit\n" 12 "POT-Creation-Date: 2025-0 5-15T20:07:07+00:00\n"12 "POT-Creation-Date: 2025-06-18T14:16:42+00:00\n" 13 13 "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" 14 14 "X-Generator: WP-CLI 2.12.0\n" … … 2837 2837 2838 2838 #. translators: 1 queue interval value. 2839 #: Cdn_Plugin.php: 2842839 #: Cdn_Plugin.php:302 2840 2840 #, php-format 2841 2841 msgid "[W3TC] CDN queue process (every %1$d seconds)" … … 2843 2843 2844 2844 #. translators: 1 queue interval value. 2845 #: Cdn_Plugin.php:3 022845 #: Cdn_Plugin.php:320 2846 2846 #, php-format 2847 2847 msgid "[W3TC] CDN auto upload (every %1$d seconds)" 2848 2848 msgstr "" 2849 2849 2850 #: Cdn_Plugin.php:5 572850 #: Cdn_Plugin.php:575 2851 2851 #: DbCache_WpdbInjection_QueryCaching.php:869 2852 2852 msgid "wp-admin" 2853 2853 msgstr "" 2854 2854 2855 #: Cdn_Plugin.php:5 642855 #: Cdn_Plugin.php:582 2856 2856 #: DbCache_WpdbInjection_QueryCaching.php:871 2857 2857 msgid "Short init" 2858 2858 msgstr "" 2859 2859 2860 #: Cdn_Plugin.php:5 712860 #: Cdn_Plugin.php:589 2861 2861 msgid "user agent is rejected" 2862 2862 msgstr "" 2863 2863 2864 #: Cdn_Plugin.php:5 782864 #: Cdn_Plugin.php:596 2865 2865 msgid "request URI is rejected" 2866 2866 msgstr "" 2867 2867 2868 #: Cdn_Plugin.php: 5852868 #: Cdn_Plugin.php:603 2869 2869 msgid "SSL is rejected" 2870 2870 msgstr "" 2871 2871 2872 #: Cdn_Plugin.php:6 052872 #: Cdn_Plugin.php:623 2873 2873 msgid "DONOTCDN constant is defined" 2874 2874 msgstr "" 2875 2875 2876 #: Cdn_Plugin.php:6 122876 #: Cdn_Plugin.php:630 2877 2877 #: Extension_NewRelic_Plugin.php:199 2878 2878 msgid "logged in role is rejected" 2879 2879 msgstr "" 2880 2880 2881 #: Cdn_Plugin.php:8 402881 #: Cdn_Plugin.php:858 2882 2882 msgid "CDN Cache" 2883 2883 msgstr "" 2884 2884 2885 #: Cdn_Plugin.php:8 492885 #: Cdn_Plugin.php:867 2886 2886 msgid "CDN: Manual Purge" 2887 2887 msgstr "" 2888 2888 2889 2889 #. translators: 1 CDN engine name, 2 rejection reason. 2890 #: Cdn_Plugin.php:8 742890 #: Cdn_Plugin.php:892 2891 2891 #, php-format 2892 2892 msgid "Content Delivery Network via %1$s%2$s" 2893 2893 msgstr "" 2894 2894 2895 #: Cdn_Plugin.php:9 032895 #: Cdn_Plugin.php:921 2896 2896 msgid "Replaced URLs for CDN:" 2897 2897 msgstr "" 2898 2898 2899 #: Cdn_Plugin.php:11 182899 #: Cdn_Plugin.php:1136 2900 2900 msgid "Cant find minification base url, make sure minification folder sits inside WP_CONTENT_DIR and DOCUMENT_ROOT is set correctly" 2901 2901 msgstr "" … … 12929 12929 12930 12930 #. translators: 8 closing HTML p tag followed by closing HTML div tag. 12931 #: Root_AdminActivation.php:1 2612931 #: Root_AdminActivation.php:172 12932 12932 #, php-format 12933 12933 msgid "%1$s%2$sW3 Total Cache Error:%3$s Files and directories could not be automatically removed to complete the deactivation. %4$sPlease execute commands manually:%5$s%6$s%7$s%8$s" 12934 12934 msgstr "" 12935 12935 12936 #: Root_AdminActivation.php:1 3012936 #: Root_AdminActivation.php:176 12937 12937 msgid "error" 12938 12938 msgstr "" -
w3-total-cache/tags/2.8.10/readme.txt
r3294392 r3313932 4 4 Requires at least: 5.3 5 5 Tested up to: 6.8 6 Stable tag: 2.8. 96 Stable tag: 2.8.10 7 7 License: GPLv2 or later 8 8 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 362 362 363 363 == Changelog == 364 365 = 2.8.10 = 366 * Fix: Exception handling on activation 367 * Fix: wp_resource_hint handling for arrays 368 * Enhancement: Added X-W3TC-CDN header 364 369 365 370 = 2.8.9 = -
w3-total-cache/tags/2.8.10/vendor/composer/installed.php
r3294392 r3313932 2 2 'root' => array( 3 3 'name' => 'boldgrid/w3-total-cache', 4 'pretty_version' => '2.8. 9',5 'version' => '2.8. 9.0',6 'reference' => ' bc2d18d140d332b1c748977d5b4309c7c2d8b46e',4 'pretty_version' => '2.8.10', 5 'version' => '2.8.10.0', 6 'reference' => 'ab49390afa5a26400ec9214f92fa68c472fb2424', 7 7 'type' => 'wordpress-plugin', 8 8 'install_path' => __DIR__ . '/../../', … … 39 39 ), 40 40 'boldgrid/w3-total-cache' => array( 41 'pretty_version' => '2.8. 9',42 'version' => '2.8. 9.0',43 'reference' => ' bc2d18d140d332b1c748977d5b4309c7c2d8b46e',41 'pretty_version' => '2.8.10', 42 'version' => '2.8.10.0', 43 'reference' => 'ab49390afa5a26400ec9214f92fa68c472fb2424', 44 44 'type' => 'wordpress-plugin', 45 45 'install_path' => __DIR__ . '/../../', -
w3-total-cache/tags/2.8.10/w3-total-cache-api.php
r3294392 r3313932 11 11 12 12 define( 'W3TC', true ); 13 define( 'W3TC_VERSION', '2.8. 9' );13 define( 'W3TC_VERSION', '2.8.10' ); 14 14 define( 'W3TC_POWERED_BY', 'W3 Total Cache' ); 15 15 define( 'W3TC_EMAIL', 'w3tc@w3-edge.com' ); -
w3-total-cache/tags/2.8.10/w3-total-cache.php
r3294392 r3313932 4 4 * Plugin URI: https://www.boldgrid.com/totalcache/ 5 5 * Description: The highest rated and most complete WordPress performance plugin. Dramatically improve the speed and user experience of your site. Add browser, page, object and database caching as well as minify and content delivery network (CDN) to WordPress. 6 * Version: 2.8. 96 * Version: 2.8.10 7 7 * Requires at least: 5.3 8 8 * Requires PHP: 7.2.5
Note: See TracChangeset
for help on using the changeset viewer.