5
5
* Description: Simple plugin to add custom CSS class to Elementor image.
6
6
* Author: EduardoVillao.me
7
7
* 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
10
10
* Requires PHP: 7.0
11
11
* Text Domain: add-class-to-elementor-image
12
12
* License: GPL-2.0+
@@ -81,8 +81,7 @@ public static function instance() {
81
81
* @since 1.6
82
82
*/
83
83
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 ' );
86
85
}
87
86
88
87
/**
@@ -92,8 +91,7 @@ public function __clone() {
92
91
* @since 1.6
93
92
*/
94
93
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 ' );
97
95
}
98
96
99
97
/**
@@ -106,7 +104,6 @@ public function __wakeup() {
106
104
* @access private
107
105
*/
108
106
private function __construct () {
109
-
110
107
add_action ( 'plugins_loaded ' , [ $ this , 'add_elementor_mod ' ] );
111
108
}
112
109
@@ -120,7 +117,6 @@ private function __construct() {
120
117
* @access public
121
118
*/
122
119
public function add_elementor_mod () {
123
-
124
120
if ( ! did_action ( 'elementor/loaded ' ) ) {
125
121
return ;
126
122
}
@@ -141,7 +137,6 @@ public function add_elementor_mod() {
141
137
* @access public
142
138
*/
143
139
public function add_elementor_pro_mod () {
144
-
145
140
if ( ! did_action ( 'elementor_pro/init ' ) ) {
146
141
return ;
147
142
}
@@ -159,7 +154,6 @@ public function add_elementor_pro_mod() {
159
154
* @access public
160
155
*/
161
156
public function add_class_control ( $ image , $ args ) {
162
-
163
157
$ image ->add_control (
164
158
'cei_image_custom_class ' ,
165
159
[
0 commit comments