[wp-trac] [WordPress Trac] #59175: register_block_type is not working with symbolic links

WordPress Trac noreply at wordpress.org
Wed Feb 21 09:36:34 UTC 2024


#59175: register_block_type is not working with symbolic links
--------------------------+-----------------------
 Reporter:  antonlukin    |       Owner:  audrasjb
     Type:  defect (bug)  |      Status:  closed
 Priority:  normal        |   Milestone:  6.5
Component:  Editor        |     Version:
 Severity:  normal        |  Resolution:  fixed
 Keywords:  has-patch     |     Focuses:
--------------------------+-----------------------
Changes (by audrasjb):

 * owner:  (none) => audrasjb
 * status:  new => closed
 * resolution:   => fixed


Comment:

 In [changeset:"57675" 57675]:
 {{{
 #!CommitTicketReference repository="" revision="57675"
 Editor: Allow symlinks in directories provided to `get_block_asset_url()`.

 This changeset allows using symbolic links for `editorScript` and
 `editorStyle` in `register_block_type()`. This adds `realpath` to template
 and stylesheet in `get_block_asset_url()` to ensure returning
 canonicalized absolute pathnames.

 Follow-up to [56683].

 Props antonlukin, spacedmonkey, maxpertici.
 Fixes #59175.
 See #58525.
 }}}

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


More information about the wp-trac mailing list