Skip to content

Site scan fail with custom post type #6855

Closed
@fellyph

Description

@fellyph

Bug Description

When the user selects only a custom post type to be served by AMP, at the plugin's settings the site scan fails. To reproduce this behavior, I have created a simple custom post type and selected only this CPT to be served by AMP. The result is, the site scan started to fail because wasn't able to find AMP URLs.

Expected Behaviour

If the user selects a specific custom post type, the site scan should be able to point to the new URLs

Screenshots

Selecting Custom post type
Screen Shot 2022-01-25 at 16 30 52

Site scan results
Screen Shot 2022-01-25 at 16 29 44

Site scan URLs not available
Screen Shot 2022-01-25 at 16 33 01

PHP Version

7.4

Plugin Version

2.2

AMP plugin template mode

Reader

WordPress Version

5.8.3

Site Health

No response

Gutenberg Version

No response

OS(s) Affected

Mac

Browser(s) Affected

Chrome

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 workingChangeloggedWhether the issue/PR has been added to release notes.Site Scanning

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions