Opened 4 years ago

Closed 4 years ago

#5043 closed defect (bug) (fixed)

Remove all inline microdata from plugin/theme review templates

Reported by: jonoaldersonwp's profile jonoaldersonwp Owned by: coffee2code's profile coffee2code
Milestone: Priority: high
Component: Support Forums Keywords: seo


Review templates, like and, contain inline microdata (such as aggregateRating properties on .review-ratings).

However, almost all of this markup is incorrect and/or outdated.

It should be removed, as a precursor to a follow-up ticket which will define and implement the (correct) JSON-ID approach.

Specifically, the following should be removed from the whole template:

  • Any <meta> tags used inline to house itemprop or similar properties (e.g., <meta itemprop="price" content="0.00" />).
  • Any itemprop properties.
  • Any itemtype properties.
  • Any itemscope properties.

Attachments (1)

5043.diff (2.1 KB) - added by dufresnesteven 4 years ago.
Remove inline microdata

Download all attachments as: .zip

Change History (5)

#1 @dd32
4 years ago

As with #5037 lets define the new JSON-ID format before we remove the existing tags.

#2 @dd32
4 years ago

  • Component changed from General to Support Forums

#3 @jonoaldersonwp
4 years ago

The replacement JSON is much more complex on these templates, to the point that I'm tempted to ice-box it for now until we've done a bunch more housekeeping elsewhere.

Can we just strip the existing stuff for now, as it's throwing errors in GSC and occluding other issues.

4 years ago

Remove inline microdata

#4 @coffee2code
4 years ago

  • Owner set to coffee2code
  • Resolution set to fixed
  • Status changed from new to closed

In 9600:

Support Forums, Ratings: Remove inline microdata from plugin/theme review templates.

Props dufresnesteven, jonoaldersonwp.
Fixes #5043.

Note: See TracTickets for help on using tickets.