[wp-trac] [WordPress Trac] #35631: Possible PHP notice when updating Site Info
WordPress Trac
noreply at wordpress.org
Wed Jan 27 17:08:14 UTC 2016
#35631: Possible PHP notice when updating Site Info
--------------------------------+-----------------------------
Reporter: flixos90 | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Networks and Sites | Version:
Severity: normal | Keywords:
Focuses: multisite |
--------------------------------+-----------------------------
When updating a site's domain & path in the "Info" tab of Site Info, it
can lead to a PHP notice being shown if a path is not included.
While paths are a crucial part to working with subdirectory installs, they
are not really used on subdomain installs. In my opinion you should be
able to enter `http://example.com` without appending the trailing slash,
and WordPress should handle this automatically. Basically, if there's no
trailing slash, assume the path is simply '/', otherwise take what's
provided.
The notice is being generated because if you do not provide a path, the
`path` key from `parse_url()` is not available. This is it:
`Notice: Undefined index: path in /Volumes/HDD/user/site/web/core/wp-
admin/network/site-info.php on line 83`
--
Ticket URL: <https://core.trac.wordpress.org/ticket/35631>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list