diff options
author | 2018-07-12 10:41:06 -0400 | |
---|---|---|
committer | 2018-07-12 10:41:06 -0400 | |
commit | d38ad7e645bf525ba52f98eb3ac3b911569ba8ad (patch) | |
tree | c71f455934a7ad823422c9eb17e08d029d2c7612 /plugins/jetpack/json-endpoints/jetpack | |
parent | Update akismet 4.0.8 (diff) | |
download | blogs-gentoo-d38ad7e645bf525ba52f98eb3ac3b911569ba8ad.tar.gz blogs-gentoo-d38ad7e645bf525ba52f98eb3ac3b911569ba8ad.tar.bz2 blogs-gentoo-d38ad7e645bf525ba52f98eb3ac3b911569ba8ad.zip |
Update jetpack 6.3.2
Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
Diffstat (limited to 'plugins/jetpack/json-endpoints/jetpack')
-rw-r--r-- | plugins/jetpack/json-endpoints/jetpack/class.jetpack-json-api-plugins-endpoint.php | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/plugins/jetpack/json-endpoints/jetpack/class.jetpack-json-api-plugins-endpoint.php b/plugins/jetpack/json-endpoints/jetpack/class.jetpack-json-api-plugins-endpoint.php index daa9eab3..1df4fe66 100644 --- a/plugins/jetpack/json-endpoints/jetpack/class.jetpack-json-api-plugins-endpoint.php +++ b/plugins/jetpack/json-endpoints/jetpack/class.jetpack-json-api-plugins-endpoint.php @@ -136,7 +136,10 @@ abstract class Jetpack_JSON_API_Plugins_Endpoint extends Jetpack_JSON_API_Endpoi $plugin['network'] = $plugin_data['Network']; $plugin['update'] = $this->get_plugin_updates( $plugin_file ); $plugin['next_autoupdate'] = date( 'Y-m-d H:i:s', wp_next_scheduled( 'wp_maybe_auto_update' ) ); - $plugin['action_links'] = $this->get_plugin_action_links( $plugin_file ); + $action_link = $this->get_plugin_action_links( $plugin_file ); + if ( ! empty( $action_link ) ) { + $plugin['action_links'] = $action_link; + } $autoupdate = in_array( $plugin_file, Jetpack_Options::get_option( 'autoupdate_plugins', array() ) ); $plugin['autoupdate'] = $autoupdate; @@ -165,7 +168,10 @@ abstract class Jetpack_JSON_API_Plugins_Endpoint extends Jetpack_JSON_API_Endpoi $plugin['author_url'] = $plugin_data['AuthorURI']; $plugin['network'] = $plugin_data['Network']; $plugin['update'] = $this->get_plugin_updates( $plugin_file ); - $plugin['action_links'] = $this->get_plugin_action_links( $plugin_file ); + $action_link = $this->get_plugin_action_links( $plugin_file ); + if ( ! empty( $action_link ) ) { + $plugin['action_links'] = $action_link; + } $autoupdate = $this->plugin_has_autoupdates_enabled( $plugin_file ); $plugin['autoupdate'] = $autoupdate; |