Skip to content

AMP Standard: Admin menu item no longer shows in older versions of WP #6793

Closed
@aaemnnosttv

Description

@aaemnnosttv

Bug Description

The AMP admin menu item #wp-admin-bar-amp no longer appears in WP versions below 5.6 when using the Standard mode.

Expected Behaviour

I would expect the menu item to be present in WP 4.9+ as it was in previous releases
image

Screenshots

No response

PHP Version

7.4

Plugin Version

2.2.0

AMP plugin template mode

Standard

WordPress Version

4.9 < 5.6

Site Health

`

wp-core

version: 5.5
site_language: en_US
user_language: en_US
timezone: +00:00
permalink: /index.php/%year%/%monthnum%/%day%/%postname%/
https_status: true
user_registration: 0
blog_public: 1
default_comment_status: open
multisite: false
user_count: 1
dotorg_communication: true

wp-paths-sizes

wordpress_path: /home/zivowikilukebano/webapps/xikela
wordpress_size: 44.44 MB (46600588 bytes)
uploads_path: /home/zivowikilukebano/webapps/xikela/wp-content/uploads
uploads_size: 2.65 MB (2774215 bytes)
themes_path: /home/zivowikilukebano/webapps/xikela/wp-content/themes
themes_size: 9.37 MB (9820981 bytes)
plugins_path: /home/zivowikilukebano/webapps/xikela/wp-content/plugins
plugins_size: 22.40 MB (23485035 bytes)
database_size: 6.61 MB (6930432 bytes)
total_size: 85.46 MB (89611251 bytes)

wp-active-theme

name: Twenty Twenty (twentytwenty)
version: 1.8
author: the WordPress team
author_website: https://wordpress.org/
parent_theme: none
theme_features: core-block-patterns, automatic-feed-links, custom-background, post-thumbnails, custom-logo, title-tag, html5, align-wide, responsive-embeds, customize-selective-refresh-widgets, editor-color-palette, editor-font-sizes, editor-styles, amp, widgets, menus, editor-style
theme_path: /home/zivowikilukebano/webapps/xikela/wp-content/themes/twentytwenty
auto_update: Disabled

wp-themes-inactive (5)

Twenty Fifteen: version: 1.9, author: the WordPress team (latest version: 3.0),Auto-updates disabled
Twenty Nineteen: version: 2.1, author: the WordPress team,Auto-updates disabled
Twenty Seventeen: version: 1.4, author: the WordPress team (latest version: 2.8),Auto-updates disabled
Twenty Sixteen: version: 1.4, author: the WordPress team (latest version: 2.5),Auto-updates disabled
Twenty Twenty-One: version: 1.4, author: the WordPress team,Auto-updates disabled

wp-plugins-active (3)

AMP: version: 2.2.0, author: AMP Project Contributors, Auto-updates disabled
WP Downgrade | Specific Core Version: version: 1.2.2, author: Reisetiger, Auto-updates disabled
WP Rollback: version: 1.7.1, author: Impress.org, Auto-updates disabled

wp-plugins-inactive (5)

Akismet Anti-Spam: version: 4.0.1, author: Automattic (latest version: 4.2.1), Auto-updates disabled
Gutenberg: version: 4.9.0, author: Gutenberg Team, Auto-updates disabled
Site Kit by Google: version: 1.48.0, author: Google, Auto-updates disabled
Site Kit by Google Dev Settings: version: 0.4.0, author: Google, Auto-updates disabled
Site Kit by Google Tester: version: 1.6.0, author: Google, Auto-updates disabled

wp-media

image_editor: WP_Image_Editor_GD
imagick_module_version: Not available
imagemagick_version: Not available
file_uploads: File uploads is turned off
post_max_size: 256M
upload_max_filesize: 256M
max_effective_size: 256 MB
max_file_uploads: 20
gd_version: bundled (2.1.0 compatible)
ghostscript_version: unknown

wp-server

server_architecture: Linux 5.4.0-88-generic x86_64
httpd_software: Apache/2.4.51 (Unix) OpenSSL/1.1.1f
php_version: 7.4.26 64bit
php_sapi: fpm-fcgi
max_input_variables: 1000
time_limit: 30
memory_limit: 256M
max_input_time: 60
upload_max_size: 256M
php_post_max_size: 256M
curl_version: 7.68.0 OpenSSL/1.1.1f
suhosin: false
imagick_availability: false
pretty_permalinks: true

wp-database

extension: mysqli
server_version: 10.5.13-MariaDB-1:10.5.13+maria~focal
client_version: mysqlnd 7.4.26

wp-constants

WP_HOME: undefined
WP_SITEURL: undefined
WP_CONTENT_DIR: /home/zivowikilukebano/webapps/xikela/wp-content
WP_PLUGIN_DIR: /home/zivowikilukebano/webapps/xikela/wp-content/plugins
WP_MAX_MEMORY_LIMIT: 256M
WP_DEBUG: false
WP_DEBUG_DISPLAY: true
WP_DEBUG_LOG: false
SCRIPT_DEBUG: false
WP_CACHE: false
CONCATENATE_SCRIPTS: undefined
COMPRESS_SCRIPTS: undefined
COMPRESS_CSS: undefined
WP_LOCAL_DEV: undefined
DB_CHARSET: utf8
DB_COLLATE: undefined

wp-filesystem

wordpress: writable
wp-content: writable
uploads: writable
plugins: writable
themes: writable

amp_wp

amp_slug_query_var: amp
amp_slug_defined_late: false
amp_mode_enabled: standard
amp_reader_theme: legacy
amp_templates_enabled: post, page, is_singular, is_home, is_archive, is_author, is_date, is_search, is_404, is_category, is_tag
amp_serve_all_templates: true
amp_css_transient_caching_disabled: false
amp_css_transient_caching_threshold: 5000 transients per day
amp_css_transient_caching_sampling_range: 14 days
amp_css_transient_caching_transient_count: 41
amp_css_transient_caching_time_series:
20211216: 0
amp_libxml_version: 2.9.10

`

Gutenberg Version

No response

OS(s) Affected

No response

Browser(s) Affected

No response

Device(s) Affected

No response

Acceptance Criteria

No response

Implementation Brief

No response

QA Testing Instructions

No response

Demo

No response

Changelog Entry

No response

Metadata

Metadata

Assignees

Labels

BugSomething isn't workingP2Low priority

Type

No type

Projects

Status

In Progress

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions