[wp-trac] [WordPress Trac] #47604: Undefined variable: locked in wp-admin/edit-form-blocks.php
WordPress Trac
noreply at wordpress.org
Tue Jun 25 05:55:16 UTC 2019
#47604: Undefined variable: locked in wp-admin/edit-form-blocks.php
----------------------------+-----------------------------
Reporter: aprea | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Editor | Version: trunk
Severity: minor | Keywords:
Focuses: administration |
----------------------------+-----------------------------
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.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/47604>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list