summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/jetpack/sal/class.json-api-site-jetpack.php')
-rw-r--r--plugins/jetpack/sal/class.json-api-site-jetpack.php11
1 files changed, 9 insertions, 2 deletions
diff --git a/plugins/jetpack/sal/class.json-api-site-jetpack.php b/plugins/jetpack/sal/class.json-api-site-jetpack.php
index 16ab5c18..b78ac1b5 100644
--- a/plugins/jetpack/sal/class.json-api-site-jetpack.php
+++ b/plugins/jetpack/sal/class.json-api-site-jetpack.php
@@ -101,8 +101,7 @@ class Jetpack_Site extends Abstract_Jetpack_Site {
}
function has_wordads() {
- // TODO: any way to detect wordads on the site, or does it need to be modified on the way through?
- return false;
+ return Jetpack::is_module_active( 'wordads' );
}
function get_frame_nonce() {
@@ -174,6 +173,14 @@ class Jetpack_Site extends Abstract_Jetpack_Site {
return null;
}
+ function is_connected_site() {
+ return true;
+ }
+
+ function current_user_can( $role ) {
+ return current_user_can( $role );
+ }
+
/**
* Post functions
*/