[wp-trac] Re: [WordPress Trac] #7530: update_postmeta_cache fails while create new posts

WordPress Trac wp-trac at lists.automattic.com
Thu Apr 16 18:17:55 GMT 2009


#7530: update_postmeta_cache fails while create new posts
-----------------------------------------+----------------------------------
 Reporter:  so1o                         |        Owner:  anonymous 
     Type:  defect (bug)                 |       Status:  closed    
 Priority:  normal                       |    Milestone:            
Component:  General                      |      Version:            
 Severity:  normal                       |   Resolution:  worksforme
 Keywords:  reporter-feedback has-patch  |  
-----------------------------------------+----------------------------------
Changes (by Denis-de-Bernardy):

  * status:  reopened => closed
  * resolution:  => worksforme


Comment:

 agreed with ryan

 @so1o: I've a couple plugins that deal with metadata too.

 two functions I frequently add to my classes are:

  - save_post($post_id) -> on save_post
  - meta_box($post) -> add using add_meta_box

 in save_post(), the first thing I do is:

 if ( wp_is_post_revision($post_id) ) return;

 hope this helps.

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


More information about the wp-trac mailing list