[wp-trac] [WordPress Trac] #46882: 5.2 beta 2: `wp cron event run --due-now` triggers "Use of undefined constant {RECOVERY_MODE_COOKIE, COOKIEPATH, SITECOOKIEPATH}"
WordPress Trac
noreply at wordpress.org
Fri Apr 12 12:12:47 UTC 2019
#46882: 5.2 beta 2: `wp cron event run --due-now` triggers "Use of undefined
constant {RECOVERY_MODE_COOKIE,COOKIEPATH,SITECOOKIEPATH}"
----------------------------------------------------+---------------------
Reporter: lkraav | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: 5.2
Component: Bootstrap/Load | Version: trunk
Severity: normal | Resolution:
Keywords: servehappy has-patch reporter-feedback | Focuses:
----------------------------------------------------+---------------------
Changes (by TimothyBlynJacobs):
* keywords: servehappy => servehappy has-patch reporter-feedback
Comment:
I’m added a patch to drop the constructor injection entirely which should
solve the issue. Instantiating `WP_Recovery_Mode` should no longer have
any required timing. The injection was originally allowed so a multisite
drop-in could be added with minimal code duplication, but since we’ve
dropped extension support in v1, it makes sense to remove it for now.
Could you verifies this solve your issue @lkraav?
--
Ticket URL: <https://core.trac.wordpress.org/ticket/46882#comment:10>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list