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.
44The format is based on [ Keep a Changelog] ( http://keepachangelog.com/ )
55and this project adheres to [ Semantic Versioning] ( http://semver.org/ ) .
66
7+ ## 1.3.1 2019-02-06
8+ ### Updated
9+ - Added additional check for object on ` site_transient_update_plugins ` check.
10+
711## 1.3.0.1 2018-07-30
812### Changed
913- 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 22 "name" : " dwnload/wp-rest-api-object-cache" ,
33 "description" : " Enable object caching for WordPress' REST API. Aids in increased response times of your applications endpoints." ,
44 "type" : " wordpress-plugin" ,
5- "version" : " 1.3.0. 1" ,
5+ "version" : " 1.3.1" ,
66 "license" : " MIT" ,
77 "authors" : [
88 {
Original file line number Diff line number Diff line change 44 * Description: Enable object caching for WordPress' REST API. Aids in increased response times of your applications endpoints.
55 * Author: Austin Passy
66 * Author URI: http://github.com/thefrosty
7- * Version: 1.3.0. 1
7+ * Version: 1.3.1
88 * Requires at least: 4.9
99 * Tested up to: 4.9
1010 * Requires PHP: 7.0
2525 }
2626});
2727
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+ }
3432
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