[wp-trac] [WordPress Trac] #14162: Introduce WP_Term

WordPress Trac wp-trac at lists.automattic.com
Thu Jul 1 00:59:28 UTC 2010


#14162: Introduce WP_Term
-------------------------+--------------------------------------------------
 Reporter:  scribu       |       Owner:                 
     Type:  enhancement  |      Status:  new            
 Priority:  normal       |   Milestone:  Awaiting Review
Component:  Taxonomy     |     Version:                 
 Severity:  normal       |    Keywords:                 
-------------------------+--------------------------------------------------

Comment(by filosofo):

 Having a `WP_Term` object is a great idea.

 Instead of an `update` method that gets an array of arguments, why not
 have it save the current object's properties to the database?

 {{{
 $term->set_description('my new description');
 $term->update(); // now the new description is saved to the database
 }}}

 As suggested above, it would also be nice to have getters and possibly
 setters for the other salient properties in addition to "link."

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/14162#comment:4>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list