Changeset 3409283
- Timestamp:
- 12/03/2025 10:21:00 AM (3 months ago)
- Location:
- tiny-compress-images/trunk
- Files:
-
- 6 edited
-
readme.txt (modified) (2 diffs)
-
src/class-tiny-helpers.php (modified) (2 diffs)
-
src/class-tiny-picture.php (modified) (8 diffs)
-
src/class-tiny-plugin.php (modified) (1 diff)
-
src/class-tiny-settings.php (modified) (1 diff)
-
tiny-compress-images.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
tiny-compress-images/trunk/readme.txt
r3399519 r3409283 5 5 Requires at least: 4.0 6 6 Tested up to: 6.8 7 Stable tag: 3.6. 47 Stable tag: 3.6.5 8 8 License: GPLv2 or later 9 9 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 175 175 176 176 == Changelog == 177 = 3.6.5 = 178 * fix: prevent picture element when using a page builder 179 177 180 = 3.6.4 = 178 181 * added a guard to prevent bulk processing to requeue already processed images -
tiny-compress-images/trunk/src/class-tiny-helpers.php
r3325506 r3409283 20 20 21 21 class Tiny_Helpers { 22 22 23 23 24 /** … … 109 110 } 110 111 } 112 113 114 /** 115 * Checks wether a user is viewing from a page builder 116 * 117 * @since 3.6.5 118 */ 119 public static function is_pagebuilder_request() { 120 $pagebuilder_keys = array( 121 'fl_builder', // Beaver Builder 122 'et_fb', // Divi Builder 123 'bricks', // Bricks Builder 124 'breakdance', // Breakdance Builder 125 'breakdance_browser', // Breakdance Builder 126 'ct_builder', // Oxygen Builder 127 'fb-edit', // Avada Live Builder 128 'spio_no_cdn', // Site Origin 129 'tatsu', // Tatsu Builder 130 'tve', // Thrive Architect 131 'tcbf', // Thrive Architect 132 ); 133 134 foreach ( $pagebuilder_keys as $key ) { 135 if ( isset( $_GET[ $key ] ) ) { 136 return true; 137 } 138 } 139 140 return false; 141 } 111 142 } -
tiny-compress-images/trunk/src/class-tiny-picture.php
r3399519 r3409283 32 32 33 33 34 34 35 /** @var string */ 35 36 private $base_dir; … … 57 58 58 59 if ( defined( 'DOING_CRON' ) && DOING_CRON ) { 60 return; 61 } 62 63 if ( Tiny_Helpers::is_pagebuilder_request() ) { 59 64 return; 60 65 } … … 190 195 191 196 197 192 198 public $raw_html; 193 199 protected $base_dir; … … 238 244 if ( preg_match_all( 239 245 '~<' . $regex_tag . 240 '\b(?:[^>"\']+|"[^"]*"|\'[^\']*\')*>.*?</' .241 $regex_tag .242 '>~is',246 '\b(?:[^>"\']+|"[^"]*"|\'[^\']*\')*>.*?</' . 247 $regex_tag . 248 '>~is', 243 249 $html, 244 250 $matches … … 380 386 } 381 387 382 if ( $width_descriptor && 388 if ( 389 $width_descriptor && 383 390 ! self::srcset_contains_width_descriptor( 384 391 $srcset_parts, 385 392 $width_descriptor 386 ) ) { 393 ) 394 ) { 387 395 continue; 388 396 } … … 413 421 $source_parts[] = '/>'; 414 422 $sources[] = implode( ' ', $source_parts ); 415 } // End foreach().423 } // End foreach(). 416 424 417 425 return $sources; … … 473 481 474 482 483 475 484 /** 476 485 * Adds alternative format sources (e.g., image/webp, image/avif) to an existing … … 514 523 class Tiny_Image_Source extends Tiny_Source_Base { 515 524 525 516 526 /** 517 527 * Generates a formatted image source array if the corresponding local file exists. -
tiny-compress-images/trunk/src/class-tiny-plugin.php
r3399519 r3409283 19 19 */ 20 20 class Tiny_Plugin extends Tiny_WP_Base { 21 const VERSION = '3.6. 4';21 const VERSION = '3.6.5'; 22 22 const MEDIA_COLUMN = self::NAME; 23 23 const DATETIME_FORMAT = 'Y-m-d G:i:s'; -
tiny-compress-images/trunk/src/class-tiny-settings.php
r3399519 r3409283 719 719 echo '<div class="notice notice-warning inline"><p>'; 720 720 echo '<strong>' . esc_html__( 'Warning', 'tiny-compress-images' ) . '</strong> — '; 721 $message = esc_html_ e(721 $message = esc_html__( 722 722 'For compression to work you will need to configure WP Offload S3 to keep a copy of the images on the server.', // WPCS: Needed for proper translation. 723 723 'tiny-compress-images' -
tiny-compress-images/trunk/tiny-compress-images.php
r3399519 r3409283 3 3 * Plugin Name: TinyPNG - JPEG, PNG & WebP image compression 4 4 * Description: Speed up your website. Optimize your JPEG, PNG, and WebP images automatically with TinyPNG. 5 * Version: 3.6. 45 * Version: 3.6.5 6 6 * Author: TinyPNG 7 7 * Author URI: https://tinypng.com
Note: See TracChangeset
for help on using the changeset viewer.