Closed henrywright closed 8 years ago
I have commented over on that core ticket @henrywright - if this is going to be fixed (that's a point needs to be discussed), I would not want every theme to have to fix this. I'm therefore closing as this should be a core fix if at all.
itemprop="url"
is used in custom logo output. The W3C flags this as a validation error when theitemtype
attribute is missing from wrapping markup.I think something like
<body itemscope itemtype="http://schema.org/WebPage"...
will resolve the problem. Else theitemprop
attribute could be removed fromthe_custom_logo()
output.I've opened a core ticket #37305
EDIT:
I wrote a filter function which will wrap the logo markup and add an
itemtype
:If you add that to functions.php, the validator will pass. I'm happy to submit a PR should you think it's worth adding.