File tree Expand file tree Collapse file tree 3 files changed +12
-13
lines changed Expand file tree Collapse file tree 3 files changed +12
-13
lines changed Original file line number Diff line number Diff line change @@ -4,6 +4,10 @@ All notable changes to this project will be documented in this file.
4
4
The format is based on [ Keep a Changelog] ( http://keepachangelog.com/ )
5
5
and this project adheres to [ Semantic Versioning] ( http://semver.org/ ) .
6
6
7
+ ## 1.3.1 2019-02-06
8
+ ### Updated
9
+ - Added additional check for object on ` site_transient_update_plugins ` check.
10
+
7
11
## 1.3.0.1 2018-07-30
8
12
### Changed
9
13
- Move the Admin class into an action hook on ` after_setup_theme ` to avoid conditional notices.
Original file line number Diff line number Diff line change 2
2
"name" : " dwnload/wp-rest-api-object-cache" ,
3
3
"description" : " Enable object caching for WordPress' REST API. Aids in increased response times of your applications endpoints." ,
4
4
"type" : " wordpress-plugin" ,
5
- "version" : " 1.3.0. 1" ,
5
+ "version" : " 1.3.1" ,
6
6
"license" : " MIT" ,
7
7
"authors" : [
8
8
{
Original file line number Diff line number Diff line change 4
4
* Description: Enable object caching for WordPress' REST API. Aids in increased response times of your applications endpoints.
5
5
* Author: Austin Passy
6
6
* Author URI: http://github.com/thefrosty
7
- * Version: 1.3.0. 1
7
+ * Version: 1.3.1
8
8
* Requires at least: 4.9
9
9
* Tested up to: 4.9
10
10
* Requires PHP: 7.0
25
25
}
26
26
});
27
27
28
- call_user_func_array (
29
- function ($ filter ) {
30
- add_filter ($ filter , function ($ value ) use ($ filter ) {
31
- if (! empty ($ value ->response ) && array_key_exists (plugin_basename (__FILE__ ), $ value ->response )) {
32
- unset($ value ->response [plugin_basename (__FILE__ )]);
33
- }
28
+ add_filter ('site_transient_update_plugins ' , function ($ value ) {
29
+ if (isset ($ value ) && is_object ($ value ) && (! empty ($ value ->response ) && is_array ($ value ->response ))) {
30
+ unset($ value ->response [@plugin_basename (__FILE__ )]);
31
+ }
34
32
35
- return $ value ;
36
- });
37
- },
38
- ['pre_site_transient_update_plugins ' , 'site_transient_update_plugins ' ]
39
- );
33
+ return $ value ;
34
+ });
You can’t perform that action at this time.
0 commit comments