[wp-trac] [WordPress Trac] #14302: Object Property getters and setters

WordPress Trac wp-trac at lists.automattic.com
Fri Jul 16 16:57:52 UTC 2010

#14302: Object Property getters and setters
 Reporter:  filosofo     |       Owner:  filosofo 
     Type:  enhancement  |      Status:  accepted 
 Priority:  normal       |   Milestone:  3.1      
Component:  Post Types   |     Version:  3.0      
 Severity:  normal       |    Keywords:  has-patch

Comment(by scribu):

 I like the idea, but I think we should follow the same pattern as for the
 metadata api:

 Separate functions for each object type:

  get_post_property() - set_post_property()

  get_comment_property() - set_comment_property()

  get_user_property() - set_user_property()

 and then a general one that is used by all of the above:

  get_object_property('post', ...) - set_object_property('post', ...)

Ticket URL: <http://core.trac.wordpress.org/ticket/14302#comment:2>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software

More information about the wp-trac mailing list