[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 06:17:07 UTC 2011


#18624: wpmu_update_blogs_date() should not be called on private_to_published
--------------------------+------------------------------------
 Reporter:  mdawaffe      |      Owner:
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  Multisite     |    Version:  3.2.1
 Severity:  normal        |   Keywords:  has-patch dev-feedback
--------------------------+------------------------------------
 http://core.trac.wordpress.org/browser/trunk/wp-includes/ms-default-
 filters.php?rev=16213#L39

 {{{
 add_action( 'private_to_published', 'wpmu_update_blogs_date' );
 ...
 add_action( 'publish_post', 'wpmu_update_blogs_date' );
 }}}

 Those two {{{add_action()}}} calls are redundant.  Whenever
 {{{private_to_published}}} is called, {{{publish_post}}} is also called.

 Am I missing something?

 Trivial patch attached.

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


More information about the wp-trac mailing list