[wp-trac] [WordPress Trac] #8828: Tags and Categories are undifferentiable in Atom and RSS feeds

WordPress Trac noreply at wordpress.org
Thu Feb 8 16:03:01 UTC 2018


#8828: Tags and Categories are undifferentiable in Atom and RSS feeds
-------------------------------------+-----------------------------
 Reporter:  znarfor                  |       Owner:
     Type:  enhancement              |      Status:  new
 Priority:  low                      |   Milestone:  Future Release
Component:  Feeds                    |     Version:  2.7
 Severity:  minor                    |  Resolution:
 Keywords:  has-patch needs-refresh  |     Focuses:
-------------------------------------+-----------------------------
Changes (by DrewAPicture):

 * keywords:  has-patch needs-refresh good-first-bug => has-patch needs-
     refresh


Old description:

> In RSS feeds this can be achieved using the 'domain' attributes of the
> category element. This is already done in Wordpress export through the
> wxr_post_taxonomy function, so we just have to do the same in RSS feeds.
>
> In Atom feeds this can be achieved using the 'scheme' attributes of the
> category element. The Atom standard is not explicit about what to put in
> this scheme attributes. There is [http://edward.oconnor.cx/2007/02
> /representing-tags-in-atom an interesting topic on Edward O’Connor blog].
> In my proposed patch, i decided to use the 1st representation and i also
> considered seriously the 2nd.
>
> In the patch, i'm also adding the 'label' attribute to the atom category
> element and changed the 'term' attribute to be the tag slug. Seems this
> are currently the best practices in the Atom community.

New description:

 In RSS feeds this can be achieved using the 'domain' attributes of the
 category element. This is already done in WordPress export through the
 wxr_post_taxonomy function, so we just have to do the same in RSS feeds.

 In Atom feeds this can be achieved using the 'scheme' attributes of the
 category element. The Atom standard is not explicit about what to put in
 this scheme attributes. There is [http://edward.oconnor.cx/2007/02
 /representing-tags-in-atom an interesting topic on Edward O’Connor blog].
 In my proposed patch, i decided to use the 1st representation and i also
 considered seriously the 2nd.

 In the patch, i'm also adding the 'label' attribute to the atom category
 element and changed the 'term' attribute to be the tag slug. Seems this
 are currently the best practices in the Atom community.

--

--
Ticket URL: <https://core.trac.wordpress.org/ticket/8828#comment:11>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list