[wp-trac] [WordPress Trac] #55067: Use of undefined constant ABSPATH - assumed 'ABSPATH' as of WP5.9

WordPress Trac noreply at wordpress.org
Sat Jun 10 12:31:46 UTC 2023


#55067: Use of undefined constant ABSPATH - assumed 'ABSPATH' as of WP5.9
-----------------------------------------+------------------------------
 Reporter:  maveloweb                    |       Owner:  (none)
     Type:  enhancement                  |      Status:  new
 Priority:  normal                       |   Milestone:  Awaiting Review
Component:  Security                     |     Version:  5.9
 Severity:  normal                       |  Resolution:
 Keywords:  has-patch close 2nd-opinion  |     Focuses:
-----------------------------------------+------------------------------
Changes (by jorbin):

 * keywords:  has-patch => has-patch close 2nd-opinion


Comment:

 I think this is something that is best solved at a hosting level by
 preventing direct PHP file access to wp-includes rather than by changing
 WordPress. Putting a check in each file for `ABSPATH` seems like an
 unnecessary use of server resources.

 Adding the close tag and looking for a second opinion before marking this
 as `wontfix`

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


More information about the wp-trac mailing list