Skip to content

Commit f5333e5

Browse files
committed
AMP: allow the display of the admin bar in AMP views.
Fixes #15353 The admin bar can be used in AMP views since AMP 1.3.1, thanks to AMP Dev mode.
1 parent 17601a5 commit f5333e5

File tree

1 file changed

+1
-11
lines changed

1 file changed

+1
-11
lines changed

3rd-party/class.jetpack-amp-support.php

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -53,20 +53,10 @@ public static function init() {
5353
// Sync the amp-options.
5454
add_filter( 'jetpack_options_whitelist', array( 'Jetpack_AMP_Support', 'filter_jetpack_options_whitelist' ) );
5555

56-
// Show admin bar.
57-
add_filter( 'show_admin_bar', array( 'Jetpack_AMP_Support', 'show_admin_bar' ) );
56+
// Disable Comment Likes.
5857
add_filter( 'jetpack_comment_likes_enabled', array( 'Jetpack_AMP_Support', 'comment_likes_enabled' ) );
5958
}
6059

61-
/**
62-
* Disable the admin bar on AMP views.
63-
*
64-
* @param Whether bool $show the admin bar should be shown. Default false.
65-
*/
66-
public static function show_admin_bar( $show ) {
67-
return $show && ! self::is_amp_request();
68-
}
69-
7060
/**
7161
* Disable the Comment Likes feature on AMP views.
7262
*

0 commit comments

Comments
 (0)