[wp-trac] [WordPress Trac] #55944: Few wp-admin files need to exit if directly loaded

WordPress Trac noreply at wordpress.org
Wed Jul 3 12:09:31 UTC 2024


#55944: Few wp-admin files need to exit if directly loaded
----------------------------+------------------------------
 Reporter:  superpoincare   |       Owner:  (none)
     Type:  enhancement     |      Status:  new
 Priority:  normal          |   Milestone:  Awaiting Review
Component:  Administration  |     Version:  6.0
 Severity:  normal          |  Resolution:
 Keywords:  has-patch       |     Focuses:
----------------------------+------------------------------

Comment (by leedxw):

 Tracking down some fatal errors in the logs, a (third-party scan) direct
 request to
 {{{
 GET /wp-admin/options-head.php
 }}}

 will result in 500 and a stack trace:

 {{{
 PHP Fatal error:  Uncaught Error: Call to undefined function
 wp_reset_vars() in /var/www/html/wp-admin/options-head.php:11
 Stack trace:
 #0 {main}
   thrown in /var/www/html/wp-admin/options-head.php on line 11
 }}}

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


More information about the wp-trac mailing list