Plugin Directory

Changeset 3230775


Ignore:
Timestamp:
01/28/2025 05:37:13 PM (14 months ago)
Author:
aguidrevitch
Message:
  • PHP 8.4 Compatibility: Enhanced compatibility to ensure smooth performance with the latest PHP version.
  • Exclusion Fixes: Resolved minor issues with exclusions for a more reliable optimization process.
  • UI Fixes: Made small UI adjustments for a cleaner and more intuitive experience.
Location:
fastpixel-website-accelerator/trunk
Files:
1 added
12 edited

Legend:

Unmodified
Added
Removed
  • fastpixel-website-accelerator/trunk/fastpixel.php

    r3226209 r3230775  
    55 * Description: Faster WordPress Made Easy – Solve all your website speed problems effortlessly with just a few clicks.
    66 * Author:      ShortPixel
    7  * Version:     1.0.40
     7 * Version:     1.0.41
    88 * Text Domain: fastpixel-website-accelerator
    99 * Domain Path: /languages
     
    2121defined('ABSPATH') || exit;
    2222
    23 define('FASTPIXEL_VERSION', '1.0.40');
     23define('FASTPIXEL_VERSION', '1.0.41');
    2424define('FASTPIXEL_NAME', 'FastPixel');
    2525if (!defined('FASTPIXEL_PLUGIN_DIR'))
  • fastpixel-website-accelerator/trunk/inc/backend/controllers/classes/post-types-statuses.php

    r3209419 r3230775  
    117117            $extra_pages = [];
    118118            if ($args['post_type'] == 'page') {
     119                $show_on_front  = get_option('show_on_front');
    119120                $page_on_front  = get_option('page_on_front');
    120121                //if static page is not set, adding homepage to list
    121                 if ($page_on_front == 0 && $args['current_page'] == 1) {
     122                if (($show_on_front == 'posts' || $page_on_front == 0) && $args['current_page'] == 1 && empty($args['s'])) {
    122123                    $cache_status = $this->be_functions->cache_status_display(get_home_url(), ['id' => 'homepage', 'post_type' => $this->selected_post_type]);
    123124                    $extra_pages[] = [
  • fastpixel-website-accelerator/trunk/inc/backend/controllers/classes/woocomm.php

    r3223801 r3230775  
    244244                return $status;
    245245            }
    246             if (!empty($args['post_type']) && $args['post_type'] == 'product' && $this->exclude_all_posts) {
     246            if (((!empty($args['selected_of_type']) && $args['selected_of_type'] == 'product') || //for cache status page
     247                 (!empty($args['post_type']) && $args['post_type'] == 'product'))  //for top admin bar
     248                && $this->exclude_all_posts) {
    247249                $status = true;
    248250            }
  • fastpixel-website-accelerator/trunk/inc/backend/controllers/tabs/settings.php

    r3223801 r3230775  
    269269                'field_value' => $params_exclusions,
    270270                'label'       => $args['label'],
    271                 'description' => $description
     271                'description' => $description,
     272                'data'        => ['data-depends-on="fastpixel-exclude-all-params"']
    272273            ], true);
    273274        }
  • fastpixel-website-accelerator/trunk/inc/backend/models/diag-tests/conflicting-plugins.php

    r3226179 r3230775  
    77    class FASTPIXEL_Diag_Test_Conflicting_Plugins extends FASTPIXEL_Diag_Test
    88    {
    9         protected $order_id = 18;
     9        protected $order_id = 30;
    1010        protected $name = 'Conflicting Plugins';
    1111        protected $array_result = true;
     
    235235        public function get_display() {
    236236            if (!empty($this->conflicting_plugins_tested)) {
    237                 return $this->conflicting_plugins_tested;
     237                /* translators: %s is for new line */
     238                $description = sprintf(esc_html__('FastPixel Website Accelerator might not work properly if certain plugins are active. %s Below is a list of conflicting plugins - please disable them to ensure maximum performance.', 'fastpixel-website-accelerator'), '<br/>');
     239                $data = [
     240                    'column_names' => [
     241                        __('Plugin:', 'fastpixel-website-accelerator'),
     242                        __('Status', 'fastpixel-website-accelerator')
     243                    ],
     244                    'description' => $description,
     245                    'rows' => $this->conflicting_plugins_tested
     246                ];
     247                return $data;
    238248            } else {
    239249                /* translators: diagnostics page message for 'conflicting plugins' row when there are no conflicting plugins */
  • fastpixel-website-accelerator/trunk/inc/backend/models/diag-tests/urls-match.php

    r3179548 r3230775  
    99        protected $order_id = 18;
    1010        protected $name = 'Urls Match';
    11         protected $display_notifications = true;
    1211        protected $rest_url = '';
    1312        protected $visible_on_diagnostics_page = false;
  • fastpixel-website-accelerator/trunk/inc/backend/models/posts-ui.php

    r3223801 r3230775  
    291291                        /* translators: %s is used to display Post type */
    292292                        printf(esc_html__('Search %s', 'fastpixel-website-accelerator'), esc_html($post_type_name)); ?>:</label>
    293                         <input type="search" id="post-search-input" name="s" value="">
     293                        <input type="search" id="post-search-input" name="s" value="<?php echo !empty($this->search) ? esc_attr($this->search) : ''; ?>">
    294294                        <input type="submit" id="search-submit" class="button" value="<?php
    295295                        /* translators: %s is used to display Post type */
  • fastpixel-website-accelerator/trunk/inc/backend/views/diagnostics.php

    r3223801 r3230775  
    3434        <tbody>
    3535        <?php foreach ($tests_results as $test_result) :
    36             if ($test_result['array_result'] && is_array($test_result['display'])) : ?>
     36            if ($test_result['array_result'] && is_array($test_result['display'])) :
     37                //need to get column names
     38                $column_names = $test_result['display']['column_names'];
     39                $tests = $test_result['display']['rows'];
     40                $description = $test_result['display']['description'];
     41                ?>
    3742                <tr><td>
    3843                    <?php echo wp_kses($test_result['name'], $allowed_tags); ?>
    3944                </td><td>
    40                     <?php if (empty($test_result['display'])) : ?>
     45                    <?php if (empty($tests)) : ?>
    4146                    <strong class="passed"><?php esc_html_e('None', 'fastpixel-website-accelerator'); ?></strong>
    4247                    <?php else:
     
    4449                    endif; ?>
    4550                </td></tr>
    46                 <?php if (!empty($test_result['display']) && is_array($test_result['display'])) : ?>
     51                <?php if (!empty($tests) && is_array($tests)) : ?>
    4752                    <tr>
    4853                        <td colspan="2">
    4954                            <p>
    50                             <?php /* translators: %s is for new line */
    51                             printf(esc_html__('FastPixel Website Accelerator might not work properly if certain plugins are active. %s Below is a list of conflicting plugins - please disable them to ensure maximum performance.', 'fastpixel-website-accelerator'), '<br/>'); ?>
     55                            <?php echo !empty($description) ? wp_kses($description, ['p' => [], 'br' => []]) : ''; ?>
    5256                            </p>
    5357                            <table class="wp-list-table widefat fixed striped table-view-list">
    5458                                <thead>
    5559                                    <tr>
    56                                         <th><?php esc_html_e('Plugin:', 'fastpixel-website-accelerator'); ?></th>
    57                                         <th><?php esc_html_e('Status', 'fastpixel-website-accelerator'); ?></th>
     60                                        <th><?php echo esc_attr($column_names[0]); ?></th>
     61                                        <th><?php echo esc_attr($column_names[1]); ?></th>
    5862                                    </tr>
    5963                                </thead>
    60                                 <?php foreach ($test_result['display'] as $key => $pass) : ?>
     64                                <?php foreach ($tests as $key => $pass) : ?>
    6165                                    <tr class="plugin-status-row <?php echo esc_attr($pass['status'] == true ? 'passed' : 'failed'); ?>">
    6266                                        <td><?php echo wp_kses($key, $allowed_tags); ?></td>
  • fastpixel-website-accelerator/trunk/inc/cache.php

    r3223801 r3230775  
    140140            $requested_url = $this->url;
    141141            /**
     142             * check if url have domain
     143             */
     144            if (empty($requested_url->get_host())) {
     145                return false;
     146            }
     147            /**
    142148            * no need to activate class on api request or if wp-includes is present in the url
    143149            */
     
    149155            * run only for index.php
    150156            */
    151             if (!in_array($this->functions->sanitize_text_field($_SERVER['SCRIPT_NAME']), ['/index.php'])) {
     157            if (!preg_match('/index\.php/i', $this->functions->sanitize_text_field($_SERVER['SCRIPT_NAME']))) {
    152158                return false;
    153159            }
  • fastpixel-website-accelerator/trunk/inc/url.php

    r3223801 r3230775  
    182182            $this->clear_url();
    183183        }
     184
     185        protected function get_request_host_name() {
     186            $host_name = '';
     187            if (!empty($_SERVER['HTTP_HOST'])) {
     188                $host_name = $_SERVER['HTTP_HOST'];
     189            } else if (defined('WP_HOME')) {
     190                $host_name = parse_url(WP_HOME, PHP_URL_HOST);
     191            } else if (!empty($_SERVER['SERVER_NAME'])) {
     192                $host_name = $_SERVER['SERVER_NAME'];
     193            }
     194            return rtrim($host_name, '/');
     195        }
     196
    184197        protected function get_data_from_request()
    185198        {
     
    188201                (isset($_SERVER['HTTP_X_FORWARDED_PROTO']) && $_SERVER['HTTP_X_FORWARDED_PROTO'] ? $functions->sanitize_text_field($_SERVER['HTTP_X_FORWARDED_PROTO']) :
    189202                (isset($_SERVER['REQUEST_SCHEME']) && $_SERVER['REQUEST_SCHEME'] ? $functions->sanitize_text_field($_SERVER['REQUEST_SCHEME']) :
    190                 (isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] ? 'https' : 'http'))) . '://' . $functions->sanitize_text_field($_SERVER['HTTP_HOST']) . $functions->sanitize_text_field($_SERVER['REQUEST_URI']));
     203                (isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] ? 'https' : 'http'))) . '://' . $functions->sanitize_text_field($this->get_request_host_name()) . '/' . $functions->sanitize_text_field(ltrim($_SERVER['REQUEST_URI'], '/')));
    191204        }
    192205        public function get_path()
  • fastpixel-website-accelerator/trunk/readme.txt

    r3226179 r3230775  
    55Tested up to: 6.7
    66Requires PHP: 5.6
    7 Stable tag: 1.0.40
     7Stable tag: 1.0.41
    88License: GPLv2 or later
    99License URI: https://www.gnu.org/licenses/gpl-2.0.html
     
    201201== Changelog ==
    202202
     203= 1.0.41 =
     204🔧 Maintenance Update
     205Release Date: January 28, 2025
     206🛠️ Fixes & Improvements
     207* PHP 8.4 Compatibility: Enhanced compatibility to ensure smooth performance with the latest PHP version.
     208* Exclusion Fixes: Resolved minor issues with exclusions for a more reliable optimization process.
     209* UI Fixes: Made small UI adjustments for a cleaner and more intuitive experience.
     210
     211Update now to keep everything running smoothly and efficiently! 🚀
     212
    203213= 1.0.40 =
    204214🛠️ Maintenance Update
    205215Release Date: January 21, 2025
    206 ⚙️Fixes & Improvements:
     216⚙️ Fixes & Improvements:
    207217* JavaScript Exclusions: Resolved minor issues to ensure smoother handling of excluded scripts.
    208218* Conflicting Plugins List: Updated the list of known conflicting plugins for improved compatibility and seamless integration.
  • fastpixel-website-accelerator/trunk/vendor/composer/installed.php

    r3226209 r3230775  
    44        'pretty_version' => 'dev-main',
    55        'version' => 'dev-main',
    6         'reference' => '763d2454e390f51d5080f54f965c94869112a82c',
     6        'reference' => '04db0b0525744aab2c79c00d004f6811f4de12bc',
    77        'type' => 'wordpress-plugin',
    88        'install_path' => __DIR__ . '/../../',
     
    1414            'pretty_version' => 'dev-main',
    1515            'version' => 'dev-main',
    16             'reference' => '763d2454e390f51d5080f54f965c94869112a82c',
     16            'reference' => '04db0b0525744aab2c79c00d004f6811f4de12bc',
    1717            'type' => 'wordpress-plugin',
    1818            'install_path' => __DIR__ . '/../../',
Note: See TracChangeset for help on using the changeset viewer.