[wp-trac] [WordPress Trac] #64157: Introduce constant or filter to prevent wp-cron.php triggering cron jobs.

WordPress Trac noreply at wordpress.org
Wed Oct 29 21:33:39 UTC 2025


#64157: Introduce constant or filter to prevent wp-cron.php triggering cron jobs.
---------------------------+-----------------------------
 Reporter:  peterwilsoncc  |       Owner:  (none)
     Type:  enhancement    |      Status:  new
 Priority:  normal         |   Milestone:  Future Release
Component:  Cron API       |     Version:
 Severity:  normal         |  Resolution:
 Keywords:  needs-patch    |     Focuses:  performance
---------------------------+-----------------------------

Comment (by westonruter):

 Normally accessing `wp-cron.php` just shows an empty response, right? This
 endpoint is almost never visited directly. But if the endpoint is
 disabled, I imagine sending back a `403 Forbidden` would be appropriate.
 It wouldn't hurt to send this with `wp_die()` and some message.

 Aside: It would be nice if accessing `wp-cron.php` would generally
 indicate if anything was run as part of the request. That would make
 accessing the screen actually generally useful. More detail could be
 provided if a user is logged-in as an administrator. For unauthenticated
 requests, it could simply say whether any jobs were run.

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


More information about the wp-trac mailing list