[wp-trac] [WordPress Trac] #57924: Cron fires twice

WordPress Trac noreply at wordpress.org
Fri Mar 17 17:01:00 UTC 2023


#57924: Cron fires twice
-------------------------------------------+------------------------------
 Reporter:  j3gaming                       |       Owner:  j3gaming
     Type:  defect (bug)                   |      Status:  assigned
 Priority:  normal                         |   Milestone:  Awaiting Review
Component:  Cron API                       |     Version:  6.1.1
 Severity:  normal                         |  Resolution:
 Keywords:  changes-requested 2nd-opinion  |     Focuses:
-------------------------------------------+------------------------------

Comment (by domainsupport):

 Stupid question that I have to ask, you do have `define('DISABLE_WP_CRON',
 true)` in `wp-config.php`, right?

 I don't use server fired cron so cannot comment on what third party
 requests might do but you could add this to `.htaccess` (if Apache) to
 prevent them ... ?

 {{{
 RewriteCond %{REMOTE_ADDR} !^127\.0\.0\.1
 RewriteCond %{REQUEST_URI} "^/wp-cron.php"
 RewriteRule .* - [L]
 }}}

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


More information about the wp-trac mailing list