[wp-trac] [WordPress Trac] #46664: Site Health: mixed slash symbols on paths in Directories and Sizes output

WordPress Trac noreply at wordpress.org
Wed Mar 27 11:23:47 UTC 2019


#46664: Site Health: mixed slash symbols on paths in Directories and Sizes output
-----------------------------------------------+---------------------
 Reporter:  xkon                               |       Owner:  (none)
     Type:  defect (bug)                       |      Status:  new
 Priority:  normal                             |   Milestone:  5.2
Component:  Administration                     |     Version:
 Severity:  normal                             |  Resolution:
 Keywords:  site-health has-patch 2nd-opinion  |     Focuses:  ui
-----------------------------------------------+---------------------
Changes (by SergeyBiryukov):

 * keywords:  site-health has-patch => site-health has-patch 2nd-opinion


Comment:

 Replying to [ticket:46664 xkon]:
 > Maybe we should so the same with `WordPress Constants` as `ABSPATH`,
 `WP_CONTENT_DIR` etc will be shown with mixed slashes as well?

 I've seen some issues similar to #29154 in plugins, where mixed slashes
 cause string replacements to fail, for example when removing `ABSPATH`
 from the full path. Mixed slashes are not pretty, but maybe for diagnostic
 purposes we should display those constants as is.

 Normalizing the slashes only in "Directories and Sizes" box seems fine,
 but would make it inconsistent with "WordPress Constants"... I don't have
 a strong opinion here, would like to hear others' thoughts :)

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


More information about the wp-trac mailing list