Changeset 2186620
- Timestamp:
- 11/06/2019 02:26:27 AM (6 years ago)
- Location:
- rocket-footer-js/trunk
- Files:
-
- 5 edited
-
lib/Rocket/Footer/JS.php (modified) (2 diffs)
-
lib/Rocket/Footer/JS/DOMDocument.php (modified) (1 diff)
-
lib/Rocket/Footer/JS/Lazyload/Backgroundimages.php (modified) (1 diff)
-
readme.txt (modified) (1 diff)
-
rocket-footer-js.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
rocket-footer-js/trunk/lib/Rocket/Footer/JS.php
r2175460 r2186620 25 25 * Plugin version 26 26 */ 27 const VERSION = '3.2. 1';27 const VERSION = '3.2.2'; 28 28 /** 29 29 * … … 244 244 if ( get_rocket_option( 'minify_js' ) && ! ( defined( 'DONOTMINIFYJS' ) && DONOTMINIFYJS ) && ! is_rocket_post_excluded_option( 'minify_js' ) ) { 245 245 /** @noinspection UsageOfSilenceOperatorInspection */ 246 if ( ! @$this->document->loadHTML( mb_convert_encoding( $buffer, 'HTML-ENTITIES', 'UTF-8' )) ) {246 if ( ! @$this->document->loadHTML( $buffer ) ) { 247 247 return $buffer; 248 248 } -
rocket-footer-js/trunk/lib/Rocket/Footer/JS/DOMDocument.php
r2175460 r2186620 15 15 $source = $this->pre_process_scripts( $source ); 16 16 $source = $this->pre_process_styles( $source ); 17 $source = mb_convert_encoding( $source, 'HTML-ENTITIES', 'UTF-8' ); 17 18 18 19 return @parent::loadHTML( $source, $options ); -
rocket-footer-js/trunk/lib/Rocket/Footer/JS/Lazyload/Backgroundimages.php
r2129570 r2186620 24 24 $xpath = new \DOMXPath( $this->document ); 25 25 foreach ( $xpath->query( '//*[@style]' ) as $tag ) { 26 if ( $this->is_no_lazyload( $tag ) ) { 27 continue; 28 } 26 29 preg_match_all( '/url\\(\\s*([\'"]?(.*?)[\'"]?|[^\\)\\s]+)\\s*\\)/i', $tag->getAttribute( 'style' ), $matches ); 27 30 if ( ! empty( $matches ) && ! empty( $matches[1] ) ) { -
rocket-footer-js/trunk/readme.txt
r2175460 r2186620 66 66 == Changelog == 67 67 68 ### 3.2.2 ### 69 70 * Enhancement: Skip processing background image if it is flagged for no lazy load 71 * Enhancement: Centralize multibyte encoding for entities into the DOMDocument class so that style tags do not get processed 72 68 73 ### 3.2.1 ### 69 74 -
rocket-footer-js/trunk/rocket-footer-js.php
r2175460 r2186620 5 5 * Plugin URI: https://github.com/pcfreak30/rocket-footer-js 6 6 * Description: Unofficial WP-Rocket addon to force all JS both external and inline to the footer 7 * Version: 3.2. 17 * Version: 3.2.2 8 8 * Author: Derrick Hammer 9 9 * Author URI: https://www.derrickhammer.com
Note: See TracChangeset
for help on using the changeset viewer.