diff options
author | Anthony G. Basile <blueness@gentoo.org> | 2020-01-06 14:32:30 -0500 |
---|---|---|
committer | Anthony G. Basile <blueness@gentoo.org> | 2020-01-06 14:32:30 -0500 |
commit | 10ef81bf85ad0a4bad0d204838e14c99ca2526f7 (patch) | |
tree | b4bb36a326d41de12d1a6181d2a2baf34696ac24 /plugins/jetpack/modules/masterbar.php | |
parent | Updating script for Update (diff) | |
download | blogs-gentoo-10ef81bf85ad0a4bad0d204838e14c99ca2526f7.tar.gz blogs-gentoo-10ef81bf85ad0a4bad0d204838e14c99ca2526f7.tar.bz2 blogs-gentoo-10ef81bf85ad0a4bad0d204838e14c99ca2526f7.zip |
Update jetpack 8.0
Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
Diffstat (limited to 'plugins/jetpack/modules/masterbar.php')
-rw-r--r-- | plugins/jetpack/modules/masterbar.php | 12 |
1 files changed, 1 insertions, 11 deletions
diff --git a/plugins/jetpack/modules/masterbar.php b/plugins/jetpack/modules/masterbar.php index 8efeae3e..aa322ec1 100644 --- a/plugins/jetpack/modules/masterbar.php +++ b/plugins/jetpack/modules/masterbar.php @@ -13,14 +13,4 @@ require dirname( __FILE__ ) . '/masterbar/masterbar.php'; -// In order to be able to tell if it's an AMP request or not we have to hook into parse_query at a later priority. -add_action( 'admin_bar_init', 'jetpack_initialize_masterbar', 99 ); - -/** - * Initializes the Masterbar in case the request is not AMP. - */ -function jetpack_initialize_masterbar() { - if ( ! Jetpack_AMP_Support::is_amp_request() ) { - new A8C_WPCOM_Masterbar(); - } -} +new A8C_WPCOM_Masterbar(); |