[wp-trac] Re: [WordPress Trac] #2659: Comment meta

WordPress Trac wp-trac at lists.automattic.com
Thu Apr 13 10:30:55 GMT 2006


#2659: Comment meta
-------------------------+--------------------------------------------------
       Id:  2659         |      Status:  assigned                
Component:  General      |    Modified:  Thu Apr 13 10:30:55 2006
 Severity:  normal       |   Milestone:  2.1                     
 Priority:  normal       |     Version:  2.1                     
    Owner:  markjaquith  |    Reporter:  markjaquith             
-------------------------+--------------------------------------------------
Changes (by markjaquith):

  * keywords:  comment meta => comment meta has-patch needs-testing
  * status:  new => assigned

Comment:

 Take 1 is up.  I bumped the WP DB version to 3673, which is current+1 as
 of this posting.  After applying the patch, go to your wp-admin.  If it
 doesn't say your DB is out of date, you'll have to manually {{{UPDATE
 prefix_options SET option_value = '3672' WHERE option_name =
 'db_version';}}}

 Test it out by using add_comment_meta(), delete_comment_meta(), and
 get_comment_meta().  They work exactly like their 'post' brethren, except
 that they take a comment id.  In fact, the
 [add/delete/get]_[comment/post]_meta() functions are just pointers now to
 generic wp_[add/delete/get]_meta() functions whose last parameter is a
 string of 'comment' or 'post' ... these aren't meant to be used
 directly... they just save having 6 big functions when 3 flexible ones
 will do.

 Things to test:

  * adding meta
  * updating meta
  * deleting meta
  * deleting a comment (make sure the meta goes too)
  * deleting a post (make sure all of its comments have their meta deleted)

 Let me know how it goes.

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


More information about the wp-trac mailing list