Skip to content

Commit eed630c

Browse files
Merge pull request #4 from eduardovillao/wp-6.5-compatibility
Support to wp 6.5
2 parents 9099eeb + 775ac0d commit eed630c

File tree

2 files changed

+16
-18
lines changed

2 files changed

+16
-18
lines changed

add-class-to-elementor-image.php

+4-10
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@
55
* Description: Simple plugin to add custom CSS class to Elementor image.
66
* Author: EduardoVillao.me
77
* Author URI: https://eduardovillao.me/
8-
* Version: 1.3
9-
* Requires at least: 5.4
8+
* Version: 1.3.1
9+
* Requires at least: 5.5
1010
* Requires PHP: 7.0
1111
* Text Domain: add-class-to-elementor-image
1212
* License: GPL-2.0+
@@ -81,8 +81,7 @@ public static function instance() {
8181
* @since 1.6
8282
*/
8383
public function __clone() {
84-
// Cloning instances of the class is forbidden.
85-
_doing_it_wrong( __FUNCTION__, esc_html__( 'Something went wrong.', 'add-class-to-elementor-image' ), '1.3' );
84+
_doing_it_wrong( __FUNCTION__, esc_html__( 'Something went wrong.', 'add-class-to-elementor-image' ), '1.3.1' );
8685
}
8786

8887
/**
@@ -92,8 +91,7 @@ public function __clone() {
9291
* @since 1.6
9392
*/
9493
public function __wakeup() {
95-
// Unserializing instances of the class is forbidden.
96-
_doing_it_wrong( __FUNCTION__, esc_html__( 'Something went wrong.', 'add-class-to-elementor-image' ), '1.3' );
94+
_doing_it_wrong( __FUNCTION__, esc_html__( 'Something went wrong.', 'add-class-to-elementor-image' ), '1.3.1' );
9795
}
9896

9997
/**
@@ -106,7 +104,6 @@ public function __wakeup() {
106104
* @access private
107105
*/
108106
private function __construct() {
109-
110107
add_action( 'plugins_loaded', [ $this, 'add_elementor_mod' ] );
111108
}
112109

@@ -120,7 +117,6 @@ private function __construct() {
120117
* @access public
121118
*/
122119
public function add_elementor_mod() {
123-
124120
if ( ! did_action( 'elementor/loaded' ) ) {
125121
return;
126122
}
@@ -141,7 +137,6 @@ public function add_elementor_mod() {
141137
* @access public
142138
*/
143139
public function add_elementor_pro_mod() {
144-
145140
if ( ! did_action( 'elementor_pro/init' ) ) {
146141
return;
147142
}
@@ -159,7 +154,6 @@ public function add_elementor_pro_mod() {
159154
* @access public
160155
*/
161156
public function add_class_control( $image, $args) {
162-
163157
$image->add_control(
164158
'cei_image_custom_class',
165159
[

readme.txt

+12-8
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@
22
Contributors: EVCODE
33
Donate link: https://eduardovillao.me/
44
Tags: elementor, custom class, elementor pro, image class, lazy load
5-
Requires at least: 5.4
6-
Tested up to: 6.3
7-
Stable tag: 1.3
5+
Requires at least: 5.5
6+
Tested up to: 6.5
7+
Stable tag: 1.3.1
88
Requires PHP: 7.0
99
License: GPLv2License
1010
URI:https://www.gnu.org/licenses/gpl-2.0.html
@@ -43,18 +43,22 @@ Please, send to me: [[email protected]](mailto:[email protected])
4343

4444
== Changelog ==
4545

46+
= 1.3.1 =
47+
* Changed: compatibility with WordPress 6.5.
48+
* Changed: code improvements.
49+
4650
= 1.3 =
47-
Fix: do not workin on the latest versions of Elementor.
48-
Changed: Compatibility with WordPress 6.3.
51+
* Fix: do not working on the latest versions of Elementor.
52+
* Changed: Compatibility with WordPress 6.3.
4953

5054
= 1.2.4 =
51-
Changed: Compatibility with WordPress 6.2.
55+
* Changed: Compatibility with WordPress 6.2.
5256

5357
= 1.2.3 =
54-
Changed: Compatibility with WordPress 6.1.
58+
* Changed: Compatibility with WordPress 6.1.
5559

5660
= 1.2.2 =
57-
Changed: Compatibility with WordPress 6.0.
61+
* Changed: Compatibility with WordPress 6.0.
5862

5963
= 1.2.1 =
6064
* Fix php notice "Undefined index: cei_image_custom_class" in some cases.

0 commit comments

Comments
 (0)