File tree Expand file tree Collapse file tree 3 files changed +14
-2
lines changed Expand file tree Collapse file tree 3 files changed +14
-2
lines changed Original file line number Diff line number Diff line change
1
+ ## 3.3.3
2
+
3
+ * Enhancement: New filter on \Initialize to get the class instance
4
+ * Updated: CS changes
5
+ * Updated: to latest libraries changes
6
+
1
7
## 3.3.2
2
8
3
9
* Enhancement: Tests use a dedicated .env file instead to manipulate the env file (GitHub/GitLab CI updated)
Original file line number Diff line number Diff line change 17
17
"cmb2/cmb2" : " 2.9.*" ,
18
18
"composer/installers" : " 1.x" ,
19
19
"decodelabs/tagged" : " ^0.11.9" ,
20
- "freemius/wordpress-sdk" : " 2.5 .*" ,
20
+ "freemius/wordpress-sdk" : " 2.6 .*" ,
21
21
"inpsyde/assets" : " ^2.8" ,
22
22
"inpsyde/wp-context" : " 1.3.*" ,
23
23
"johnbillion/extended-cpts" : " 4.5.*" ,
Original file line number Diff line number Diff line change @@ -98,7 +98,7 @@ private function load_classes() {
98
98
} catch ( \Throwable $ err ) {
99
99
\do_action ( 'plugin_name_initialize_failed ' , $ err );
100
100
101
- if ( WP_DEBUG ) {
101
+ if ( \ WP_DEBUG ) {
102
102
throw new \Exception ( $ err ->getMessage () ); //phpcs:ignore
103
103
}
104
104
}
@@ -121,6 +121,12 @@ private function initialize_plugin_class( $classtovalidate ) {
121
121
}
122
122
123
123
$ temp = new $ classtovalidate ;
124
+ \add_filter (
125
+ 'plugin_name_instance_ ' . $ classtovalidate ,
126
+ function () use ( $ temp ) {
127
+ return $ temp ;
128
+ }
129
+ );
124
130
125
131
if ( !\method_exists ( $ temp , 'initialize ' ) ) {
126
132
return ;
You can’t perform that action at this time.
0 commit comments