diff options
author | Anthony G. Basile <blueness@gentoo.org> | 2017-04-16 04:35:35 -0400 |
---|---|---|
committer | Anthony G. Basile <blueness@gentoo.org> | 2017-04-16 04:35:35 -0400 |
commit | 38a805d24a890dea4b5e90851693afb4e2041c9e (patch) | |
tree | 5f4b08ad64e6750936303d18abc370851e0db260 /plugins/jetpack/functions.global.php | |
parent | Update plugin wordpress-mobile-pack 2.2.9 (diff) | |
download | blogs-gentoo-38a805d24a890dea4b5e90851693afb4e2041c9e.tar.gz blogs-gentoo-38a805d24a890dea4b5e90851693afb4e2041c9e.tar.bz2 blogs-gentoo-38a805d24a890dea4b5e90851693afb4e2041c9e.zip |
Update jetpack 4.8.2
Diffstat (limited to 'plugins/jetpack/functions.global.php')
-rw-r--r-- | plugins/jetpack/functions.global.php | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/plugins/jetpack/functions.global.php b/plugins/jetpack/functions.global.php index 3a08e30c..28aaf90c 100644 --- a/plugins/jetpack/functions.global.php +++ b/plugins/jetpack/functions.global.php @@ -8,3 +8,23 @@ * Please namespace with jetpack_ * Please write docblocks */ + +/** + * Disable direct access. + */ +if ( ! defined( 'ABSPATH' ) ) { + exit; +} + +/** + * Determine if this site is an AT site or not looking first at the 'at_options' option. + * As a fallback, check for presence of wpcomsh plugin to determine if a current site has undergone AT. + * + * @since 4.8.1 + * + * @return bool + */ +function jetpack_is_automated_transfer_site() { + $at_options = get_option( 'at_options', array() ); + return ! empty( $at_options ) || defined( 'WPCOMSH__PLUGIN_FILE' ); +}
\ No newline at end of file |