Skip to content

Commit

Permalink
v1.0.3 | 2021-11-11 | Tested up to WordPress 5.8.2 | Changed double q…
Browse files Browse the repository at this point in the history
…uotation marks to single quotation marks to meet WP coding standards
  • Loading branch information
seezee committed Nov 16, 2021
1 parent 74caee5 commit fb51db6
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 8 deletions.
5 changes: 5 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,11 @@ node*
vendor*
# ignore all . files and . folders
.*
/css*
/sass*
/favicons*
package.json*
gulpfile.js
# Don't ignore .gitignore (this file)
# This is just for verbosity, you can leave it out if
# .gitignore is already tracked or if you use -f to
Expand Down
4 changes: 2 additions & 2 deletions lazy.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,9 @@ function mmp_lazy( $html ) {
* @return array (maybe) filtered gallery image tag attributes.
*/
function mmp_filter_gallery_img_atts( $atts, $attachment ) {
$atts['loading'] = "lazy";
$atts['loading'] = 'lazy';

return $atts;
}

add_filter( 'wp_get_attachment_image_attributes', 'mmp_filter_gallery_img_atts', 10, 2 );
add_filter( 'wp_get_attachment_image_attributes', 'mmp_filter_gallery_img_atts', 10, 2 );
18 changes: 12 additions & 6 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@ Contributors: seezee
Donate link: https://messengerwebdesign.com/donate
Tags: wordpress, filter, images, performance, lazy load
Requires at least: 3.9
Tested up to: 5.2.2
Tested up to: 5.8.2
Requires PHP: 7.0
Stable tag: 1.0.2
Stable tag: 1.0.3
License: GNUv3 or later
License URI: https://www.gnu.org/licenses/gpl-3.0.html

Expand Down Expand Up @@ -40,6 +40,11 @@ Feel free to send a donation to my [Paypal account](https://paypal.me/messengerw

== Changelog ==

= 1.0.3 =
* 2021-11-11
* Tested up to WordPress 5.8.2
* Changed double quotation marks to single quotation marks to meet WP coding standards

= 1.0.2 =
* 2012-09-06
* Clarified usage option one in installation instructions
Expand All @@ -51,11 +56,12 @@ Feel free to send a donation to my [Paypal account](https://paypal.me/messengerw
= 1.0.0 =
* 2012-08-22
* Initial release

== Upgrade Notice ==

= 1.0.2 =
* 2012-09-06
* Clarified usage option one in installation instructions
= 1.0.3 =
* 2021-11-11
* Tested up to WordPress 5.8.2
* Changed double quotation marks to single quotation marks to meet WP coding standards

[//]: # (REMEMBER to update the Stable tag!)

0 comments on commit fb51db6

Please sign in to comment.