Opened 9 months ago
Closed 7 months ago
#47604 closed defect (bug) (fixed)
Undefined variable: locked in wp-admin/edit-form-blocks.php
| Reported by: |
|
Owned by: |
|
|---|---|---|---|
| Milestone: | 5.2.3 | Priority: | normal |
| Severity: | minor | Version: | 5.0 |
| Component: | Editor | Keywords: | has-patch fixed-major |
| Focuses: | administration | Cc: |
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)
#4
@
9 months ago
- Owner set to azaozz
- Resolution set to fixed
- Status changed from new to closed
In 45564:
#5
@
9 months ago
- Resolution fixed deleted
- Status changed from closed to reopened
Reopen for 5.2.3 consideration.
This ticket was mentioned in Slack in #core by jeffpaul. View the logs.
8 months ago
Note: See
TracTickets for help on using
tickets.
This should probably be fixed in the next minor.