[wp-trac] [WordPress Trac] #22912: Remove "post-format-" Prefix From Format Terms

WordPress Trac noreply at wordpress.org
Thu Dec 13 11:24:44 UTC 2012


#22912: Remove "post-format-" Prefix From Format Terms
-----------------------------+--------------------------
 Reporter:  ryanve           |       Type:  defect (bug)
   Status:  new              |   Priority:  normal
Milestone:  Awaiting Review  |  Component:  Taxonomy
  Version:                   |   Severity:  normal
 Keywords:                   |
-----------------------------+--------------------------
 WP's post formats use the taxonomy API under the taxonomy name
 "post_format". If you use `get_the_terms( $id, 'post_format' )` to access
 the terms, they are prefixed with "post-format-" ( e.g. "post-format-
 quote" ). This seems inconsistent with how terms are designed to work. The
 term is designed to be only the term. It should not include the name of
 the taxonomy in it. Having inconsistencies like this makes it harder to
 use taxonomies at scale.

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/22912>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list