[wp-trac] [WordPress Trac] #49927: Editor: Introduce block context

WordPress Trac noreply at wordpress.org
Tue Jun 30 18:02:17 UTC 2020


#49927: Editor: Introduce block context
-------------------------------------------------+-------------------------
 Reporter:  aduth                                |       Owner:  gziolo
     Type:  enhancement                          |      Status:  reopened
 Priority:  normal                               |   Milestone:  5.5
Component:  Editor                               |     Version:
 Severity:  normal                               |  Resolution:
 Keywords:  has-patch has-unit-tests needs-dev-  |     Focuses:
  note                                           |
-------------------------------------------------+-------------------------

Comment (by gziolo):

 > I think confirming $post is an `WP_Post` would handle it.

 Yes, it sounds like a good idea. There wasn't any check present in
 Gutenberg added, I added a simple check whether it is set when
 backporting, but it looks like we can be more explicit about `WP_Post` and
 the other global we use.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/49927#comment:13>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list