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/sync/class.jetpack-sync-module-constants.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/sync/class.jetpack-sync-module-constants.php')
-rw-r--r-- | plugins/jetpack/sync/class.jetpack-sync-module-constants.php | 13 |
1 files changed, 4 insertions, 9 deletions
diff --git a/plugins/jetpack/sync/class.jetpack-sync-module-constants.php b/plugins/jetpack/sync/class.jetpack-sync-module-constants.php index c473f19f..ae9ca127 100644 --- a/plugins/jetpack/sync/class.jetpack-sync-module-constants.php +++ b/plugins/jetpack/sync/class.jetpack-sync-module-constants.php @@ -10,12 +10,6 @@ class Jetpack_Sync_Module_Constants extends Jetpack_Sync_Module { return 'constants'; } - private $constants_whitelist; - - public function set_defaults() { - $this->constants_whitelist = Jetpack_Sync_Defaults::$default_constants_whitelist; - } - public function init_listeners( $callable ) { add_action( 'jetpack_sync_constant', $callable, 10, 2 ); } @@ -41,7 +35,7 @@ class Jetpack_Sync_Module_Constants extends Jetpack_Sync_Module { } function get_constants_whitelist() { - return $this->constants_whitelist; + return Jetpack_Sync_Defaults::get_constants_whitelist(); } function enqueue_full_sync_actions( $config, $max_items_to_enqueue, $state ) { @@ -103,9 +97,10 @@ class Jetpack_Sync_Module_Constants extends Jetpack_Sync_Module { // public so that we don't have to store an option for each constant function get_all_constants() { + $constants_whitelist = $this->get_constants_whitelist(); return array_combine( - $this->constants_whitelist, - array_map( array( $this, 'get_constant' ), $this->constants_whitelist ) + $constants_whitelist, + array_map( array( $this, 'get_constant' ), $constants_whitelist ) ); } |