Changeset 3055524
- Timestamp:
- 03/20/2024 05:39:50 PM (5 months ago)
- 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 1 10 = 3.6.0 = 2 11 *Release Date - February 14, 2024* -
easy-image-optimizer/tags/3.7.0/classes/class-exactdn.php
r3035873 r3055524 329 329 \add_filter( 'ngg_pro_lightbox_images_queue', array( $this, 'ngg_pro_lightbox_images_queue' ) ); 330 330 \add_filter( 'ngg_get_image_url', array( $this, 'plugin_get_image_url' ) ); 331 332 333 334 335 336 337 331 338 332 339 // Filter for Spotlight Social Media Feeds. … … 1036 1043 $images = $this->get_images_from_html( $content, true ); 1037 1044 1045 1046 1047 1048 1038 1049 if ( ! empty( $images ) ) { 1039 1050 $this->debug_message( 'we have images to parse' ); … … 1157 1168 $lazy_load_src = \trim( $this->get_attribute( $images['img_tag'][ $index ], 'data-lazyload' ) ); 1158 1169 } 1170 1171 1172 1159 1173 if ( ! $lazy && $lazy_load_src ) { 1160 1174 $placeholder_src = $src; … … 1185 1199 $this->debug_message( 'url validated' ); 1186 1200 1201 1187 1202 // Find the width and height attributes. 1188 1203 $width = $this->get_attribute( $images['img_tag'][ $index ], 'width' ); … … 1247 1262 \preg_match( '#class=["|\']?[^"\']*wp-image-([\d]+)[^"\']*["|\']?#i', $images['img_tag'][ $index ], $attachment_id ); 1248 1263 } 1249 if ( ! $ this->get_option( 'exactdn_prevent_db_queries' ) && empty( $attachment_id ) ) {1264 if ( ! $this->get_option( 'exactdn_prevent_db_queries' ) && empty( $attachment_id ) ) { 1250 1265 $this->debug_message( 'looking for attachment id' ); 1251 1266 $attachment_id = attachment_url_to_postid( $src ); 1252 1267 } 1253 if ( ! $ this->get_option( 'exactdn_prevent_db_queries' ) && ! empty( $attachment_id ) ) {1268 if ( ! $this->get_option( 'exactdn_prevent_db_queries' ) && ! empty( $attachment_id ) ) { 1254 1269 if ( \is_array( $attachment_id ) ) { 1255 1270 $attachment_id = \intval( \array_pop( $attachment_id ) ); … … 1369 1384 } 1370 1385 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 ) ) { 1372 1390 $this->debug_message( 'preventing resize' ); 1373 1391 $args = array(); … … 1433 1451 } 1434 1452 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 1453 1453 // Check if content width pushed the respimg sizes attribute too far down. 1454 1454 if ( ! empty( $constrain_width ) && (int) $constrain_width !== (int) $content_width ) { … … 1470 1470 } 1471 1471 1472 1473 1474 1475 1476 1477 1478 1479 1480 1481 1482 1483 1484 1472 1485 // If Lazy Load is in use, pass placeholder image through ExactDN. 1473 1486 if ( isset( $placeholder_src ) && $this->validate_image_url( $placeholder_src ) ) { … … 1490 1503 $content = \str_replace( $tag, $new_tag, $content ); 1491 1504 } 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" ); 1494 1507 1495 1508 $args = array(); … … 1523 1536 } 1524 1537 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 }1552 1538 if ( $new_tag && $new_tag !== $tag ) { 1553 1539 // Replace original tag with modified version. … … 1639 1625 1640 1626 // 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' ) ); 1642 1628 foreach ( $element_types as $element_type ) { 1643 1629 $content = $this->filter_bg_images( $content, $element_type ); … … 1646 1632 $content = $this->filter_prz_thumb( $content ); 1647 1633 $content = $this->filter_style_blocks( $content ); 1634 1648 1635 if ( $this->get_option( 'exactdn_all_the_things' ) ) { 1649 1636 $this->debug_message( 'rewriting all other wp-content/wp-includes urls' ); … … 1653 1640 $this->debug_message( 'done parsing page' ); 1654 1641 $this->filtering_the_content = false; 1642 1643 1644 1645 1646 1647 1648 1655 1649 1656 1650 $elapsed_time = \microtime( true ) - $started; … … 1865 1859 $args['w'] = \apply_filters( 'exactdn_content_bgimage_width', $content_width, $bg_image_url ); 1866 1860 } 1861 1862 1863 1867 1864 if ( ( isset( $args['w'] ) && empty( $args['w'] ) ) || ! $bg_autoscale ) { 1868 1865 unset( $args['w'] ); … … 1871 1868 if ( $bg_image_url !== $exactdn_bg_image_url ) { 1872 1869 $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 1873 1884 } 1874 1885 } … … 1962 1973 1963 1974 /** 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 1964 2047 * Parse page content looking for wp-content/wp-includes URLs to rewrite. 1965 2048 * … … 2005 2088 } 2006 2089 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 2007 2134 } 2008 2135 … … 2965 3092 public function maybe_smart_crop( $args, $attachment_id, $meta = false ) { 2966 3093 $this->debug_message( '<b>' . __METHOD__ . '()</b>' ); 3094 3095 3096 2967 3097 if ( ! empty( $args['crop'] ) ) { 2968 3098 $this->debug_message( 'already cropped' ); … … 3524 3654 3525 3655 /** 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 3526 3762 * Handle images in Spotlight's Instagram response/endpoint. 3527 3763 * -
easy-image-optimizer/tags/3.7.0/classes/class-lazy-load.php
r2969931 r3055524 375 375 if ( ! \apply_filters( 'eio_do_lazyload', true, $this->request_uri ) ) { 376 376 return $buffer; 377 378 379 380 377 381 } 378 382 … … 775 779 if ( $this->is_iterable( $bg_image_urls ) ) { 776 780 $this->debug_message( 'bg-image urls found' ); 781 782 783 784 785 786 787 788 789 790 791 777 792 $new_style = $this->remove_background_image( $style ); 778 793 if ( $style !== $new_style ) { … … 1017 1032 } 1018 1033 } 1034 1035 1036 1037 1038 1039 1040 1041 1019 1042 return true; 1020 1043 } -
easy-image-optimizer/tags/3.7.0/classes/class-page-parser.php
r2963296 r3055524 41 41 */ 42 42 protected $parsing_exactdn = false; 43 44 45 46 47 48 49 43 50 44 51 /** … … 164 171 165 172 /** 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 166 207 * Match all elements by tag name in a block of HTML. Does not retrieve contents or closing tags. 167 208 * … … 172 213 public function get_elements_from_html( $content, $tag_name ) { 173 214 $this->debug_message( '<b>' . __METHOD__ . '()</b>' ); 174 if ( ! \ctype_alpha( $tag_name) ) {215 if ( ! \ctype_alpha( ) ) { 175 216 return array(); 176 217 } -
easy-image-optimizer/tags/3.7.0/easy-image-optimizer.php
r3035873 r3055524 14 14 Description: Easily speed up your website to better connect with your visitors. Properly compress and size/scale images. Includes lazy load and WebP auto-convert. 15 15 Author: Exactly WWW 16 Version: 3. 6.016 Version: 3..0 17 17 Requires at least: 6.2 18 18 Requires PHP: 7.4 … … 30 30 add_action( 'admin_notices', 'easyio_unsupported_php' ); 31 31 } elseif ( false === strpos( add_query_arg( '', '' ), 'easyio_disable=1' ) ) { 32 define( 'EASYIO_VERSION', 3 60 );32 define( 'EASYIO_VERSION', 30 ); 33 33 34 34 /** -
easy-image-optimizer/tags/3.7.0/readme.txt
r3035873 r3055524 3 3 Tags: optimize, image, resize, webp, lazy load, convert, compress, scale 4 4 Requires at least: 6.2 5 Tested up to: 6. 45 Tested up to: 6. 6 6 Requires PHP: 7.4 7 Stable tag: 3. 6.07 Stable tag: 3..0 8 8 License: GPLv3 9 9 … … 57 57 58 58 * 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 59 68 60 69 = 3.6.0 = -
easy-image-optimizer/trunk/changelog.txt
r3035873 r3055524 1 2 3 4 5 6 7 8 9 1 10 = 3.6.0 = 2 11 *Release Date - February 14, 2024* -
easy-image-optimizer/trunk/classes/class-exactdn.php
r3035873 r3055524 329 329 \add_filter( 'ngg_pro_lightbox_images_queue', array( $this, 'ngg_pro_lightbox_images_queue' ) ); 330 330 \add_filter( 'ngg_get_image_url', array( $this, 'plugin_get_image_url' ) ); 331 332 333 334 335 336 337 331 338 332 339 // Filter for Spotlight Social Media Feeds. … … 1036 1043 $images = $this->get_images_from_html( $content, true ); 1037 1044 1045 1046 1047 1048 1038 1049 if ( ! empty( $images ) ) { 1039 1050 $this->debug_message( 'we have images to parse' ); … … 1157 1168 $lazy_load_src = \trim( $this->get_attribute( $images['img_tag'][ $index ], 'data-lazyload' ) ); 1158 1169 } 1170 1171 1172 1159 1173 if ( ! $lazy && $lazy_load_src ) { 1160 1174 $placeholder_src = $src; … … 1185 1199 $this->debug_message( 'url validated' ); 1186 1200 1201 1187 1202 // Find the width and height attributes. 1188 1203 $width = $this->get_attribute( $images['img_tag'][ $index ], 'width' ); … … 1247 1262 \preg_match( '#class=["|\']?[^"\']*wp-image-([\d]+)[^"\']*["|\']?#i', $images['img_tag'][ $index ], $attachment_id ); 1248 1263 } 1249 if ( ! $ this->get_option( 'exactdn_prevent_db_queries' ) && empty( $attachment_id ) ) {1264 if ( ! $this->get_option( 'exactdn_prevent_db_queries' ) && empty( $attachment_id ) ) { 1250 1265 $this->debug_message( 'looking for attachment id' ); 1251 1266 $attachment_id = attachment_url_to_postid( $src ); 1252 1267 } 1253 if ( ! $ this->get_option( 'exactdn_prevent_db_queries' ) && ! empty( $attachment_id ) ) {1268 if ( ! $this->get_option( 'exactdn_prevent_db_queries' ) && ! empty( $attachment_id ) ) { 1254 1269 if ( \is_array( $attachment_id ) ) { 1255 1270 $attachment_id = \intval( \array_pop( $attachment_id ) ); … … 1369 1384 } 1370 1385 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 ) ) { 1372 1390 $this->debug_message( 'preventing resize' ); 1373 1391 $args = array(); … … 1433 1451 } 1434 1452 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 1453 1453 // Check if content width pushed the respimg sizes attribute too far down. 1454 1454 if ( ! empty( $constrain_width ) && (int) $constrain_width !== (int) $content_width ) { … … 1470 1470 } 1471 1471 1472 1473 1474 1475 1476 1477 1478 1479 1480 1481 1482 1483 1484 1472 1485 // If Lazy Load is in use, pass placeholder image through ExactDN. 1473 1486 if ( isset( $placeholder_src ) && $this->validate_image_url( $placeholder_src ) ) { … … 1490 1503 $content = \str_replace( $tag, $new_tag, $content ); 1491 1504 } 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" ); 1494 1507 1495 1508 $args = array(); … … 1523 1536 } 1524 1537 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 }1552 1538 if ( $new_tag && $new_tag !== $tag ) { 1553 1539 // Replace original tag with modified version. … … 1639 1625 1640 1626 // 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' ) ); 1642 1628 foreach ( $element_types as $element_type ) { 1643 1629 $content = $this->filter_bg_images( $content, $element_type ); … … 1646 1632 $content = $this->filter_prz_thumb( $content ); 1647 1633 $content = $this->filter_style_blocks( $content ); 1634 1648 1635 if ( $this->get_option( 'exactdn_all_the_things' ) ) { 1649 1636 $this->debug_message( 'rewriting all other wp-content/wp-includes urls' ); … … 1653 1640 $this->debug_message( 'done parsing page' ); 1654 1641 $this->filtering_the_content = false; 1642 1643 1644 1645 1646 1647 1648 1655 1649 1656 1650 $elapsed_time = \microtime( true ) - $started; … … 1865 1859 $args['w'] = \apply_filters( 'exactdn_content_bgimage_width', $content_width, $bg_image_url ); 1866 1860 } 1861 1862 1863 1867 1864 if ( ( isset( $args['w'] ) && empty( $args['w'] ) ) || ! $bg_autoscale ) { 1868 1865 unset( $args['w'] ); … … 1871 1868 if ( $bg_image_url !== $exactdn_bg_image_url ) { 1872 1869 $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 1873 1884 } 1874 1885 } … … 1962 1973 1963 1974 /** 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 1964 2047 * Parse page content looking for wp-content/wp-includes URLs to rewrite. 1965 2048 * … … 2005 2088 } 2006 2089 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 2007 2134 } 2008 2135 … … 2965 3092 public function maybe_smart_crop( $args, $attachment_id, $meta = false ) { 2966 3093 $this->debug_message( '<b>' . __METHOD__ . '()</b>' ); 3094 3095 3096 2967 3097 if ( ! empty( $args['crop'] ) ) { 2968 3098 $this->debug_message( 'already cropped' ); … … 3524 3654 3525 3655 /** 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 3526 3762 * Handle images in Spotlight's Instagram response/endpoint. 3527 3763 * -
easy-image-optimizer/trunk/classes/class-lazy-load.php
r2969931 r3055524 375 375 if ( ! \apply_filters( 'eio_do_lazyload', true, $this->request_uri ) ) { 376 376 return $buffer; 377 378 379 380 377 381 } 378 382 … … 775 779 if ( $this->is_iterable( $bg_image_urls ) ) { 776 780 $this->debug_message( 'bg-image urls found' ); 781 782 783 784 785 786 787 788 789 790 791 777 792 $new_style = $this->remove_background_image( $style ); 778 793 if ( $style !== $new_style ) { … … 1017 1032 } 1018 1033 } 1034 1035 1036 1037 1038 1039 1040 1041 1019 1042 return true; 1020 1043 } -
easy-image-optimizer/trunk/classes/class-page-parser.php
r2963296 r3055524 41 41 */ 42 42 protected $parsing_exactdn = false; 43 44 45 46 47 48 49 43 50 44 51 /** … … 164 171 165 172 /** 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 166 207 * Match all elements by tag name in a block of HTML. Does not retrieve contents or closing tags. 167 208 * … … 172 213 public function get_elements_from_html( $content, $tag_name ) { 173 214 $this->debug_message( '<b>' . __METHOD__ . '()</b>' ); 174 if ( ! \ctype_alpha( $tag_name) ) {215 if ( ! \ctype_alpha( ) ) { 175 216 return array(); 176 217 } -
easy-image-optimizer/trunk/easy-image-optimizer.php
r3035873 r3055524 14 14 Description: Easily speed up your website to better connect with your visitors. Properly compress and size/scale images. Includes lazy load and WebP auto-convert. 15 15 Author: Exactly WWW 16 Version: 3. 6.016 Version: 3..0 17 17 Requires at least: 6.2 18 18 Requires PHP: 7.4 … … 30 30 add_action( 'admin_notices', 'easyio_unsupported_php' ); 31 31 } elseif ( false === strpos( add_query_arg( '', '' ), 'easyio_disable=1' ) ) { 32 define( 'EASYIO_VERSION', 3 60 );32 define( 'EASYIO_VERSION', 30 ); 33 33 34 34 /** -
easy-image-optimizer/trunk/readme.txt
r3035873 r3055524 3 3 Tags: optimize, image, resize, webp, lazy load, convert, compress, scale 4 4 Requires at least: 6.2 5 Tested up to: 6. 45 Tested up to: 6. 6 6 Requires PHP: 7.4 7 Stable tag: 3. 6.07 Stable tag: 3..0 8 8 License: GPLv3 9 9 … … 57 57 58 58 * 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 59 68 60 69 = 3.6.0 =
Note: See TracChangeset
for help on using the changeset viewer.