[wp-trac] [WordPress Trac] #54558: Notice: Undefined index in WordPress 5.9 Beta
WordPress Trac
noreply at wordpress.org
Thu Dec 2 10:53:16 UTC 2021
#54558: Notice: Undefined index in WordPress 5.9 Beta
--------------------------+------------------------------
Reporter: kafleg | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: General | Version:
Severity: normal | Resolution:
Keywords: | Focuses:
--------------------------+------------------------------
Comment (by costdev):
Thanks for reporting this issue @kafleg!
== Test Report
=== Env
* WordPress 5.9-beta1-52296-src
* Chrome 96.0.4664.45
* Windows 10
* Theme: Twenty Twenty Two
* Gutenberg Editor
* Plugin: None activated
=== Steps to test
1. Navigate to `Appearance > Site Editor`.
2. Navigate to `Template Parts`.
=== Results
The reported notice is displayed:
Notice: Undefined index: path in <path>/src/wp-includes/rest-api.php on
line 2854
=== Notes
- This is caused by the `?context=edit` path missing a leading slash.
- When a leading slash is added, the notice no longer appears.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/54558#comment:1>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list