Plugin Directory

Changeset 2167776


Ignore:
Timestamp:
10/03/2019 05:45:50 PM (6 years ago)
Author:
rom4i
Message:

Version 1.0.8

Location:
sarvarov-lazy-load/trunk
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • sarvarov-lazy-load/trunk/README.txt

    r2145198 r2167776  
    66Tested up to: 5.2.2
    77Requires PHP: 5.6
    8 Stable tag: 1.0.7
     8Stable tag: 1.0.8
    99License: GPLv3 or later
    1010License URI: http://www.gnu.org/licenses/gpl-3.0.html
     
    116116== Changelog ==
    117117
     118= 1.0.8 =
     119* Adds loading="lazy" to images & iframes inside <noscript>
     120* General performance improvements
     121
    118122= 1.0.7 =
    119 * Use cURL if host has `allow_url_fopen` set to false.
     123* Use cURL if host has `allow_url_fopen` set to false
    120124* Added Russian translation.
    121125
  • sarvarov-lazy-load/trunk/admin/partials/sidebar.php

    r2139078 r2167776  
    4040                        continue;
    4141                   
    42                     printf( '<a class="button button-primary" href="https://wordpress.org/plugins/%1$s/" target="_blank">&#11088; Rate the plugin or ask a question</a>', $value['url'] );
     42                    printf( '<a class="button button-primary" href="https://wordpress.org/plugins/%1$s/" target="_blank">&#11088; %2$s</a>', $value['url'], esc_html__( 'Rate the plugin or ask a question:', $this->plugin_name ) );
    4343                   
    4444                }
  • sarvarov-lazy-load/trunk/public/class-sarvarov-lazy-load-public.php

    r2145198 r2167776  
    170170    public function lazy_process( $content = '', $params = array() ) {
    171171        // don't lazyload for feeds, previews, mobile, admin page
    172         if( is_feed() || is_preview() || is_admin() || ! apply_filters( 'sarvarov_lazy_load_enable', true ) )
     172        if( is_feed() || is_preview() || is_admin() && ! wp_doing_ajax() || ! apply_filters( 'sarvarov_lazy_load_enable', true ) )
    173173            return $content;
    174174       
     
    210210        );
    211211       
    212         // trying to get cache
    213212        $cache_array = array();
    214213       
     
    221220           
    222221            // trying to get cache
     222            if( is_preview() ) {
     223                $cache_enable = false;
     224            }
     225           
    223226            if( $cache_enable ) {
    224227                if( ! $cache_array ) {
     
    384387            // <noscript> tag
    385388            if( $noscript_enable ) {
    386                 $noscript_str = sprintf( '<noscript><img %s /></noscript>', $this->build_attributes_string(
     389                $noscript_str = sprintf( '<noscript><img %s loading="lazy" /></noscript>', $this->build_attributes_string(
    387390                    apply_filters( 'sarvarov_lazy_load_image_noscript', $image_atts )
    388391                ) );
     
    451454        );
    452455       
    453         // trying to get cache
    454456        $cache_array = array();
    455457       
     
    462464           
    463465            // trying to get cache
     466            if( is_preview() ) {
     467                $cache_enable = false;
     468            }
     469           
    464470            if( $cache_enable ) {
    465471                if( ! $cache_array ) {
     
    579585            // <noscript> tag
    580586            if( $noscript_enable ) {
    581                 $noscript_str = sprintf( '<noscript><iframe %s></iframe></noscript>', $this->build_attributes_string(
     587                $noscript_str = sprintf( '<noscript><iframe %s loading="lazy"></iframe></noscript>', $this->build_attributes_string(
    582588                    apply_filters( 'sarvarov_lazy_load_iframe_noscript', $iframe_atts )
    583589                ) );
  • sarvarov-lazy-load/trunk/sarvarov-lazy-load.php

    r2145198 r2167776  
    44 * Plugin URI:        https://wordpress.org/plugins/sarvarov-lazy-load/
    55 * Description:       Lazy Load all your images, videos and iframes in just one click. Make your blog faster and look better with blurred LQIP and primary color placeholder.
    6  * Version:           1.0.7
     6 * Version:           1.0.8
    77 * Author:            Roman Sarvarov
    88 * Author URI:        https://about.me/sarvaroff
     
    2121 * Define constants.
    2222 */
    23 define( 'SARVAROV_LAZY_LOAD_VERSION', '1.0.7' );
     23define( 'SARVAROV_LAZY_LOAD_VERSION', '1.0.8' );
    2424define( 'SARVAROV_LAZY_LOAD_PLUGIN_NAME', 'sarvarov-lazy-load' );
    2525define( 'SARVAROV_LAZY_LOAD_PLUGIN_SLUG', 'sarvarov_lazy_load' );
Note: See TracChangeset for help on using the changeset viewer.