[wp-trac] [WordPress Trac] #31387: New core API for adding Meta tags to the header
WordPress Trac
noreply at wordpress.org
Mon Feb 6 09:05:48 UTC 2017
#31387: New core API for adding Meta tags to the header
-------------------------------------+------------------------------
Reporter: georgestephanis | Owner: swissspidy
Type: enhancement | Status: assigned
Priority: normal | Milestone: Awaiting Review
Component: General | Version:
Severity: normal | Resolution:
Keywords: 2nd-opinion needs-patch | Focuses: template
-------------------------------------+------------------------------
Changes (by swissspidy):
* owner: => swissspidy
* status: new => assigned
Comment:
Document titles in 4.4 come to mind here:
https://make.wordpress.org/core/2015/10/20/document-title-in-4-4/
Resource Hints as well: https://make.wordpress.org/core/2016/07/06
/resource-hints-in-4-6/
> As for the problem we're trying to solve: multiple meta descriptions,
og:descriptions, etc on a page.
+1
> How to do allow a single plugin to be the authority for a particular set
of meta tags?
Hook priorities?
> How do we define a group of related meta tags, or related groups?
(Why) is that needed?
> How do we keep this backwards compatible, with plugins that will update
to using this new method, with plugins that won’t, and with themes that
may never be updated?
Thinking of `add_theme_support()` here.
> If a plugin provides a certain set of meta tags (say, a plugin providing
OG tags), how do we allow another plugin to selectively override some of
those tags (say, Jetpack providing Photon support for `og:image`)?
My first thought was a simple key=>value array.
> How do we define which tags there can only be one copy of, and those
that can have multiple instances?
A whitelist of such tags, maybe almost a simple schema.
> What about different tags with the same or similar meaning?
If we only provide an API, this would be up to the SEO plugins.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/31387#comment:9>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list