Changeset 3230775
- Timestamp:
- 01/28/2025 05:37:13 PM (14 months ago)
- Location:
- fastpixel-website-accelerator/trunk
- Files:
-
- 1 added
- 12 edited
-
fastpixel.php (modified) (2 diffs)
-
inc/backend/controllers/classes/post-types-statuses.php (modified) (1 diff)
-
inc/backend/controllers/classes/woocomm.php (modified) (1 diff)
-
inc/backend/controllers/tabs/settings.php (modified) (1 diff)
-
inc/backend/models/diag-tests/conflicting-plugins.php (modified) (2 diffs)
-
inc/backend/models/diag-tests/empty-hostname.php (added)
-
inc/backend/models/diag-tests/urls-match.php (modified) (1 diff)
-
inc/backend/models/posts-ui.php (modified) (1 diff)
-
inc/backend/views/diagnostics.php (modified) (2 diffs)
-
inc/cache.php (modified) (2 diffs)
-
inc/url.php (modified) (2 diffs)
-
readme.txt (modified) (2 diffs)
-
vendor/composer/installed.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
fastpixel-website-accelerator/trunk/fastpixel.php
r3226209 r3230775 5 5 * Description: Faster WordPress Made Easy – Solve all your website speed problems effortlessly with just a few clicks. 6 6 * Author: ShortPixel 7 * Version: 1.0.4 07 * Version: 1.0.41 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.4 0');23 define('FASTPIXEL_VERSION', '1.0.41'); 24 24 define('FASTPIXEL_NAME', 'FastPixel'); 25 25 if (!defined('FASTPIXEL_PLUGIN_DIR')) -
fastpixel-website-accelerator/trunk/inc/backend/controllers/classes/post-types-statuses.php
r3209419 r3230775 117 117 $extra_pages = []; 118 118 if ($args['post_type'] == 'page') { 119 $show_on_front = get_option('show_on_front'); 119 120 $page_on_front = get_option('page_on_front'); 120 121 //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'])) { 122 123 $cache_status = $this->be_functions->cache_status_display(get_home_url(), ['id' => 'homepage', 'post_type' => $this->selected_post_type]); 123 124 $extra_pages[] = [ -
fastpixel-website-accelerator/trunk/inc/backend/controllers/classes/woocomm.php
r3223801 r3230775 244 244 return $status; 245 245 } 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) { 247 249 $status = true; 248 250 } -
fastpixel-website-accelerator/trunk/inc/backend/controllers/tabs/settings.php
r3223801 r3230775 269 269 'field_value' => $params_exclusions, 270 270 'label' => $args['label'], 271 'description' => $description 271 'description' => $description, 272 'data' => ['data-depends-on="fastpixel-exclude-all-params"'] 272 273 ], true); 273 274 } -
fastpixel-website-accelerator/trunk/inc/backend/models/diag-tests/conflicting-plugins.php
r3226179 r3230775 7 7 class FASTPIXEL_Diag_Test_Conflicting_Plugins extends FASTPIXEL_Diag_Test 8 8 { 9 protected $order_id = 18;9 protected $order_id = 30; 10 10 protected $name = 'Conflicting Plugins'; 11 11 protected $array_result = true; … … 235 235 public function get_display() { 236 236 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; 238 248 } else { 239 249 /* 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 9 9 protected $order_id = 18; 10 10 protected $name = 'Urls Match'; 11 protected $display_notifications = true;12 11 protected $rest_url = ''; 13 12 protected $visible_on_diagnostics_page = false; -
fastpixel-website-accelerator/trunk/inc/backend/models/posts-ui.php
r3223801 r3230775 291 291 /* translators: %s is used to display Post type */ 292 292 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) : ''; ?>"> 294 294 <input type="submit" id="search-submit" class="button" value="<?php 295 295 /* translators: %s is used to display Post type */ -
fastpixel-website-accelerator/trunk/inc/backend/views/diagnostics.php
r3223801 r3230775 34 34 <tbody> 35 35 <?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 ?> 37 42 <tr><td> 38 43 <?php echo wp_kses($test_result['name'], $allowed_tags); ?> 39 44 </td><td> 40 <?php if (empty($test _result['display'])) : ?>45 <?php if (empty($tests)) : ?> 41 46 <strong class="passed"><?php esc_html_e('None', 'fastpixel-website-accelerator'); ?></strong> 42 47 <?php else: … … 44 49 endif; ?> 45 50 </td></tr> 46 <?php if (!empty($test _result['display']) && is_array($test_result['display'])) : ?>51 <?php if (!empty($tests) && is_array($tests)) : ?> 47 52 <tr> 48 53 <td colspan="2"> 49 54 <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' => []]) : ''; ?> 52 56 </p> 53 57 <table class="wp-list-table widefat fixed striped table-view-list"> 54 58 <thead> 55 59 <tr> 56 <th><?php e sc_html_e('Plugin:', 'fastpixel-website-accelerator'); ?></th>57 <th><?php e sc_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> 58 62 </tr> 59 63 </thead> 60 <?php foreach ($test _result['display']as $key => $pass) : ?>64 <?php foreach ($tests as $key => $pass) : ?> 61 65 <tr class="plugin-status-row <?php echo esc_attr($pass['status'] == true ? 'passed' : 'failed'); ?>"> 62 66 <td><?php echo wp_kses($key, $allowed_tags); ?></td> -
fastpixel-website-accelerator/trunk/inc/cache.php
r3223801 r3230775 140 140 $requested_url = $this->url; 141 141 /** 142 * check if url have domain 143 */ 144 if (empty($requested_url->get_host())) { 145 return false; 146 } 147 /** 142 148 * no need to activate class on api request or if wp-includes is present in the url 143 149 */ … … 149 155 * run only for index.php 150 156 */ 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']))) { 152 158 return false; 153 159 } -
fastpixel-website-accelerator/trunk/inc/url.php
r3223801 r3230775 182 182 $this->clear_url(); 183 183 } 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 184 197 protected function get_data_from_request() 185 198 { … … 188 201 (isset($_SERVER['HTTP_X_FORWARDED_PROTO']) && $_SERVER['HTTP_X_FORWARDED_PROTO'] ? $functions->sanitize_text_field($_SERVER['HTTP_X_FORWARDED_PROTO']) : 189 202 (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'], '/'))); 191 204 } 192 205 public function get_path() -
fastpixel-website-accelerator/trunk/readme.txt
r3226179 r3230775 5 5 Tested up to: 6.7 6 6 Requires PHP: 5.6 7 Stable tag: 1.0.4 07 Stable tag: 1.0.41 8 8 License: GPLv2 or later 9 9 License URI: https://www.gnu.org/licenses/gpl-2.0.html … … 201 201 == Changelog == 202 202 203 = 1.0.41 = 204 🔧 Maintenance Update 205 Release 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 211 Update now to keep everything running smoothly and efficiently! 🚀 212 203 213 = 1.0.40 = 204 214 🛠️ Maintenance Update 205 215 Release Date: January 21, 2025 206 ⚙️ Fixes & Improvements:216 ⚙️ Fixes & Improvements: 207 217 * JavaScript Exclusions: Resolved minor issues to ensure smoother handling of excluded scripts. 208 218 * 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 4 4 'pretty_version' => 'dev-main', 5 5 'version' => 'dev-main', 6 'reference' => ' 763d2454e390f51d5080f54f965c94869112a82c',6 'reference' => '04db0b0525744aab2c79c00d004f6811f4de12bc', 7 7 'type' => 'wordpress-plugin', 8 8 'install_path' => __DIR__ . '/../../', … … 14 14 'pretty_version' => 'dev-main', 15 15 'version' => 'dev-main', 16 'reference' => ' 763d2454e390f51d5080f54f965c94869112a82c',16 'reference' => '04db0b0525744aab2c79c00d004f6811f4de12bc', 17 17 'type' => 'wordpress-plugin', 18 18 'install_path' => __DIR__ . '/../../',
Note: See TracChangeset
for help on using the changeset viewer.