[wp-trac] [WordPress Trac] #62809: Optimize conditional checks and require_once logic for wp-load.php inclusion

WordPress Trac noreply at wordpress.org
Thu Jan 16 16:16:31 UTC 2025


#62809: Optimize conditional checks and require_once logic for wp-load.php
inclusion
-------------------------+-----------------------------
 Reporter:  hussain896   |       Owner:  SergeyBiryukov
     Type:  enhancement  |      Status:  closed
 Priority:  normal       |   Milestone:  6.8
Component:  Upload       |     Version:  6.7.1
 Severity:  normal       |  Resolution:  fixed
 Keywords:  has-patch    |     Focuses:  administration
-------------------------+-----------------------------
Changes (by SergeyBiryukov):

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


Comment:

 In [changeset:"59634" 59634]:
 {{{
 #!CommitTicketReference repository="" revision="59634"
 Upload: Remove redundant check for `ABSPATH` in `wp-admin/async-
 upload.php`.

 This aims to bring consistency with a similar fragment in other files,
 since relocating `wp-admin` or `wp-load.php` is not supported at this
 time.

 Follow-up to [6659], [7971], [8315].

 Props hussain896, swissspidy, knutsp, SergeyBiryukov.
 Fixes #62809.
 }}}

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


More information about the wp-trac mailing list