[wp-trac] [WordPress Trac] #58132: Slashes used in block templates slug is a problem on Windows

WordPress Trac noreply at wordpress.org
Fri Apr 14 16:36:18 UTC 2023


#58132: Slashes used in block templates slug is a problem on Windows
--------------------------------------------------+---------------------
 Reporter:  gaft                                  |       Owner:  (none)
     Type:  defect (bug)                          |      Status:  new
 Priority:  normal                                |   Milestone:  6.2.1
Component:  Editor                                |     Version:  5.9
 Severity:  normal                                |  Resolution:
 Keywords:  needs-testing-info reporter-feedback  |     Focuses:
--------------------------------------------------+---------------------

Comment (by gaft):

 I totally agree that `wp_normalize_path` is a more robust function to use
 here. Also, I think it is best handled in `_get_block_templates_files`
 where it can be useful elsewhere that expects slug to be in forward
 slashes.

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


More information about the wp-trac mailing list