$post not defined in gutenberg_menu() #12061
Labels
Framework
Issues related to broader framework topics, especially as it relates to javascript
[Type] Bug
An existing feature does not function as intended
Describe the bug
gutenberg_menu()
callsgutenberg_can_edit_post()
with$post
as an argument but it is not defined at that point.To Reproduce
Steps to reproduce the behavior:
Expected behavior
Check for the existing of
$post
before using it or usingglobal $post
so$post
will at least be defined even if it's value isNULL
Screenshots
(added
die()
after call togutenberg_can_edit_post()
so error can be seen)Desktop (please complete the following information):
Additional context
The text was updated successfully, but these errors were encountered: