summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnthony G. Basile <blueness@gentoo.org>2017-04-16 04:35:35 -0400
committerAnthony G. Basile <blueness@gentoo.org>2017-04-16 04:35:35 -0400
commit38a805d24a890dea4b5e90851693afb4e2041c9e (patch)
tree5f4b08ad64e6750936303d18abc370851e0db260 /plugins/jetpack/sync/class.jetpack-sync-module-callables.php
parentUpdate plugin wordpress-mobile-pack 2.2.9 (diff)
downloadblogs-gentoo-38a805d24a890dea4b5e90851693afb4e2041c9e.tar.gz
blogs-gentoo-38a805d24a890dea4b5e90851693afb4e2041c9e.tar.bz2
blogs-gentoo-38a805d24a890dea4b5e90851693afb4e2041c9e.zip
Update jetpack 4.8.2
Diffstat (limited to 'plugins/jetpack/sync/class.jetpack-sync-module-callables.php')
-rw-r--r--plugins/jetpack/sync/class.jetpack-sync-module-callables.php8
1 files changed, 4 insertions, 4 deletions
diff --git a/plugins/jetpack/sync/class.jetpack-sync-module-callables.php b/plugins/jetpack/sync/class.jetpack-sync-module-callables.php
index 90d9c1fd..b0565213 100644
--- a/plugins/jetpack/sync/class.jetpack-sync-module-callables.php
+++ b/plugins/jetpack/sync/class.jetpack-sync-module-callables.php
@@ -14,9 +14,9 @@ class Jetpack_Sync_Module_Callables extends Jetpack_Sync_Module {
public function set_defaults() {
if ( is_multisite() ) {
- $this->callable_whitelist = array_merge( Jetpack_Sync_Defaults::$default_callable_whitelist, Jetpack_Sync_Defaults::$default_multisite_callable_whitelist );
+ $this->callable_whitelist = array_merge( Jetpack_Sync_Defaults::get_callable_whitelist(), Jetpack_Sync_Defaults::get_multisite_callable_whitelist() );
} else {
- $this->callable_whitelist = Jetpack_Sync_Defaults::$default_callable_whitelist;
+ $this->callable_whitelist = Jetpack_Sync_Defaults::get_callable_whitelist();
}
}
@@ -77,8 +77,8 @@ class Jetpack_Sync_Module_Callables extends Jetpack_Sync_Module {
$current_user_id = get_current_user_id();
wp_set_current_user( Jetpack_Options::get_option( 'master_user' ) );
$callables = array_combine(
- array_keys( $this->callable_whitelist ),
- array_map( array( $this, 'get_callable' ), array_values( $this->callable_whitelist ) )
+ array_keys( $this->get_callable_whitelist() ),
+ array_map( array( $this, 'get_callable' ), array_values( $this->get_callable_whitelist() ) )
);
wp_set_current_user( $current_user_id );