[wp-trac] [WordPress Trac] #49196: Copy block metadata files for dynamic blocks

WordPress Trac noreply at wordpress.org
Thu Jan 23 14:19:08 UTC 2020


#49196: Copy block metadata files for dynamic blocks
-------------------------------------------------+-------------------------
 Reporter:  chipsnyder                           |       Owner:  (none)
     Type:  enhancement                          |      Status:  new
 Priority:  normal                               |   Milestone:  5.4
Component:  Build/Test Tools                     |     Version:
 Severity:  normal                               |  Resolution:
 Keywords:  has-patch 2nd-opinion needs-testing  |     Focuses:  javascript
-------------------------------------------------+-------------------------

Comment (by gziolo):

 Replying to [comment:13 azaozz]:
 > Quick look at 49196-block-folders_updated.diff: (Mass) renaming/moving
 of existing PHP files seems very risky. Is there a chance that a plugin
 may be doing something like `require_once( ABSPATH . WPINC . '/blocks
 /latest-posts.php' );` and moving that file would "bring the site down"
 with a PHP fatal error? Is it possible to avoid the moving and renaming?

 I wasn't aware that the file location might be treated as a contract. If
 this is the case then we can consider keeping the current names and handle
 the rest differently.
 Another option would be to proxy old locations to the new one.

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


More information about the wp-trac mailing list