[wp-trac] [WordPress Trac] #60237: Fatal error when someone opens "/wp-includes/blocks" or "/wp-includes/blocks/index.php" directly

WordPress Trac noreply at wordpress.org
Sat Jan 13 06:32:04 UTC 2024


#60237: Fatal error when someone opens "/wp-includes/blocks" or "/wp-
includes/blocks/index.php" directly
--------------------------+---------------------
 Reporter:  akrocks       |       Owner:  (none)
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  6.5
Component:  Editor        |     Version:  5.5
 Severity:  normal        |  Resolution:
 Keywords:  has-patch     |     Focuses:
--------------------------+---------------------

Comment (by shailu25):

 == **Test Report**

 **Tested Patch:**  https://github.com/WordPress/wordpress-
 develop/pull/5863

 === **Environment:**
 **WordPress**:  6.4.2
 **OS**: Windows
 **Browser**: Firefox
 **Theme**: Twenty Twenty Four
 **PHP**: 8.0.18
 **Active Plugin**:  None

 === **Step to Reproduce:**
 - Create a fresh WordPress site & try opening "{site's domain}/wp-
 includes/blocks" or "{site's domain}/wp-includes/blocks/index.php".

 === **Actual Result:**
 - This Patch Prevents Undefined constant "**ABSPATH**" fatal error When
 open /wp-includes/blocks/index.php file or /wp-includes/blocks/
 directly.✅

 === ** Screenshots: **

 **Before Patch:** https://prnt.sc/5VLmoNAZVoSb
 **After Patch:** https://prnt.sc/nvpV8mYVwkZ2

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


More information about the wp-trac mailing list