summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnthony G. Basile <blueness@gentoo.org>2018-03-10 19:17:40 -0500
committerAnthony G. Basile <blueness@gentoo.org>2018-03-10 19:17:40 -0500
commit1ede1db458d07b50cfede5937958cb20752df616 (patch)
treeb7484d24649fb07b8a591148ada617b14d8bbc6d /plugins/jetpack/json-endpoints/jetpack/class.jetpack-json-api-modules-endpoint.php
parentUpdate akismet 4.0.3 (diff)
downloadblogs-gentoo-1ede1db458d07b50cfede5937958cb20752df616.tar.gz
blogs-gentoo-1ede1db458d07b50cfede5937958cb20752df616.tar.bz2
blogs-gentoo-1ede1db458d07b50cfede5937958cb20752df616.zip
Update jetpack 5.9
Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
Diffstat (limited to 'plugins/jetpack/json-endpoints/jetpack/class.jetpack-json-api-modules-endpoint.php')
-rw-r--r--plugins/jetpack/json-endpoints/jetpack/class.jetpack-json-api-modules-endpoint.php6
1 files changed, 5 insertions, 1 deletions
diff --git a/plugins/jetpack/json-endpoints/jetpack/class.jetpack-json-api-modules-endpoint.php b/plugins/jetpack/json-endpoints/jetpack/class.jetpack-json-api-modules-endpoint.php
index 79b637b3..2f56f1ee 100644
--- a/plugins/jetpack/json-endpoints/jetpack/class.jetpack-json-api-modules-endpoint.php
+++ b/plugins/jetpack/json-endpoints/jetpack/class.jetpack-json-api-modules-endpoint.php
@@ -18,7 +18,8 @@ abstract class Jetpack_JSON_API_Modules_Endpoint extends Jetpack_JSON_API_Endpoi
'introduced' => '(string) The Jetpack version when the module was introduced.',
'changed' => '(string) The Jetpack version when the module was changed.',
'free' => '(boolean) The module\'s Free or Paid status.',
- 'module_tags' => '(array) The module\'s tags.'
+ 'module_tags' => '(array) The module\'s tags.',
+ 'override' => '(string) The module\'s override. Empty if no override, otherwise \'active\' or \'inactive\'',
);
protected function result() {
@@ -91,6 +92,9 @@ abstract class Jetpack_JSON_API_Modules_Endpoint extends Jetpack_JSON_API_Endpoi
$module['free'] = $module_data['free'];
$module['module_tags'] = $module_data['module_tags'];
+ $overrides_instance = Jetpack_Modules_Overrides::instance();
+ $module['override'] = $overrides_instance->get_module_override( $module_slug );
+
// Fetch the HTML formatted long description
ob_start();
/** This action is documented in class.jetpack-modules-list-table.php */