[wp-trac] [WordPress Trac] #20537: Don't spawn cron requests for suspended blogs

WordPress Trac noreply at wordpress.org
Wed Apr 27 06:14:57 UTC 2016


#20537: Don't spawn cron requests for suspended blogs
-------------------------------------------------+-------------------------
 Reporter:  ryan                                 |       Owner:  jrf
     Type:  defect (bug)                         |      Status:  assigned
 Priority:  normal                               |   Milestone:  4.6
Component:  Cron API                             |     Version:  3.3.1
 Severity:  normal                               |  Resolution:
 Keywords:  has-patch good-first-bug needs-      |     Focuses:  multisite
  testing                                        |
-------------------------------------------------+-------------------------

Comment (by jeremyfelt):

 Thanks, @jrf, I think we're getting close.

 [attachment:20537.2.diff] makes a couple changes:

 * Use `$spawn_cron` as the variable tracking whether or not to spawn.
 Default to `true` rather than `false`.
 * Name the filter `spawn_cron_for_site` and adjust filter docs
 accordingly.

 Pinging @DrewAPicture to have a look at the filter too. It feels a little
 weird to either pass `null` or a `WP_Site` instance, but that might be all
 we have.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/20537#comment:15>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list