[wp-trac] [WordPress Trac] #43952: Database error inserting cron job on fresh install
WordPress Trac
noreply at wordpress.org
Thu May 3 21:11:01 UTC 2018
#43952: Database error inserting cron job on fresh install
-----------------------------+----------------------
Reporter: iandunn | Owner: iandunn
Type: defect (bug) | Status: closed
Priority: high | Milestone: 4.9.6
Component: Upgrade/Install | Version:
Severity: normal | Resolution: fixed
Keywords: gdpr | Focuses:
-----------------------------+----------------------
Changes (by iandunn):
* owner: (none) => iandunn
* status: new => closed
* resolution: => fixed
Comment:
In [changeset:"43162" 43162]:
{{{
#!CommitTicketReference repository="" revision="43162"
Privacy: Return before scheduling cron during install to avoid error.
r43046 introduced `wp_schedule_delete_old_privacy_export_files()` to
schedule the `wp_privacy_delete_old_export_files` cron job, but it did not
check to make sure it wasn't running in the context of the install
process. When it did run in that context, it created a database error,
because the necessary database tables don't exist at that point.
Checking the current context and returning early during the installation
phase avoids that issue.
Props helen, timothyblynjacobs, iandunn.
Fixes #43952.
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/43952#comment:1>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list