[wp-trac] [WordPress Trac] #60352: Fix the architectural design of `/wp-includes/blocks/index.php`

WordPress Trac noreply at wordpress.org
Mon Sep 30 01:54:59 UTC 2024


#60352: Fix the architectural design of `/wp-includes/blocks/index.php`
-----------------------------+-----------------------------
 Reporter:  azaozz           |       Owner:  (none)
     Type:  defect (bug)     |      Status:  new
 Priority:  normal           |   Milestone:  Future Release
Component:  General          |     Version:  5.5
 Severity:  normal           |  Resolution:
 Keywords:  early has-patch  |     Focuses:
-----------------------------+-----------------------------

Comment (by peterwilsoncc):

 In [changeset:"59117" 59117]:
 {{{
 #!CommitTicketReference repository="" revision="59117"
 Editor: Prevent direct access to `/wp-includes/blocks/index.php`.

 Adds a check for `ABSPATH` to the top of the `/wp-
 includes/blocks/index.php` file and prevents the file from loading if it
 is not defined.

 This prevents the file from throwing errors when accessed directly.

 Props khokansardar, mukesh27.
 Fixes #62108.
 See #60352.
 }}}

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


More information about the wp-trac mailing list