[wp-trac] [WordPress Trac] #52995: Undefined `$post_ID` variable in `edit-form-blocks.php` (was: Coding standard : Undefined varible)
WordPress Trac
noreply at wordpress.org
Thu Apr 8 00:33:36 UTC 2021
#52995: Undefined `$post_ID` variable in `edit-form-blocks.php`
--------------------------+------------------------------
Reporter: ravipatel | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Editor | Version: 5.0
Severity: normal | Resolution:
Keywords: has-patch | Focuses:
--------------------------+------------------------------
Changes (by davidbaumwald):
* focuses: coding-standards =>
* component: General => Editor
* version: => 5.0
Old description:
> $post_ID : varibale is not define use $post->ID.
New description:
`wp_get_post_autosave` is called with the `$post_ID` variabl, but it is
not defined. Should use `$post->ID` instead.
--
Comment:
Looks like this traces back to [43815].
--
Ticket URL: <https://core.trac.wordpress.org/ticket/52995#comment:1>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list