[wp-trac] [WordPress Trac] #60231: Replace constant ABSPATH . WPINC with BLOCKS_PATH in the require-dynamic-blocks.php

WordPress Trac noreply at wordpress.org
Thu Jan 11 13:53:13 UTC 2024


#60231: Replace constant ABSPATH . WPINC with BLOCKS_PATH in the require-dynamic-
blocks.php
----------------------------+-----------------------------
 Reporter:  vishalkakadiya  |      Owner:  (none)
     Type:  defect (bug)    |     Status:  new
 Priority:  normal          |  Milestone:  Awaiting Review
Component:  General         |    Version:  trunk
 Severity:  normal          |   Keywords:  has-patch
  Focuses:                  |
----------------------------+-----------------------------
 Basically, we are already defining the **BLOCKS_PATH** constant in the
 **wp-includes/blocks/index.php** file which is loading the **require-
 dynamic-blocks.php**

 So it is good practice to replace combination **ABSPATH . WPINC**
 constants with **BLOCKS_PATH** single constant in the **require-dynamic-
 blocks.php** file generated by **tools/release/sync-stable-blocks.js**
 file.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/60231>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list