[wp-trac] [WordPress Trac] #18624: wpmu_update_blogs_date() should not be called on private_to_published
    WordPress Trac 
    wp-trac at lists.automattic.com
       
    Fri Sep  9 19:20:11 UTC 2011
    
    
  
#18624: wpmu_update_blogs_date() should not be called on private_to_published
--------------------------+---------------------
 Reporter:  mdawaffe      |       Owner:  nacin
     Type:  defect (bug)  |      Status:  closed
 Priority:  normal        |   Milestone:  3.3
Component:  Multisite     |     Version:  3.2.1
 Severity:  normal        |  Resolution:  fixed
 Keywords:  has-patch     |
--------------------------+---------------------
Comment (by mdawaffe):
 Replying to [comment:1 nacin]:
 > Technically, private_to_published will fire for all posts, while
 publish_post will only fire on posts.
 Ah.  Good point.  Then both hooks do something a little different.
 Each time a post row of type post is saved in the publish state (even if
 it already was published), {{{publish_post}}} is called.
 Each time a post row of any type transitions away from non-published to
 published, {{{private_to_published}}} is called.
 So, technically, this change may break things.  It's possible
 {{{wpmu_update_blogs_date}}} should be called when publishing custom post
 types.
-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/18624#comment:4>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
    
    
More information about the wp-trac
mailing list