[wp-trac] [WordPress Trac] #51287: Administrators & Editors can't create localfile links in a multisite installation
WordPress Trac
noreply at wordpress.org
Thu Sep 10 11:08:31 UTC 2020
#51287: Administrators & Editors can't create localfile links in a multisite
installation
--------------------------+-----------------------------
Reporter: peikgabriel | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Editor | Version:
Severity: major | Keywords:
Focuses: multisite |
--------------------------+-----------------------------
Steps to reproduce:
Clean WordPress Multisite installation.
Create a user with Administrator (or Editor) capabilities, not Super
Admin.
Login as the new user.
Create a new page, and create a local file link in the visual editor.
Enter a local file URL, e.g. **localfile:E:\foobar\**
Publish and refresh the page.
The link has now been stripped into a **\foobar\.**
Note, if you try this with a Super Admin user it works as expected, and
the link is correctly created.
Why does WP strip the **localfile:E:** part of the link if the user is not
an admin?
--
Ticket URL: <https://core.trac.wordpress.org/ticket/51287>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list