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

WordPress Trac noreply at wordpress.org
Wed Apr 27 06:39:13 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 jrf):

 @jeremyfelt

 If you reverse the variable logic, please do so consistently:
 In `src/wp-cron.php` you need to change `true` to `false` in the following
 line:
 {{{#!php
 if ( true === apply_filters( 'spawn_cron_for_site', $spawn_cron,
 $current_site ) ) {
         die();
 }
 }}}

 I also believe that the additional documentation in the filter about when
 a site is regarded as suspended should be put back in as this may be clear
 to us, but not automatically so for other people without looking at the
 actual code.

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


More information about the wp-trac mailing list