Opened 12 years ago
Closed 12 years ago
#22912 closed defect (bug) (wontfix)
Remove "post-format-" Prefix From Format Terms
Reported by: | ryanve | Owned by: | |
---|---|---|---|
Milestone: | Priority: | normal | |
Severity: | normal | Version: | |
Component: | Taxonomy | Keywords: | close |
Focuses: | Cc: |
Description
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.
Change History (5)
#3
@
12 years ago
@markoheijnen When I said scale I meant doing stuff like printing CSS classes based on the all supported taxonomies without having to give special treatment to certain taxonomies.
#4
@
12 years ago
@johnbillion It would be better to fix #5809 than to require workarounds on every taxonomy.
This taxonomy isn't there to scale since it has a default set you can't extend.
The reason it has that prefix is because term slugs are unique to all taxonomy's and not just one when Post Format has been introduced. This will change but you still have all the existing site's using it.