Changeset 3083363
- Timestamp:
- 05/08/2024 01:37:09 PM (23 months ago)
- Location:
- fastpixel-website-accelerator
- Files:
-
- 13 edited
- 14 copied
-
tags/1.0.22 (copied) (copied from fastpixel-website-accelerator/trunk)
-
tags/1.0.22/README.md (copied) (copied from fastpixel-website-accelerator/trunk/README.md) (1 diff)
-
tags/1.0.22/advanced-cache.php (copied) (copied from fastpixel-website-accelerator/trunk/advanced-cache.php)
-
tags/1.0.22/composer.json (copied) (copied from fastpixel-website-accelerator/trunk/composer.json)
-
tags/1.0.22/composer.lock (copied) (copied from fastpixel-website-accelerator/trunk/composer.lock)
-
tags/1.0.22/fastpixel.php (copied) (copied from fastpixel-website-accelerator/trunk/fastpixel.php) (2 diffs)
-
tags/1.0.22/icons (copied) (copied from fastpixel-website-accelerator/trunk/icons)
-
tags/1.0.22/inc (copied) (copied from fastpixel-website-accelerator/trunk/inc)
-
tags/1.0.22/inc/backend/controllers/actions.php (modified) (2 diffs)
-
tags/1.0.22/inc/backend/controllers/cache.php (modified) (1 diff)
-
tags/1.0.22/inc/backend/models/diag-tests/ac-file.php (modified) (1 diff)
-
tags/1.0.22/inc/cache.php (modified) (2 diffs)
-
tags/1.0.22/index.php (copied) (copied from fastpixel-website-accelerator/trunk/index.php)
-
tags/1.0.22/keys.dev.pub (copied) (copied from fastpixel-website-accelerator/trunk/keys.dev.pub)
-
tags/1.0.22/keys.tags.pub (copied) (copied from fastpixel-website-accelerator/trunk/keys.tags.pub)
-
tags/1.0.22/languages (copied) (copied from fastpixel-website-accelerator/trunk/languages)
-
tags/1.0.22/readme.txt (copied) (copied from fastpixel-website-accelerator/trunk/readme.txt) (2 diffs)
-
tags/1.0.22/vendor (copied) (copied from fastpixel-website-accelerator/trunk/vendor)
-
tags/1.0.22/vendor/composer/installed.php (modified) (2 diffs)
-
trunk/README.md (modified) (1 diff)
-
trunk/fastpixel.php (modified) (2 diffs)
-
trunk/inc/backend/controllers/actions.php (modified) (2 diffs)
-
trunk/inc/backend/controllers/cache.php (modified) (1 diff)
-
trunk/inc/backend/models/diag-tests/ac-file.php (modified) (1 diff)
-
trunk/inc/cache.php (modified) (2 diffs)
-
trunk/readme.txt (modified) (2 diffs)
-
trunk/vendor/composer/installed.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
fastpixel-website-accelerator/tags/1.0.22/README.md
r3083183 r3083363 5 5 Tested up to: 6.4 6 6 Requires PHP: 5.6 7 Stable tag: 1.0.2 17 Stable tag: 1.0.22 8 8 License: GPLv2 or later 9 9 License URI: https://www.gnu.org/licenses/gpl-2.0.html -
fastpixel-website-accelerator/tags/1.0.22/fastpixel.php
r3083183 r3083363 5 5 * Description: Faster WordPress made easy - the latest technology to speed up your website, packaged in a 1-minute setup plugin. 6 6 * Author: ShortPixel 7 * Version: 1.0.2 17 * Version: 1.0.22 8 8 * Text Domain: fastpixel-website-accelerator 9 9 * Domain Path: /languages … … 21 21 defined('ABSPATH') || exit; 22 22 23 define('FASTPIXEL_VERSION', '1.0.2 1');23 define('FASTPIXEL_VERSION', '1.0.22'); 24 24 define('FASTPIXEL_NAME', 'FastPixel'); 25 25 if (!defined('FASTPIXEL_PLUGIN_DIR')) -
fastpixel-website-accelerator/tags/1.0.22/inc/backend/controllers/actions.php
r3083183 r3083363 34 34 $action_class->do_action(); 35 35 //getting action results 36 $status = $action_class->get Status();36 $status = $action_class->get_status(); 37 37 //displaying error if set 38 38 if ($status['error']) { … … 41 41 //doing redirect if set 42 42 if ($status['do_redirect']) { 43 $this->do Redirect($status['redirect_to']);43 $this->do_redirect($status['redirect_to']); 44 44 } 45 45 } -
fastpixel-website-accelerator/tags/1.0.22/inc/backend/controllers/cache.php
r3083183 r3083363 401 401 } 402 402 } 403 echo wp_json_encode(['status' => 'error', 'statusText' => esc_html__(' Post ID is wrong or empty', 'fastpixel-website-accelerator')]);403 echo wp_json_encode(['status' => 'error', 'statusText' => esc_html__('Error occured while requesting cache', 'fastpixel-website-accelerator')]); 404 404 wp_die(); 405 405 } -
fastpixel-website-accelerator/tags/1.0.22/inc/backend/models/diag-tests/ac-file.php
r3083183 r3083363 20 20 if (file_exists(WP_CONTENT_DIR . DIRECTORY_SEPARATOR . 'advanced-cache.php')) { 21 21 $ac_content = file_get_contents(WP_CONTENT_DIR . DIRECTORY_SEPARATOR . 'advanced-cache.php'); 22 if (preg_match('/FASTPIXEL_ADVANCED_CACHE/s', $ac_content) ) {22 if (preg_match('/FASTPIXEL_ADVANCED_CACHE/s', $ac_content) && preg_match('/FASTPIXEL_Config_Model/s', $ac_content)) { 23 23 $this->passed = true; 24 } else if (preg_match('/FASTPIXEL_ADVANCED_CACHE/s', $ac_content) && !preg_match('/FASTPIXEL_Config_Model/s', $ac_content)) { 25 /* translators: %s should be an url */ 26 $this->add_notification_message(sprintf(esc_html__('The advanced-cache.php add-in file is outdated. %s it with the new FastPixel drop-in.', 'fastpixel-website-accelerator'), sprintf('<a class="button" href="%s">' . esc_html__('Replace', 'fastpixel-website-accelerator') . '</a>', $generate_ac_file_url)), 'error'); 24 27 } else { 25 28 /* translators: %s should be an url */ 26 $this->add_notification_message(sprintf(esc_html__('The advanced-cache.php add-in file is not a FastPixel drop-in. %s it with the FastPixel drop-in.', 'fastpixel-website-accelerator'), sprintf('<a class="button" href="%s">' . esc_html__('Replace', 'fastpixel-website-accelerator') . '</a>', $generate_ac_file_url)), 'error');29 $this->add_notification_message(sprintf(esc_html__('The advanced-cache.php add-in file is not a FastPixel drop-in. %s it with the FastPixel drop-in.', 'fastpixel-website-accelerator'), sprintf('<a class="button" href="%s">' . esc_html__('Replace', 'fastpixel-website-accelerator') . '</a>', $generate_ac_file_url)), 'error'); 27 30 } 28 31 } else { -
fastpixel-website-accelerator/tags/1.0.22/inc/cache.php
r3083183 r3083363 47 47 $this->functions = FASTPIXEL_Functions::get_instance(); 48 48 $this->config = FASTPIXEL_Config_Model::get_instance(); 49 //moving initialization to mu_plugin_loaded because we need sanitization and escaping function initialized 50 add_action('mu_plugin_loaded', [$this, 'init']); 51 } 52 53 public function init() { 49 54 50 //loading modules (need them in advanced-cache.php) 55 51 $this->load_modules(); 56 57 52 //define FASTPIXEL_REST_URL for backend actions, using hook because during include rest_url throw error 58 53 add_action('init', function () { … … 64 59 define('FASTPIXEL_API_URL', FASTPIXEL_API_HOST . '/api/v1/enqueue'); 65 60 } 66 67 61 do_action('fastpixel_early_init'); 68 62 63 //moving initialization to mu_plugin_loaded because we need sanitization and escaping function initialized 64 add_action('mu_plugin_loaded', [$this, 'init']); 65 } 66 67 public function init() { 69 68 if (!$this->check_request_agent()) { 70 69 return; -
fastpixel-website-accelerator/tags/1.0.22/readme.txt
r3083200 r3083363 5 5 Tested up to: 6.4 6 6 Requires PHP: 5.6 7 Stable tag: 1.0.2 17 Stable tag: 1.0.22 8 8 License: GPLv2 or later 9 9 License URI: https://www.gnu.org/licenses/gpl-2.0.html … … 148 148 Release date: May 8, 2024 149 149 * Fixes for complying with WP guidelines 150 151 = 1.0.22 = 152 Release date: May 8, 2024 153 * Bugfix after wrong merge -
fastpixel-website-accelerator/tags/1.0.22/vendor/composer/installed.php
r3083183 r3083363 4 4 'pretty_version' => 'dev-main', 5 5 'version' => 'dev-main', 6 'reference' => ' 6bd5a70c8a80f8dbedc905f398098f0379310ed4',6 'reference' => '258ef55266a10bc93a17b3be690199a63248223b', 7 7 'type' => 'wordpress-plugin', 8 8 'install_path' => __DIR__ . '/../../', … … 14 14 'pretty_version' => 'dev-main', 15 15 'version' => 'dev-main', 16 'reference' => ' 6bd5a70c8a80f8dbedc905f398098f0379310ed4',16 'reference' => '258ef55266a10bc93a17b3be690199a63248223b', 17 17 'type' => 'wordpress-plugin', 18 18 'install_path' => __DIR__ . '/../../', -
fastpixel-website-accelerator/trunk/README.md
r3083183 r3083363 5 5 Tested up to: 6.4 6 6 Requires PHP: 5.6 7 Stable tag: 1.0.2 17 Stable tag: 1.0.22 8 8 License: GPLv2 or later 9 9 License URI: https://www.gnu.org/licenses/gpl-2.0.html -
fastpixel-website-accelerator/trunk/fastpixel.php
r3083183 r3083363 5 5 * Description: Faster WordPress made easy - the latest technology to speed up your website, packaged in a 1-minute setup plugin. 6 6 * Author: ShortPixel 7 * Version: 1.0.2 17 * Version: 1.0.22 8 8 * Text Domain: fastpixel-website-accelerator 9 9 * Domain Path: /languages … … 21 21 defined('ABSPATH') || exit; 22 22 23 define('FASTPIXEL_VERSION', '1.0.2 1');23 define('FASTPIXEL_VERSION', '1.0.22'); 24 24 define('FASTPIXEL_NAME', 'FastPixel'); 25 25 if (!defined('FASTPIXEL_PLUGIN_DIR')) -
fastpixel-website-accelerator/trunk/inc/backend/controllers/actions.php
r3083183 r3083363 34 34 $action_class->do_action(); 35 35 //getting action results 36 $status = $action_class->get Status();36 $status = $action_class->get_status(); 37 37 //displaying error if set 38 38 if ($status['error']) { … … 41 41 //doing redirect if set 42 42 if ($status['do_redirect']) { 43 $this->do Redirect($status['redirect_to']);43 $this->do_redirect($status['redirect_to']); 44 44 } 45 45 } -
fastpixel-website-accelerator/trunk/inc/backend/controllers/cache.php
r3083183 r3083363 401 401 } 402 402 } 403 echo wp_json_encode(['status' => 'error', 'statusText' => esc_html__(' Post ID is wrong or empty', 'fastpixel-website-accelerator')]);403 echo wp_json_encode(['status' => 'error', 'statusText' => esc_html__('Error occured while requesting cache', 'fastpixel-website-accelerator')]); 404 404 wp_die(); 405 405 } -
fastpixel-website-accelerator/trunk/inc/backend/models/diag-tests/ac-file.php
r3083183 r3083363 20 20 if (file_exists(WP_CONTENT_DIR . DIRECTORY_SEPARATOR . 'advanced-cache.php')) { 21 21 $ac_content = file_get_contents(WP_CONTENT_DIR . DIRECTORY_SEPARATOR . 'advanced-cache.php'); 22 if (preg_match('/FASTPIXEL_ADVANCED_CACHE/s', $ac_content) ) {22 if (preg_match('/FASTPIXEL_ADVANCED_CACHE/s', $ac_content) && preg_match('/FASTPIXEL_Config_Model/s', $ac_content)) { 23 23 $this->passed = true; 24 } else if (preg_match('/FASTPIXEL_ADVANCED_CACHE/s', $ac_content) && !preg_match('/FASTPIXEL_Config_Model/s', $ac_content)) { 25 /* translators: %s should be an url */ 26 $this->add_notification_message(sprintf(esc_html__('The advanced-cache.php add-in file is outdated. %s it with the new FastPixel drop-in.', 'fastpixel-website-accelerator'), sprintf('<a class="button" href="%s">' . esc_html__('Replace', 'fastpixel-website-accelerator') . '</a>', $generate_ac_file_url)), 'error'); 24 27 } else { 25 28 /* translators: %s should be an url */ 26 $this->add_notification_message(sprintf(esc_html__('The advanced-cache.php add-in file is not a FastPixel drop-in. %s it with the FastPixel drop-in.', 'fastpixel-website-accelerator'), sprintf('<a class="button" href="%s">' . esc_html__('Replace', 'fastpixel-website-accelerator') . '</a>', $generate_ac_file_url)), 'error');29 $this->add_notification_message(sprintf(esc_html__('The advanced-cache.php add-in file is not a FastPixel drop-in. %s it with the FastPixel drop-in.', 'fastpixel-website-accelerator'), sprintf('<a class="button" href="%s">' . esc_html__('Replace', 'fastpixel-website-accelerator') . '</a>', $generate_ac_file_url)), 'error'); 27 30 } 28 31 } else { -
fastpixel-website-accelerator/trunk/inc/cache.php
r3083183 r3083363 47 47 $this->functions = FASTPIXEL_Functions::get_instance(); 48 48 $this->config = FASTPIXEL_Config_Model::get_instance(); 49 //moving initialization to mu_plugin_loaded because we need sanitization and escaping function initialized 50 add_action('mu_plugin_loaded', [$this, 'init']); 51 } 52 53 public function init() { 49 54 50 //loading modules (need them in advanced-cache.php) 55 51 $this->load_modules(); 56 57 52 //define FASTPIXEL_REST_URL for backend actions, using hook because during include rest_url throw error 58 53 add_action('init', function () { … … 64 59 define('FASTPIXEL_API_URL', FASTPIXEL_API_HOST . '/api/v1/enqueue'); 65 60 } 66 67 61 do_action('fastpixel_early_init'); 68 62 63 //moving initialization to mu_plugin_loaded because we need sanitization and escaping function initialized 64 add_action('mu_plugin_loaded', [$this, 'init']); 65 } 66 67 public function init() { 69 68 if (!$this->check_request_agent()) { 70 69 return; -
fastpixel-website-accelerator/trunk/readme.txt
r3083200 r3083363 5 5 Tested up to: 6.4 6 6 Requires PHP: 5.6 7 Stable tag: 1.0.2 17 Stable tag: 1.0.22 8 8 License: GPLv2 or later 9 9 License URI: https://www.gnu.org/licenses/gpl-2.0.html … … 148 148 Release date: May 8, 2024 149 149 * Fixes for complying with WP guidelines 150 151 = 1.0.22 = 152 Release date: May 8, 2024 153 * Bugfix after wrong merge -
fastpixel-website-accelerator/trunk/vendor/composer/installed.php
r3083183 r3083363 4 4 'pretty_version' => 'dev-main', 5 5 'version' => 'dev-main', 6 'reference' => ' 6bd5a70c8a80f8dbedc905f398098f0379310ed4',6 'reference' => '258ef55266a10bc93a17b3be690199a63248223b', 7 7 'type' => 'wordpress-plugin', 8 8 'install_path' => __DIR__ . '/../../', … … 14 14 'pretty_version' => 'dev-main', 15 15 'version' => 'dev-main', 16 'reference' => ' 6bd5a70c8a80f8dbedc905f398098f0379310ed4',16 'reference' => '258ef55266a10bc93a17b3be690199a63248223b', 17 17 'type' => 'wordpress-plugin', 18 18 'install_path' => __DIR__ . '/../../',
Note: See TracChangeset
for help on using the changeset viewer.