Opened 7 years ago
Closed 7 years ago
#47604 closed defect (bug) (fixed)
Undefined variable: locked in wp-admin/edit-form-blocks.php
| Reported by: | aprea | Owned by: | azaozz |
|---|---|---|---|
| Priority: | normal | Milestone: | 5.2.3 |
| Component: | Editor | Version: | 5.0 |
| Severity: | minor | Keywords: | has-patch fixed-major |
| Cc: | Focuses: | administration |
Description
A $locked variable is defined on line 231 in wp-admin/edit-form-blocks.php within an if statement and is referenced on line 235 and 244.
This results in a PHP notice being raised if the show_post_locked_dialog filter returns a falsy value. This is because the $locked variable is never defined unless that if condition is satisfied.
Attachments (1)
Change History (10)
This ticket was mentioned in Slack in #core by jeffpaul. View the logs.
7 years ago
Note:
See TracTickets
for help on using tickets.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
This should probably be fixed in the next minor.