[wp-trac] [WordPress Trac] #57662: Error from _preload_old_requests_classes_and_interfaces on update from 4.0.38 to 6.2-beta1

WordPress Trac noreply at wordpress.org
Wed Feb 8 15:01:48 UTC 2023


#57662: Error from _preload_old_requests_classes_and_interfaces on update from
4.0.38 to 6.2-beta1
-----------------------------------------------+---------------------------
 Reporter:  afragen                            |       Owner:
                                               |  hellofromTonya
     Type:  defect (bug)                       |      Status:  closed
 Priority:  normal                             |   Milestone:  6.2
Component:  Upgrade/Install                    |     Version:  trunk
 Severity:  normal                             |  Resolution:  fixed
 Keywords:  has-testing-info has-patch commit  |     Focuses:
-----------------------------------------------+---------------------------
Changes (by hellofromTonya):

 * status:  reviewing => closed
 * resolution:   => fixed


Comment:

 In [changeset:"55296" 55296]:
 {{{
 #!CommitTicketReference repository="" revision="55296"
 Upgrade/Install: Skip preloading Requests for WordPress versions before
 4.6.

 Skip preloading Requests files in
 `_preload_old_requests_classes_and_interfaces()` when updating from a
 WordPress version older than 4.6.

 Why?

 Requests library was first introduced into WordPress 4.6 via #33055 /
 [37428]. If a user is upgrading from a version older than 4.6, this
 changeset prevents the Requests preloading to prevent a fatal error of
 attempting to load files that do not exist in their current WordPress
 version.

 Follow-up to [54997], [37428].

 Props afragen, costdev, ironprogrammer, antonvlasenko.
 Fixes #57662.
 }}}

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


More information about the wp-trac mailing list