﻿id,summary,reporter,owner,description,type,status,priority,milestone,component,version,severity,resolution,keywords,cc
14162,Introduce WP_Term class,scribu,,"In the current taxonomy API, you end up having to pass the taxonomy name over and over again.

I propose we have a WP_Term class to avoid that.

=== Example ===

Current:

{{{get_term_link( get_term_by( 'name', 'Term Name', 'taxname' ), 'taxname' )}}}

Proposed:

{{{get_term_by( 'name', 'Term Name', 'taxname' )->get_link()}}}

get_term_by() would return a WP_Term instance instead of a stdClass instance.

Besides get_link(), the WP_Term class could also have an update() method that would replace (or complement) wp_update_term().

Inspired by #14156.",enhancement,new,normal,Future Release,Taxonomy,,normal,,,kevinB sirzooro mikeschinkel@… andyadamscp@…
