diff options
author | Anthony G. Basile <blueness@gentoo.org> | 2019-01-01 22:18:11 -0500 |
---|---|---|
committer | Anthony G. Basile <blueness@gentoo.org> | 2019-01-01 22:18:11 -0500 |
commit | 018bd442ec1e04ba78a6628763414eb60b359398 (patch) | |
tree | 448cde462397af33e5a964ba5d0803b73c65040e /plugins/jetpack/sal/class.json-api-site-base.php | |
parent | Update easy-table 1.8 (diff) | |
download | blogs-gentoo-018bd442ec1e04ba78a6628763414eb60b359398.tar.gz blogs-gentoo-018bd442ec1e04ba78a6628763414eb60b359398.tar.bz2 blogs-gentoo-018bd442ec1e04ba78a6628763414eb60b359398.zip |
Update jetpack 6.8.1
Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
Diffstat (limited to 'plugins/jetpack/sal/class.json-api-site-base.php')
-rw-r--r-- | plugins/jetpack/sal/class.json-api-site-base.php | 37 |
1 files changed, 30 insertions, 7 deletions
diff --git a/plugins/jetpack/sal/class.json-api-site-base.php b/plugins/jetpack/sal/class.json-api-site-base.php index cef41865..e01979e6 100644 --- a/plugins/jetpack/sal/class.json-api-site-base.php +++ b/plugins/jetpack/sal/class.json-api-site-base.php @@ -108,7 +108,21 @@ abstract class SAL_Site { abstract protected function is_a8c_publication( $post_id ); public function is_automated_transfer() { - return false; + /** + * Filter if a site is an automated-transfer site. + * + * @module json-api + * + * @since 6.4.0 + * + * @param bool is_automated_transfer( $this->blog_id ) + * @param int $blog_id Blog identifier. + */ + return apply_filters( + 'jetpack_site_automated_transfer', + false, + $this->blog_id + ); } public function is_wpcom_store() { @@ -580,12 +594,21 @@ abstract class SAL_Site { } function has_pending_automated_transfer() { - if ( defined( 'IS_WPCOM' ) && IS_WPCOM ) { - require_once( WP_CONTENT_DIR . '/lib/automated-transfer/utils.php' ); - return A8C\Automated_Transfer\Utils\has_site_pending_automated_transfer( $this->blog_id ); - } - - return false; + /** + * Filter if a site is in pending automated transfer state. + * + * @module json-api + * + * @since 6.4.0 + * + * @param bool has_site_pending_automated_transfer( $this->blog_id ) + * @param int $blog_id Blog identifier. + */ + return apply_filters( + 'jetpack_site_pending_automated_transfer', + false, + $this->blog_id + ); } function signup_is_store() { |