summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnthony G. Basile <blueness@gentoo.org>2018-07-12 10:41:06 -0400
committerAnthony G. Basile <blueness@gentoo.org>2018-07-12 10:41:06 -0400
commitd38ad7e645bf525ba52f98eb3ac3b911569ba8ad (patch)
treec71f455934a7ad823422c9eb17e08d029d2c7612 /plugins/jetpack/json-endpoints/jetpack
parentUpdate akismet 4.0.8 (diff)
downloadblogs-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.php10
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;