[wp-trac] [WordPress Trac] #10545: _publish_post_hook (adding to postmeta existing hooks)

WordPress Trac wp-trac at lists.automattic.com
Sun Apr 25 04:16:36 UTC 2010


#10545: _publish_post_hook (adding to postmeta existing hooks)
--------------------------+-------------------------------------------------
 Reporter:  butuzov       |       Owner:                                               
     Type:  defect (bug)  |      Status:  new                                          
 Priority:  normal        |   Milestone:  3.0                                          
Component:  Optimization  |     Version:  2.8.1                                        
 Severity:  normal        |    Keywords:  has-patch, publish_post_hook, pings, postmeta
--------------------------+-------------------------------------------------
Changes (by layotte):

  * keywords:  publish_post_hook, pings, postmeta => has-patch,
               publish_post_hook, pings, postmeta


Comment:

 Verified issue... published post, set post to draft, republished post...
 kept adding postmeta to DB.

 created patch with suggested fix from butuzov and tested.

 Now it acts like this:
 1. Publish Post
 2. Adds postmeta
 3. Set Post to Draft
 4. Removes postmeta
 5. Publish Post
 6. Adds postmeta

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


More information about the wp-trac mailing list