Skip to content

Commit a81fd65

Browse files
committedJan 23, 2025
v0.1.3 :: remove image auto-sizes
1 parent 4379486 commit a81fd65

File tree

4 files changed

+14
-2
lines changed

4 files changed

+14
-2
lines changed
 

‎README.txt

+4
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,10 @@ click on "Create new translation" at the bottom/left of this window.
3131

3232
== Changelog ==
3333

34+
= 0.1.3 =
35+
36+
* Remove Auto Sizes for Lazy Loaded Image in Wordpress (added in WP 6.7)
37+
3438
= 0.1.2 =
3539

3640
* Block Visibility : Define more default settings values and deregister screen_size inline css.

‎core/core.php

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
<?php
2+
3+
// Remove Auto Sizes for Lazy Loaded Image in Wordpress (added in WP 6.7)
4+
// https://make.wordpress.org/core/2024/10/18/auto-sizes-for-lazy-loaded-images-in-wordpress-6-7/
5+
add_filter('wp_img_tag_add_auto_sizes', '__return_false');

‎core/index.php

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
<?php // Silence is golden

‎mill3-wp-utils.php

+4-2
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
* Plugin Name: MILL3 WP Utils
44
* Plugin URI: https://github.com/Mill3/mill3-wp-utils-plugin
55
* Description: MILL3 WP Utils
6-
* Version: 0.1.2
6+
* Version: 0.1.3
77
* Author: MILL3 Studio
88
* Author URI: https://mill3.studio/
99
* Tested up to: 6.6.6
@@ -26,7 +26,7 @@
2626
* Start at version 0.0.1 and use SemVer - https://semver.org
2727
* Rename this for your plugin and update it as you release new versions.
2828
*/
29-
define( 'MILL3_WP_UTILS_VERSION', '0.1.2' );
29+
define( 'MILL3_WP_UTILS_VERSION', '0.1.3' );
3030

3131

3232
/**
@@ -76,6 +76,8 @@
7676
require plugin_dir_path( __FILE__ ) . 'admin/class-html-helper.php';
7777
require plugin_dir_path( __FILE__ ) . 'admin/class-mill3-wp-utils-admin.php';
7878

79+
require plugin_dir_path( __FILE__ ) . 'core/core.php';
80+
7981
require plugin_dir_path( __FILE__ ) . 'components/ai-image-alt/ai-image-alt.php';
8082
require plugin_dir_path( __FILE__ ) . 'components/avatar/avatar.php';
8183
require plugin_dir_path( __FILE__ ) . 'components/block-visibility/block-visibility.php';

0 commit comments

Comments
 (0)
Please sign in to comment.