Plugin Directory

Changeset 3083363


Ignore:
Timestamp:
05/08/2024 01:37:09 PM (23 months ago)
Author:
ShortPixel
Message:

Fix after wrong merge

Location:
fastpixel-website-accelerator
Files:
13 edited
14 copied

Legend:

Unmodified
Added
Removed
  • fastpixel-website-accelerator/tags/1.0.22/README.md

    r3083183 r3083363  
    55Tested up to: 6.4
    66Requires PHP: 5.6
    7 Stable tag: 1.0.21
     7Stable tag: 1.0.22
    88License: GPLv2 or later
    99License URI: https://www.gnu.org/licenses/gpl-2.0.html
  • fastpixel-website-accelerator/tags/1.0.22/fastpixel.php

    r3083183 r3083363  
    55 * Description: Faster WordPress made easy - the latest technology to speed up your website, packaged in a 1-minute setup plugin.
    66 * Author:      ShortPixel
    7  * Version:     1.0.21
     7 * Version:     1.0.22
    88 * Text Domain: fastpixel-website-accelerator
    99 * Domain Path: /languages
     
    2121defined('ABSPATH') || exit;
    2222
    23 define('FASTPIXEL_VERSION', '1.0.21');
     23define('FASTPIXEL_VERSION', '1.0.22');
    2424define('FASTPIXEL_NAME', 'FastPixel');
    2525if (!defined('FASTPIXEL_PLUGIN_DIR'))
  • fastpixel-website-accelerator/tags/1.0.22/inc/backend/controllers/actions.php

    r3083183 r3083363  
    3434                    $action_class->do_action();
    3535                    //getting action results
    36                     $status = $action_class->getStatus();
     36                    $status = $action_class->get_status();
    3737                    //displaying error if set
    3838                    if ($status['error']) {
     
    4141                    //doing redirect if set
    4242                    if ($status['do_redirect']) {
    43                         $this->doRedirect($status['redirect_to']);
     43                        $this->do_redirect($status['redirect_to']);
    4444                    }
    4545                }
  • fastpixel-website-accelerator/tags/1.0.22/inc/backend/controllers/cache.php

    r3083183 r3083363  
    401401                }
    402402            }
    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')]);
    404404            wp_die();
    405405        }
  • fastpixel-website-accelerator/tags/1.0.22/inc/backend/models/diag-tests/ac-file.php

    r3083183 r3083363  
    2020            if (file_exists(WP_CONTENT_DIR . DIRECTORY_SEPARATOR . 'advanced-cache.php')) {
    2121                $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)) {
    2323                    $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');
    2427                } else {
    2528                    /* 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');
    2730                }
    2831            } else {
  • fastpixel-website-accelerator/tags/1.0.22/inc/cache.php

    r3083183 r3083363  
    4747            $this->functions = FASTPIXEL_Functions::get_instance();
    4848            $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           
    5450            //loading modules (need them in advanced-cache.php)
    5551            $this->load_modules();
    56 
    5752            //define FASTPIXEL_REST_URL for backend actions, using hook because during include rest_url throw error
    5853            add_action('init', function () {
     
    6459                define('FASTPIXEL_API_URL', FASTPIXEL_API_HOST . '/api/v1/enqueue');
    6560            }
    66 
    6761            do_action('fastpixel_early_init');
    6862
     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() {
    6968            if (!$this->check_request_agent()) {
    7069                return;
  • fastpixel-website-accelerator/tags/1.0.22/readme.txt

    r3083200 r3083363  
    55Tested up to: 6.4
    66Requires PHP: 5.6
    7 Stable tag: 1.0.21
     7Stable tag: 1.0.22
    88License: GPLv2 or later
    99License URI: https://www.gnu.org/licenses/gpl-2.0.html
     
    148148Release date: May 8, 2024
    149149* Fixes for complying with WP guidelines
     150
     151= 1.0.22 =
     152Release date: May 8, 2024
     153* Bugfix after wrong merge
  • fastpixel-website-accelerator/tags/1.0.22/vendor/composer/installed.php

    r3083183 r3083363  
    44        'pretty_version' => 'dev-main',
    55        'version' => 'dev-main',
    6         'reference' => '6bd5a70c8a80f8dbedc905f398098f0379310ed4',
     6        'reference' => '258ef55266a10bc93a17b3be690199a63248223b',
    77        'type' => 'wordpress-plugin',
    88        'install_path' => __DIR__ . '/../../',
     
    1414            'pretty_version' => 'dev-main',
    1515            'version' => 'dev-main',
    16             'reference' => '6bd5a70c8a80f8dbedc905f398098f0379310ed4',
     16            'reference' => '258ef55266a10bc93a17b3be690199a63248223b',
    1717            'type' => 'wordpress-plugin',
    1818            'install_path' => __DIR__ . '/../../',
  • fastpixel-website-accelerator/trunk/README.md

    r3083183 r3083363  
    55Tested up to: 6.4
    66Requires PHP: 5.6
    7 Stable tag: 1.0.21
     7Stable tag: 1.0.22
    88License: GPLv2 or later
    99License URI: https://www.gnu.org/licenses/gpl-2.0.html
  • fastpixel-website-accelerator/trunk/fastpixel.php

    r3083183 r3083363  
    55 * Description: Faster WordPress made easy - the latest technology to speed up your website, packaged in a 1-minute setup plugin.
    66 * Author:      ShortPixel
    7  * Version:     1.0.21
     7 * Version:     1.0.22
    88 * Text Domain: fastpixel-website-accelerator
    99 * Domain Path: /languages
     
    2121defined('ABSPATH') || exit;
    2222
    23 define('FASTPIXEL_VERSION', '1.0.21');
     23define('FASTPIXEL_VERSION', '1.0.22');
    2424define('FASTPIXEL_NAME', 'FastPixel');
    2525if (!defined('FASTPIXEL_PLUGIN_DIR'))
  • fastpixel-website-accelerator/trunk/inc/backend/controllers/actions.php

    r3083183 r3083363  
    3434                    $action_class->do_action();
    3535                    //getting action results
    36                     $status = $action_class->getStatus();
     36                    $status = $action_class->get_status();
    3737                    //displaying error if set
    3838                    if ($status['error']) {
     
    4141                    //doing redirect if set
    4242                    if ($status['do_redirect']) {
    43                         $this->doRedirect($status['redirect_to']);
     43                        $this->do_redirect($status['redirect_to']);
    4444                    }
    4545                }
  • fastpixel-website-accelerator/trunk/inc/backend/controllers/cache.php

    r3083183 r3083363  
    401401                }
    402402            }
    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')]);
    404404            wp_die();
    405405        }
  • fastpixel-website-accelerator/trunk/inc/backend/models/diag-tests/ac-file.php

    r3083183 r3083363  
    2020            if (file_exists(WP_CONTENT_DIR . DIRECTORY_SEPARATOR . 'advanced-cache.php')) {
    2121                $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)) {
    2323                    $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');
    2427                } else {
    2528                    /* 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');
    2730                }
    2831            } else {
  • fastpixel-website-accelerator/trunk/inc/cache.php

    r3083183 r3083363  
    4747            $this->functions = FASTPIXEL_Functions::get_instance();
    4848            $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           
    5450            //loading modules (need them in advanced-cache.php)
    5551            $this->load_modules();
    56 
    5752            //define FASTPIXEL_REST_URL for backend actions, using hook because during include rest_url throw error
    5853            add_action('init', function () {
     
    6459                define('FASTPIXEL_API_URL', FASTPIXEL_API_HOST . '/api/v1/enqueue');
    6560            }
    66 
    6761            do_action('fastpixel_early_init');
    6862
     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() {
    6968            if (!$this->check_request_agent()) {
    7069                return;
  • fastpixel-website-accelerator/trunk/readme.txt

    r3083200 r3083363  
    55Tested up to: 6.4
    66Requires PHP: 5.6
    7 Stable tag: 1.0.21
     7Stable tag: 1.0.22
    88License: GPLv2 or later
    99License URI: https://www.gnu.org/licenses/gpl-2.0.html
     
    148148Release date: May 8, 2024
    149149* Fixes for complying with WP guidelines
     150
     151= 1.0.22 =
     152Release date: May 8, 2024
     153* Bugfix after wrong merge
  • fastpixel-website-accelerator/trunk/vendor/composer/installed.php

    r3083183 r3083363  
    44        'pretty_version' => 'dev-main',
    55        'version' => 'dev-main',
    6         'reference' => '6bd5a70c8a80f8dbedc905f398098f0379310ed4',
     6        'reference' => '258ef55266a10bc93a17b3be690199a63248223b',
    77        'type' => 'wordpress-plugin',
    88        'install_path' => __DIR__ . '/../../',
     
    1414            'pretty_version' => 'dev-main',
    1515            'version' => 'dev-main',
    16             'reference' => '6bd5a70c8a80f8dbedc905f398098f0379310ed4',
     16            'reference' => '258ef55266a10bc93a17b3be690199a63248223b',
    1717            'type' => 'wordpress-plugin',
    1818            'install_path' => __DIR__ . '/../../',
Note: See TracChangeset for help on using the changeset viewer.