[wp-trac] [WordPress Trac] #39459: Database upgrade is triggered on AJAX request

WordPress Trac noreply at wordpress.org
Tue Jun 23 17:54:19 UTC 2020


#39459: Database upgrade is triggered on AJAX request
-------------------------------------------------+-------------------------
 Reporter:  schlessera                           |       Owner:  schlessera
     Type:  defect (bug)                         |      Status:  reviewing
 Priority:  normal                               |   Milestone:  5.5
Component:  Upgrade/Install                      |     Version:  4.7
 Severity:  normal                               |  Resolution:
 Keywords:  good-first-bug has-patch 2nd-        |     Focuses:
  opinion reporter-feedback                      |
-------------------------------------------------+-------------------------
Changes (by adamsilverstein):

 * keywords:  good-first-bug has-patch 2nd-opinion => good-first-bug has-
     patch 2nd-opinion reporter-feedback


Comment:

 @schlessera Hi! Thanks for opening this ticket. While your description and
 the code changes make sense, I was unable to reproduce the issue you
 describe.

 To test, I left the editor open which makes regular heartbeat admin-ajax
 request. Then in another window I upgraded WordPress (or used wp-cli to
 set the db version to an older version). in my editor window continued to
 make successful ajax requests.

 I also tried on a network install, leaving one site in the edit window and
 upgrading at the network level.

 Do you have any additional steps to reproduce? where were you seeing the
 ajax errors (it is hard to get anywhere unless you leave a window open
 since all request redirect to the upgrade page)? I'm hesitant to change
 the code here without being able to confirm the issue.

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


More information about the wp-trac mailing list