Skip to content

AMP: Jetpack now always hides the admin bar #15353

@jeherve

Description

@jeherve

This was introduced in #14840.

I do not think this is right. It is causing the admin bar to be hidden on all AMP pages, even when it should be displayed.

In AMP plugin 1.3 we introduced AMP dev mode support to exclude the admin bar from being subject to AMP validation constraints, allowing administrative scripts and styles to work as expected even on AMP pages.

More info: weston.ruter.net/2019/09/24/integrating-with-amp-dev-mode-in-wordpress

-- #14840 (comment)

if the issue is the scripts and styles that the Jetpack Likes module includes, a better way to resolve this I think is to explicitly mark them for AMP dev mode by adding admin-bar as a dependency for the scripts and styles.

Metadata

Metadata

Assignees

Labels

AMP[Pri] High[Type] BugWhen a feature is broken and / or not performing as intended

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions