Plugin Directory

Changeset 2186620


Ignore:
Timestamp:
11/06/2019 02:26:27 AM (6 years ago)
Author:
pcfreak30
Message:

*Version bump to 3.2.2

Location:
rocket-footer-js/trunk
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • rocket-footer-js/trunk/lib/Rocket/Footer/JS.php

    r2175460 r2186620  
    2525     * Plugin version
    2626     */
    27     const VERSION = '3.2.1';
     27    const VERSION = '3.2.2';
    2828    /**
    2929     *
     
    244244        if ( get_rocket_option( 'minify_js' ) && ! ( defined( 'DONOTMINIFYJS' ) && DONOTMINIFYJS ) && ! is_rocket_post_excluded_option( 'minify_js' ) ) {
    245245            /** @noinspection UsageOfSilenceOperatorInspection */
    246             if ( ! @$this->document->loadHTML( mb_convert_encoding( $buffer, 'HTML-ENTITIES', 'UTF-8' ) ) ) {
     246            if ( ! @$this->document->loadHTML( $buffer ) ) {
    247247                return $buffer;
    248248            }
  • rocket-footer-js/trunk/lib/Rocket/Footer/JS/DOMDocument.php

    r2175460 r2186620  
    1515        $source = $this->pre_process_scripts( $source );
    1616        $source = $this->pre_process_styles( $source );
     17        $source = mb_convert_encoding( $source, 'HTML-ENTITIES', 'UTF-8' );
    1718
    1819        return @parent::loadHTML( $source, $options );
  • rocket-footer-js/trunk/lib/Rocket/Footer/JS/Lazyload/Backgroundimages.php

    r2129570 r2186620  
    2424        $xpath = new \DOMXPath( $this->document );
    2525        foreach ( $xpath->query( '//*[@style]' ) as $tag ) {
     26            if ( $this->is_no_lazyload( $tag ) ) {
     27                continue;
     28            }
    2629            preg_match_all( '/url\\(\\s*([\'"]?(.*?)[\'"]?|[^\\)\\s]+)\\s*\\)/i', $tag->getAttribute( 'style' ), $matches );
    2730            if ( ! empty( $matches ) && ! empty( $matches[1] ) ) {
  • rocket-footer-js/trunk/readme.txt

    r2175460 r2186620  
    6666== Changelog ==
    6767
     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
    6873### 3.2.1 ###
    6974
  • rocket-footer-js/trunk/rocket-footer-js.php

    r2175460 r2186620  
    55 * Plugin URI:       https://github.com/pcfreak30/rocket-footer-js
    66 * Description:       Unofficial WP-Rocket addon to force all JS both external and inline to the footer
    7  * Version:           3.2.1
     7 * Version:           3.2.2
    88 * Author:            Derrick Hammer
    99 * Author URI:        https://www.derrickhammer.com
Note: See TracChangeset for help on using the changeset viewer.