Description
Feature description
Users often reported structured data errors related to publisher.logo.url
being empty. For this reason, we provide a fallback image amp-page-fallback-wordpress-publisher-logo.png
. Nevertheless, this is not ideal.
There should be a Site Health test that warns administrators when amp_get_publisher_logo()
returns an image other than the fallback of amp-page-fallback-wordpress-publisher-logo.png
.
This field is empty for sites that do not have a Custom Logo or Site Icon set in the Customizer, or a custom amp_site_icon_url
filter was not used. See logic here:
amp-wp/includes/amp-helper-functions.php
Lines 1593 to 1641 in afab6f0
The amp_get_publisher_logo()
should perhaps take a $default
arg that is set to amp-page-fallback-wordpress-publisher-logo.png
when null
. Then we can use this in the Site Health test by passing false
to determine if a publisher logo is defined.
Do not alter or remove anything below. The following sections will be managed by moderators only.