[wp-trac] [WordPress Trac] #58525: Create util function for getting block assets uri

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


#58525: Create util function for getting block assets uri
--------------------------------------+---------------------------
 Reporter:  spacedmonkey              |       Owner:  spacedmonkey
     Type:  enhancement               |      Status:  closed
 Priority:  normal                    |   Milestone:  6.4
Component:  Editor                    |     Version:  5.5
 Severity:  normal                    |  Resolution:  fixed
 Keywords:  has-patch has-unit-tests  |     Focuses:  performance
--------------------------------------+---------------------------

Comment (by audrasjb):

 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/58525#comment:18>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list