Blocks: Add context fields to WP_Block_Type

New block context related fields were added as part of https://github.com/WordPress/gutenberg/pull/22686. This changest backports them to WP_Block_Type class.

Props aduth, spacedmonkey, mcsf, epiqueras.
Fixes #47656.  



git-svn-id: https://develop.svn.wordpress.org/trunk@48117 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Greg Ziółkowski
2020-06-22 10:24:42 +00:00
parent 8e0e6bc3aa
commit 699c8557f9
3 changed files with 37 additions and 7 deletions

View File

@@ -844,7 +844,7 @@ class Tests_Admin_Includes_Post extends WP_UnitTestCase {
'category' => 'common',
'icon' => 'text',
'keywords' => array(),
'supports' => array(),
'usesContext' => array(),
'styles' => array(),
),
$blocks[ $name ]