[wp-trac] [WordPress Trac] #32326: Improve Support for Structured Data

WordPress Trac noreply at wordpress.org
Sat May 9 14:50:02 UTC 2015


#32326: Improve Support for Structured Data
-------------------------+-----------------------------
 Reporter:  dshanske     |      Owner:
     Type:  enhancement  |     Status:  new
 Priority:  normal       |  Milestone:  Awaiting Review
Component:  Themes       |    Version:
 Severity:  normal       |   Keywords:
  Focuses:               |
-------------------------+-----------------------------
 There has been discussion before on various types of structured data.
 WordPress has limited support for microformats and it is a long-standing
 part of WordPress.

 New standards for structured data continue to appear, and there have been
 some proposals in support. However, different people want support for
 different things. I think there is a solution with more general appeal.

 body_class and post_class add classes to the body and post containers.

 What if they were superseded by two new functions with a broader scope?

 body_attributes and post_attributes which could add any attribute from a
 provided array into the body and post containers? Most of the structured
 data works on an attribute of the tags it is attached to, be it class or
 property or otherwise.

 The body_class and post_classes continue to work as they always have.

 Newer themes could use the attributes function, which could remove hentry
 adding by default, for example, and transfer control of structured data
 back to the theme.

 There is also the possibility, if it isn't going too far, of adding a
 similar function for the content container.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/32326>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list