Plugin Directory

Changeset 3055524

Timestamp:
03/20/2024 05:39:50 PM (5 months ago)
Author:
nosilver4u
Message:

tagging and releasing 3.7.0

Location:
easy-image-optimizer
Files:
12 edited
1 copied

Legend:

Unmodified
Added
Removed
  • easy-image-optimizer/tags/3.7.0/changelog.txt

    r3035873 r3055524  
     1
     2
     3
     4
     5
     6
     7
     8
     9
    110= 3.6.0 =
    211*Release Date - February 14, 2024*
  • easy-image-optimizer/tags/3.7.0/classes/class-exactdn.php

    r3035873 r3055524  
    329329        \add_filter( 'ngg_pro_lightbox_images_queue', array( $this, 'ngg_pro_lightbox_images_queue' ) );
    330330        \add_filter( 'ngg_get_image_url', array( $this, 'plugin_get_image_url' ) );
     331
     332
     333
     334
     335
     336
     337
    331338
    332339        // Filter for Spotlight Social Media Feeds.
     
    10361043        $images = $this->get_images_from_html( $content, true );
    10371044
     1045
     1046
     1047
     1048
    10381049        if ( ! empty( $images ) ) {
    10391050            $this->debug_message( 'we have images to parse' );
     
    11571168                    $lazy_load_src = \trim( $this->get_attribute( $images['img_tag'][ $index ], 'data-lazyload' ) );
    11581169                }
     1170
     1171
     1172
    11591173                if ( ! $lazy && $lazy_load_src ) {
    11601174                    $placeholder_src      = $src;
     
    11851199                    $this->debug_message( 'url validated' );
    11861200
     1201
    11871202                    // Find the width and height attributes.
    11881203                    $width  = $this->get_attribute( $images['img_tag'][ $index ], 'width' );
     
    12471262                        \preg_match( '#class=["|\']?[^"\']*wp-image-([\d]+)[^"\']*["|\']?#i', $images['img_tag'][ $index ], $attachment_id );
    12481263                    }
    1249                     if ( ! $this->get_option( 'exactdn_prevent_db_queries' ) && empty( $attachment_id ) ) {
     1264                    if ( ! $this->get_option( 'exactdn_prevent_db_queries' ) && empty( $attachment_id ) ) {
    12501265                        $this->debug_message( 'looking for attachment id' );
    12511266                        $attachment_id = attachment_url_to_postid( $src );
    12521267                    }
    1253                     if ( ! $this->get_option( 'exactdn_prevent_db_queries' ) && ! empty( $attachment_id ) ) {
     1268                    if ( ! $this->get_option( 'exactdn_prevent_db_queries' ) && ! empty( $attachment_id ) ) {
    12541269                        if ( \is_array( $attachment_id ) ) {
    12551270                            $attachment_id = \intval( \array_pop( $attachment_id ) );
     
    13691384                    }
    13701385
    1371                     if ( ! $resize_existing && ( ! $width || (int) $filename_width === (int) $width ) ) {
     1386                    if ( ! empty( $srcset_attr ) ) {
     1387                        $this->debug_message( 'src resize not needed, srcset present' );
     1388                        $args = array();
     1389                    } elseif ( ! $resize_existing && ( ! $width || (int) $filename_width === (int) $width ) ) {
    13721390                        $this->debug_message( 'preventing resize' );
    13731391                        $args = array();
     
    14331451                        }
    14341452
    1435                         $srcset_url = false;
    1436                         // Insert new image src into the srcset as well, if we have a width.
    1437                         if ( false !== $width && false === \strpos( $width, '%' ) && $width ) {
    1438                             $srcset_url = $exactdn_url . ' ' . (int) $width . 'w, ';
    1439                         }
    1440                         $srcset_attr = $this->get_attribute( $new_tag, $this->srcset_attr );
    1441                         if ( $srcset_attr ) {
    1442                             $new_srcset_attr = $srcset_attr;
    1443                             if ( $srcset_url && false === \strpos( $srcset_attr, ' ' . (int) $width . 'w' ) && ! \preg_match( '/\s(1|2|3)x/', $srcset_attr ) ) {
    1444                                 $this->debug_message( 'src not in srcset, adding' );
    1445                                 $new_srcset_attr = $srcset_url . $new_srcset_attr;
    1446                             }
    1447                             $new_srcset_attr = $this->srcset_replace( $new_srcset_attr );
    1448                             if ( $new_srcset_attr && $new_srcset_attr !== $srcset_attr ) {
    1449                                 $this->set_attribute( $new_tag, $this->srcset_attr, $new_srcset_attr, true );
    1450                             }
    1451                         }
    1452 
    14531453                        // Check if content width pushed the respimg sizes attribute too far down.
    14541454                        if ( ! empty( $constrain_width ) && (int) $constrain_width !== (int) $content_width ) {
     
    14701470                        }
    14711471
     1472
     1473
     1474
     1475
     1476
     1477
     1478
     1479
     1480
     1481
     1482
     1483
     1484
    14721485                        // If Lazy Load is in use, pass placeholder image through ExactDN.
    14731486                        if ( isset( $placeholder_src ) && $this->validate_image_url( $placeholder_src ) ) {
     
    14901503                        $content = \str_replace( $tag, $new_tag, $content );
    14911504                    }
    1492                 } elseif ( ! $lazy && $this->validate_image_url( $src, true ) ) {
    1493                     $this->debug_message( "found a potential exactdn src url to wrangle, and maybe insert into srcset: $src" );
     1505                } elseif ( ! $lazy && $this->validate_image_url( $src, true ) ) {
     1506                    $this->debug_message( "found a potential exactdn src url to wrangle: $src" );
    14941507
    14951508                    $args    = array();
     
    15231536                    }
    15241537
    1525                     $srcset_url = false;
    1526                     if ( $width ) {
    1527                         $this->debug_message( 'found the width' );
    1528                         // Insert new image src into the srcset as well, if we have a width.
    1529                         if (
    1530                             false !== $width &&
    1531                             false === \strpos( $width, '%' ) &&
    1532                             false !== \strpos( $src, $width ) &&
    1533                             false !== \strpos( $src, $this->exactdn_domain )
    1534                         ) {
    1535                             $exactdn_url = $src;
    1536 
    1537                             $srcset_url = $exactdn_url . ' ' . (int) $width . 'w, ';
    1538                         }
    1539                     }
    1540                     $srcset_attr = $this->get_attribute( $new_tag, $this->srcset_attr );
    1541                     if ( $srcset_attr ) {
    1542                         $new_srcset_attr = $srcset_attr;
    1543                         if ( $srcset_url && false === \strpos( $srcset_attr, ' ' . (int) $width . 'w' ) && ! \preg_match( '/\s(1|2|3)x/', $srcset_attr ) ) {
    1544                             $this->debug_message( 'src not in srcset, adding' );
    1545                             $new_srcset_attr = $srcset_url . $new_srcset_attr;
    1546                         }
    1547                         $new_srcset_attr = $this->srcset_replace( $new_srcset_attr );
    1548                         if ( $new_srcset_attr && $new_srcset_attr !== $srcset_attr ) {
    1549                             $this->set_attribute( $new_tag, $this->srcset_attr, $new_srcset_attr, true );
    1550                         }
    1551                     }
    15521538                    if ( $new_tag && $new_tag !== $tag ) {
    15531539                        // Replace original tag with modified version.
     
    16391625
    16401626        // Process background images on HTML elements.
    1641         $element_types = \apply_filters( 'eio_allowed_background_image_elements', array( 'div', 'li', 'span', 'section', 'a' ) );
     1627        $element_types = \apply_filters( 'eio_allowed_background_image_elements', array( 'div', 'li', 'span', 'section', 'a' ) );
    16421628        foreach ( $element_types as $element_type ) {
    16431629            $content = $this->filter_bg_images( $content, $element_type );
     
    16461632            $content = $this->filter_prz_thumb( $content );
    16471633            $content = $this->filter_style_blocks( $content );
     1634
    16481635            if ( $this->get_option( 'exactdn_all_the_things' ) ) {
    16491636                $this->debug_message( 'rewriting all other wp-content/wp-includes urls' );
     
    16531640        $this->debug_message( 'done parsing page' );
    16541641        $this->filtering_the_content = false;
     1642
     1643
     1644
     1645
     1646
     1647
     1648
    16551649
    16561650        $elapsed_time = \microtime( true ) - $started;
     
    18651859                            $args['w'] = \apply_filters( 'exactdn_content_bgimage_width', $content_width, $bg_image_url );
    18661860                        }
     1861
     1862
     1863
    18671864                        if ( ( isset( $args['w'] ) && empty( $args['w'] ) ) || ! $bg_autoscale ) {
    18681865                            unset( $args['w'] );
     
    18711868                        if ( $bg_image_url !== $exactdn_bg_image_url ) {
    18721869                            $new_style = \str_replace( $orig_bg_url, $exactdn_bg_image_url, $new_style );
     1870
     1871
     1872
     1873
     1874
     1875
     1876
     1877
     1878
     1879
     1880
     1881
     1882
     1883
    18731884                        }
    18741885                    }
     
    19621973
    19631974    /**
     1975
     1976
     1977
     1978
     1979
     1980
     1981
     1982
     1983
     1984
     1985
     1986
     1987
     1988
     1989
     1990
     1991
     1992
     1993
     1994
     1995
     1996
     1997
     1998
     1999
     2000
     2001
     2002
     2003
     2004
     2005
     2006
     2007
     2008
     2009
     2010
     2011
     2012
     2013
     2014
     2015
     2016
     2017
     2018
     2019
     2020
     2021
     2022
     2023
     2024
     2025
     2026
     2027
     2028
     2029
     2030
     2031
     2032
     2033
     2034
     2035
     2036
     2037
     2038
     2039
     2040
     2041
     2042
     2043
     2044
     2045
     2046
    19642047     * Parse page content looking for wp-content/wp-includes URLs to rewrite.
    19652048     *
     
    20052088        }
    20062089        return $content;
     2090
     2091
     2092
     2093
     2094
     2095
     2096
     2097
     2098
     2099
     2100
     2101
     2102
     2103
     2104
     2105
     2106
     2107
     2108
     2109
     2110
     2111
     2112
     2113
     2114
     2115
     2116
     2117
     2118
     2119
     2120
     2121
     2122
     2123
     2124
     2125
     2126
     2127
     2128
     2129
     2130
     2131
     2132
     2133
    20072134    }
    20082135
     
    29653092    public function maybe_smart_crop( $args, $attachment_id, $meta = false ) {
    29663093        $this->debug_message( '<b>' . __METHOD__ . '()</b>' );
     3094
     3095
     3096
    29673097        if ( ! empty( $args['crop'] ) ) {
    29683098            $this->debug_message( 'already cropped' );
     
    35243654
    35253655    /**
     3656
     3657
     3658
     3659
     3660
     3661
     3662
     3663
     3664
     3665
     3666
     3667
     3668
     3669
     3670
     3671
     3672
     3673
     3674
     3675
     3676
     3677
     3678
     3679
     3680
     3681
     3682
     3683
     3684
     3685
     3686
     3687
     3688
     3689
     3690
     3691
     3692
     3693
     3694
     3695
     3696
     3697
     3698
     3699
     3700
     3701
     3702
     3703
     3704
     3705
     3706
     3707
     3708
     3709
     3710
     3711
     3712
     3713
     3714
     3715
     3716
     3717
     3718
     3719
     3720
     3721
     3722
     3723
     3724
     3725
     3726
     3727
     3728
     3729
     3730
     3731
     3732
     3733
     3734
     3735
     3736
     3737
     3738
     3739
     3740
     3741
     3742
     3743
     3744
     3745
     3746
     3747
     3748
     3749
     3750
     3751
     3752
     3753
     3754
     3755
     3756
     3757
     3758
     3759
     3760
     3761
    35263762     * Handle images in Spotlight's Instagram response/endpoint.
    35273763     *
  • easy-image-optimizer/tags/3.7.0/classes/class-lazy-load.php

    r2969931 r3055524  
    375375        if ( ! \apply_filters( 'eio_do_lazyload', true, $this->request_uri ) ) {
    376376            return $buffer;
     377
     378
     379
     380
    377381        }
    378382
     
    775779                if ( $this->is_iterable( $bg_image_urls ) ) {
    776780                    $this->debug_message( 'bg-image urls found' );
     781
     782
     783
     784
     785
     786
     787
     788
     789
     790
     791
    777792                    $new_style = $this->remove_background_image( $style );
    778793                    if ( $style !== $new_style ) {
     
    10171032            }
    10181033        }
     1034
     1035
     1036
     1037
     1038
     1039
     1040
     1041
    10191042        return true;
    10201043    }
  • easy-image-optimizer/tags/3.7.0/classes/class-page-parser.php

    r2963296 r3055524  
    4141     */
    4242    protected $parsing_exactdn = false;
     43
     44
     45
     46
     47
     48
     49
    4350
    4451    /**
     
    164171
    165172    /**
     173
     174
     175
     176
     177
     178
     179
     180
     181
     182
     183
     184
     185
     186
     187
     188
     189
     190
     191
     192
     193
     194
     195
     196
     197
     198
     199
     200
     201
     202
     203
     204
     205
     206
    166207     * Match all elements by tag name in a block of HTML. Does not retrieve contents or closing tags.
    167208     *
     
    172213    public function get_elements_from_html( $content, $tag_name ) {
    173214        $this->debug_message( '<b>' . __METHOD__ . '()</b>' );
    174         if ( ! \ctype_alpha( $tag_name ) ) {
     215        if ( ! \ctype_alpha( ) ) {
    175216            return array();
    176217        }
  • easy-image-optimizer/tags/3.7.0/easy-image-optimizer.php

    r3035873 r3055524  
    1414Description: Easily speed up your website to better connect with your visitors. Properly compress and size/scale images. Includes lazy load and WebP auto-convert.
    1515Author: Exactly WWW
    16 Version: 3.6.0
     16Version: 3..0
    1717Requires at least: 6.2
    1818Requires PHP: 7.4
     
    3030    add_action( 'admin_notices', 'easyio_unsupported_php' );
    3131} elseif ( false === strpos( add_query_arg( '', '' ), 'easyio_disable=1' ) ) {
    32     define( 'EASYIO_VERSION', 360 );
     32    define( 'EASYIO_VERSION', 30 );
    3333
    3434    /**
  • easy-image-optimizer/tags/3.7.0/readme.txt

    r3035873 r3055524  
    33Tags: optimize, image, resize, webp, lazy load, convert, compress, scale
    44Requires at least: 6.2
    5 Tested up to: 6.4
     5Tested up to: 6.
    66Requires PHP: 7.4
    7 Stable tag: 3.6.0
     7Stable tag: 3..0
    88License: GPLv3
    99
     
    5757
    5858* If you would like to help translate this plugin in your language, get started here: https://translate.wordpress.org/projects/wp-plugins/easy-image-optimizer/
     59
     60
     61
     62
     63
     64
     65
     66
     67
    5968
    6069= 3.6.0 =
  • easy-image-optimizer/trunk/changelog.txt

    r3035873 r3055524  
     1
     2
     3
     4
     5
     6
     7
     8
     9
    110= 3.6.0 =
    211*Release Date - February 14, 2024*
  • easy-image-optimizer/trunk/classes/class-exactdn.php

    r3035873 r3055524  
    329329        \add_filter( 'ngg_pro_lightbox_images_queue', array( $this, 'ngg_pro_lightbox_images_queue' ) );
    330330        \add_filter( 'ngg_get_image_url', array( $this, 'plugin_get_image_url' ) );
     331
     332
     333
     334
     335
     336
     337
    331338
    332339        // Filter for Spotlight Social Media Feeds.
     
    10361043        $images = $this->get_images_from_html( $content, true );
    10371044
     1045
     1046
     1047
     1048
    10381049        if ( ! empty( $images ) ) {
    10391050            $this->debug_message( 'we have images to parse' );
     
    11571168                    $lazy_load_src = \trim( $this->get_attribute( $images['img_tag'][ $index ], 'data-lazyload' ) );
    11581169                }
     1170
     1171
     1172
    11591173                if ( ! $lazy && $lazy_load_src ) {
    11601174                    $placeholder_src      = $src;
     
    11851199                    $this->debug_message( 'url validated' );
    11861200
     1201
    11871202                    // Find the width and height attributes.
    11881203                    $width  = $this->get_attribute( $images['img_tag'][ $index ], 'width' );
     
    12471262                        \preg_match( '#class=["|\']?[^"\']*wp-image-([\d]+)[^"\']*["|\']?#i', $images['img_tag'][ $index ], $attachment_id );
    12481263                    }
    1249                     if ( ! $this->get_option( 'exactdn_prevent_db_queries' ) && empty( $attachment_id ) ) {
     1264                    if ( ! $this->get_option( 'exactdn_prevent_db_queries' ) && empty( $attachment_id ) ) {
    12501265                        $this->debug_message( 'looking for attachment id' );
    12511266                        $attachment_id = attachment_url_to_postid( $src );
    12521267                    }
    1253                     if ( ! $this->get_option( 'exactdn_prevent_db_queries' ) && ! empty( $attachment_id ) ) {
     1268                    if ( ! $this->get_option( 'exactdn_prevent_db_queries' ) && ! empty( $attachment_id ) ) {
    12541269                        if ( \is_array( $attachment_id ) ) {
    12551270                            $attachment_id = \intval( \array_pop( $attachment_id ) );
     
    13691384                    }
    13701385
    1371                     if ( ! $resize_existing && ( ! $width || (int) $filename_width === (int) $width ) ) {
     1386                    if ( ! empty( $srcset_attr ) ) {
     1387                        $this->debug_message( 'src resize not needed, srcset present' );
     1388                        $args = array();
     1389                    } elseif ( ! $resize_existing && ( ! $width || (int) $filename_width === (int) $width ) ) {
    13721390                        $this->debug_message( 'preventing resize' );
    13731391                        $args = array();
     
    14331451                        }
    14341452
    1435                         $srcset_url = false;
    1436                         // Insert new image src into the srcset as well, if we have a width.
    1437                         if ( false !== $width && false === \strpos( $width, '%' ) && $width ) {
    1438                             $srcset_url = $exactdn_url . ' ' . (int) $width . 'w, ';
    1439                         }
    1440                         $srcset_attr = $this->get_attribute( $new_tag, $this->srcset_attr );
    1441                         if ( $srcset_attr ) {
    1442                             $new_srcset_attr = $srcset_attr;
    1443                             if ( $srcset_url && false === \strpos( $srcset_attr, ' ' . (int) $width . 'w' ) && ! \preg_match( '/\s(1|2|3)x/', $srcset_attr ) ) {
    1444                                 $this->debug_message( 'src not in srcset, adding' );
    1445                                 $new_srcset_attr = $srcset_url . $new_srcset_attr;
    1446                             }
    1447                             $new_srcset_attr = $this->srcset_replace( $new_srcset_attr );
    1448                             if ( $new_srcset_attr && $new_srcset_attr !== $srcset_attr ) {
    1449                                 $this->set_attribute( $new_tag, $this->srcset_attr, $new_srcset_attr, true );
    1450                             }
    1451                         }
    1452 
    14531453                        // Check if content width pushed the respimg sizes attribute too far down.
    14541454                        if ( ! empty( $constrain_width ) && (int) $constrain_width !== (int) $content_width ) {
     
    14701470                        }
    14711471
     1472
     1473
     1474
     1475
     1476
     1477
     1478
     1479
     1480
     1481
     1482
     1483
     1484
    14721485                        // If Lazy Load is in use, pass placeholder image through ExactDN.
    14731486                        if ( isset( $placeholder_src ) && $this->validate_image_url( $placeholder_src ) ) {
     
    14901503                        $content = \str_replace( $tag, $new_tag, $content );
    14911504                    }
    1492                 } elseif ( ! $lazy && $this->validate_image_url( $src, true ) ) {
    1493                     $this->debug_message( "found a potential exactdn src url to wrangle, and maybe insert into srcset: $src" );
     1505                } elseif ( ! $lazy && $this->validate_image_url( $src, true ) ) {
     1506                    $this->debug_message( "found a potential exactdn src url to wrangle: $src" );
    14941507
    14951508                    $args    = array();
     
    15231536                    }
    15241537
    1525                     $srcset_url = false;
    1526                     if ( $width ) {
    1527                         $this->debug_message( 'found the width' );
    1528                         // Insert new image src into the srcset as well, if we have a width.
    1529                         if (
    1530                             false !== $width &&
    1531                             false === \strpos( $width, '%' ) &&
    1532                             false !== \strpos( $src, $width ) &&
    1533                             false !== \strpos( $src, $this->exactdn_domain )
    1534                         ) {
    1535                             $exactdn_url = $src;
    1536 
    1537                             $srcset_url = $exactdn_url . ' ' . (int) $width . 'w, ';
    1538                         }
    1539                     }
    1540                     $srcset_attr = $this->get_attribute( $new_tag, $this->srcset_attr );
    1541                     if ( $srcset_attr ) {
    1542                         $new_srcset_attr = $srcset_attr;
    1543                         if ( $srcset_url && false === \strpos( $srcset_attr, ' ' . (int) $width . 'w' ) && ! \preg_match( '/\s(1|2|3)x/', $srcset_attr ) ) {
    1544                             $this->debug_message( 'src not in srcset, adding' );
    1545                             $new_srcset_attr = $srcset_url . $new_srcset_attr;
    1546                         }
    1547                         $new_srcset_attr = $this->srcset_replace( $new_srcset_attr );
    1548                         if ( $new_srcset_attr && $new_srcset_attr !== $srcset_attr ) {
    1549                             $this->set_attribute( $new_tag, $this->srcset_attr, $new_srcset_attr, true );
    1550                         }
    1551                     }
    15521538                    if ( $new_tag && $new_tag !== $tag ) {
    15531539                        // Replace original tag with modified version.
     
    16391625
    16401626        // Process background images on HTML elements.
    1641         $element_types = \apply_filters( 'eio_allowed_background_image_elements', array( 'div', 'li', 'span', 'section', 'a' ) );
     1627        $element_types = \apply_filters( 'eio_allowed_background_image_elements', array( 'div', 'li', 'span', 'section', 'a' ) );
    16421628        foreach ( $element_types as $element_type ) {
    16431629            $content = $this->filter_bg_images( $content, $element_type );
     
    16461632            $content = $this->filter_prz_thumb( $content );
    16471633            $content = $this->filter_style_blocks( $content );
     1634
    16481635            if ( $this->get_option( 'exactdn_all_the_things' ) ) {
    16491636                $this->debug_message( 'rewriting all other wp-content/wp-includes urls' );
     
    16531640        $this->debug_message( 'done parsing page' );
    16541641        $this->filtering_the_content = false;
     1642
     1643
     1644
     1645
     1646
     1647
     1648
    16551649
    16561650        $elapsed_time = \microtime( true ) - $started;
     
    18651859                            $args['w'] = \apply_filters( 'exactdn_content_bgimage_width', $content_width, $bg_image_url );
    18661860                        }
     1861
     1862
     1863
    18671864                        if ( ( isset( $args['w'] ) && empty( $args['w'] ) ) || ! $bg_autoscale ) {
    18681865                            unset( $args['w'] );
     
    18711868                        if ( $bg_image_url !== $exactdn_bg_image_url ) {
    18721869                            $new_style = \str_replace( $orig_bg_url, $exactdn_bg_image_url, $new_style );
     1870
     1871
     1872
     1873
     1874
     1875
     1876
     1877
     1878
     1879
     1880
     1881
     1882
     1883
    18731884                        }
    18741885                    }
     
    19621973
    19631974    /**
     1975
     1976
     1977
     1978
     1979
     1980
     1981
     1982
     1983
     1984
     1985
     1986
     1987
     1988
     1989
     1990
     1991
     1992
     1993
     1994
     1995
     1996
     1997
     1998
     1999
     2000
     2001
     2002
     2003
     2004
     2005
     2006
     2007
     2008
     2009
     2010
     2011
     2012
     2013
     2014
     2015
     2016
     2017
     2018
     2019
     2020
     2021
     2022
     2023
     2024
     2025
     2026
     2027
     2028
     2029
     2030
     2031
     2032
     2033
     2034
     2035
     2036
     2037
     2038
     2039
     2040
     2041
     2042
     2043
     2044
     2045
     2046
    19642047     * Parse page content looking for wp-content/wp-includes URLs to rewrite.
    19652048     *
     
    20052088        }
    20062089        return $content;
     2090
     2091
     2092
     2093
     2094
     2095
     2096
     2097
     2098
     2099
     2100
     2101
     2102
     2103
     2104
     2105
     2106
     2107
     2108
     2109
     2110
     2111
     2112
     2113
     2114
     2115
     2116
     2117
     2118
     2119
     2120
     2121
     2122
     2123
     2124
     2125
     2126
     2127
     2128
     2129
     2130
     2131
     2132
     2133
    20072134    }
    20082135
     
    29653092    public function maybe_smart_crop( $args, $attachment_id, $meta = false ) {
    29663093        $this->debug_message( '<b>' . __METHOD__ . '()</b>' );
     3094
     3095
     3096
    29673097        if ( ! empty( $args['crop'] ) ) {
    29683098            $this->debug_message( 'already cropped' );
     
    35243654
    35253655    /**
     3656
     3657
     3658
     3659
     3660
     3661
     3662
     3663
     3664
     3665
     3666
     3667
     3668
     3669
     3670
     3671
     3672
     3673
     3674
     3675
     3676
     3677
     3678
     3679
     3680
     3681
     3682
     3683
     3684
     3685
     3686
     3687
     3688
     3689
     3690
     3691
     3692
     3693
     3694
     3695
     3696
     3697
     3698
     3699
     3700
     3701
     3702
     3703
     3704
     3705
     3706
     3707
     3708
     3709
     3710
     3711
     3712
     3713
     3714
     3715
     3716
     3717
     3718
     3719
     3720
     3721
     3722
     3723
     3724
     3725
     3726
     3727
     3728
     3729
     3730
     3731
     3732
     3733
     3734
     3735
     3736
     3737
     3738
     3739
     3740
     3741
     3742
     3743
     3744
     3745
     3746
     3747
     3748
     3749
     3750
     3751
     3752
     3753
     3754
     3755
     3756
     3757
     3758
     3759
     3760
     3761
    35263762     * Handle images in Spotlight's Instagram response/endpoint.
    35273763     *
  • easy-image-optimizer/trunk/classes/class-lazy-load.php

    r2969931 r3055524  
    375375        if ( ! \apply_filters( 'eio_do_lazyload', true, $this->request_uri ) ) {
    376376            return $buffer;
     377
     378
     379
     380
    377381        }
    378382
     
    775779                if ( $this->is_iterable( $bg_image_urls ) ) {
    776780                    $this->debug_message( 'bg-image urls found' );
     781
     782
     783
     784
     785
     786
     787
     788
     789
     790
     791
    777792                    $new_style = $this->remove_background_image( $style );
    778793                    if ( $style !== $new_style ) {
     
    10171032            }
    10181033        }
     1034
     1035
     1036
     1037
     1038
     1039
     1040
     1041
    10191042        return true;
    10201043    }
  • easy-image-optimizer/trunk/classes/class-page-parser.php

    r2963296 r3055524  
    4141     */
    4242    protected $parsing_exactdn = false;
     43
     44
     45
     46
     47
     48
     49
    4350
    4451    /**
     
    164171
    165172    /**
     173
     174
     175
     176
     177
     178
     179
     180
     181
     182
     183
     184
     185
     186
     187
     188
     189
     190
     191
     192
     193
     194
     195
     196
     197
     198
     199
     200
     201
     202
     203
     204
     205
     206
    166207     * Match all elements by tag name in a block of HTML. Does not retrieve contents or closing tags.
    167208     *
     
    172213    public function get_elements_from_html( $content, $tag_name ) {
    173214        $this->debug_message( '<b>' . __METHOD__ . '()</b>' );
    174         if ( ! \ctype_alpha( $tag_name ) ) {
     215        if ( ! \ctype_alpha( ) ) {
    175216            return array();
    176217        }
  • easy-image-optimizer/trunk/easy-image-optimizer.php

    r3035873 r3055524  
    1414Description: Easily speed up your website to better connect with your visitors. Properly compress and size/scale images. Includes lazy load and WebP auto-convert.
    1515Author: Exactly WWW
    16 Version: 3.6.0
     16Version: 3..0
    1717Requires at least: 6.2
    1818Requires PHP: 7.4
     
    3030    add_action( 'admin_notices', 'easyio_unsupported_php' );
    3131} elseif ( false === strpos( add_query_arg( '', '' ), 'easyio_disable=1' ) ) {
    32     define( 'EASYIO_VERSION', 360 );
     32    define( 'EASYIO_VERSION', 30 );
    3333
    3434    /**
  • easy-image-optimizer/trunk/readme.txt

    r3035873 r3055524  
    33Tags: optimize, image, resize, webp, lazy load, convert, compress, scale
    44Requires at least: 6.2
    5 Tested up to: 6.4
     5Tested up to: 6.
    66Requires PHP: 7.4
    7 Stable tag: 3.6.0
     7Stable tag: 3..0
    88License: GPLv3
    99
     
    5757
    5858* If you would like to help translate this plugin in your language, get started here: https://translate.wordpress.org/projects/wp-plugins/easy-image-optimizer/
     59
     60
     61
     62
     63
     64
     65
     66
     67
    5968
    6069= 3.6.0 =
Note: See TracChangeset for help on using the changeset viewer.