IDEA additional info:
Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
<+>UTF-8
|
|
|
2210 | 2210 | function get_block_editor_server_block_settings() { |
2211 | 2211 | $block_registry = WP_Block_Type_Registry::get_instance(); |
2212 | 2212 | $blocks = array(); |
2213 | | $keys_to_pick = array( 'title', 'description', 'icon', 'category', 'keywords', 'parent', 'supports', 'attributes', 'styles' ); |
| 2213 | $keys_to_pick = array( 'title', 'description', 'icon', 'category', 'keywords', 'parent', 'supports', 'attributes', 'styles', 'style_variations', 'text_domain', 'example' ); |
2214 | 2214 | |
2215 | 2215 | foreach ( $block_registry->get_all_registered() as $block_name => $block_type ) { |
2216 | 2216 | foreach ( $keys_to_pick as $key ) { |
IDEA additional info:
Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
<+>UTF-8
|
|
|
15 | 15 | * @see register_block_type() |
16 | 16 | */ |
17 | 17 | class WP_Block_Type { |
| 18 | |
18 | 19 | /** |
19 | 20 | * Block type key. |
20 | 21 | * |
… |
… |
|
23 | 24 | */ |
24 | 25 | public $name; |
25 | 26 | |
| 27 | /** |
| 28 | * @since 5.4.0 |
| 29 | * @var string |
| 30 | */ |
| 31 | public $title = ''; |
| 32 | |
| 33 | /** |
| 34 | * @since 5.4.0 |
| 35 | * @var string |
| 36 | */ |
| 37 | public $category = ''; |
| 38 | |
| 39 | /** |
| 40 | * @since 5.4.0 |
| 41 | * @var array |
| 42 | */ |
| 43 | public $parent = array(); |
| 44 | |
| 45 | /** |
| 46 | * @since 5.4.0 |
| 47 | * @var string |
| 48 | */ |
| 49 | public $icon = ''; |
| 50 | |
| 51 | /** |
| 52 | * @since 5.4.0 |
| 53 | * @var string |
| 54 | */ |
| 55 | public $description = ''; |
| 56 | |
| 57 | /** |
| 58 | * @since 5.4.0 |
| 59 | * @var array |
| 60 | */ |
| 61 | public $keywords = array(); |
| 62 | |
| 63 | /** |
| 64 | * @since 5.4.0 |
| 65 | * @var string |
| 66 | */ |
| 67 | public $text_domain = ''; |
| 68 | |
| 69 | /** |
| 70 | * @since 5.4.0 |
| 71 | * @var array |
| 72 | */ |
| 73 | public $style_variations = array(); |
| 74 | |
| 75 | /** |
| 76 | * @since 5.4.0 |
| 77 | * @var array |
| 78 | */ |
| 79 | public $supports = array(); |
| 80 | |
| 81 | /** |
| 82 | * @since 5.4.0 |
| 83 | * @var bool |
| 84 | */ |
| 85 | public $example = false; |
| 86 | |
26 | 87 | /** |
27 | 88 | * Block type render callback. |
28 | 89 | * |
29 | 90 | * @since 5.0.0 |
30 | 91 | * @var callable |
31 | 92 | */ |
32 | | public $render_callback; |
| 93 | public $render_callback = null; |
33 | 94 | |
34 | 95 | /** |
35 | 96 | * Block type attributes property schemas. |
… |
… |
|
37 | 98 | * @since 5.0.0 |
38 | 99 | * @var array |
39 | 100 | */ |
40 | | public $attributes; |
| 101 | public $attributes = array(); |
41 | 102 | |
42 | 103 | /** |
43 | 104 | * Block type editor script handle. |
… |
… |
|
45 | 106 | * @since 5.0.0 |
46 | 107 | * @var string |
47 | 108 | */ |
48 | | public $editor_script; |
| 109 | public $editor_script = ''; |
49 | 110 | |
50 | 111 | /** |
51 | 112 | * Block type front end script handle. |
… |
… |
|
53 | 114 | * @since 5.0.0 |
54 | 115 | * @var string |
55 | 116 | */ |
56 | | public $script; |
| 117 | public $script = ''; |
57 | 118 | |
58 | 119 | /** |
59 | 120 | * Block type editor style handle. |
… |
… |
|
61 | 122 | * @since 5.0.0 |
62 | 123 | * @var string |
63 | 124 | */ |
64 | | public $editor_style; |
| 125 | public $editor_style = ''; |
65 | 126 | |
66 | 127 | /** |
67 | 128 | * Block type front end style handle. |
… |
… |
|
69 | 130 | * @since 5.0.0 |
70 | 131 | * @var string |
71 | 132 | */ |
72 | | public $style; |
| 133 | public $style = ''; |
73 | 134 | |
74 | 135 | /** |
75 | 136 | * Constructor. |
76 | 137 | * |
77 | 138 | * Will populate object properties from the provided arguments. |
78 | 139 | * |
79 | | * @since 5.0.0 |
80 | | * |
81 | | * @see register_block_type() |
82 | | * |
83 | 140 | * @param string $block_type Block type name including namespace. |
84 | 141 | * @param array|string $args Optional. Array or string of arguments for registering a block type. |
85 | 142 | * Default empty array. |
| 143 | * |
| 144 | * @since 5.0.0 |
| 145 | * |
| 146 | * @see register_block_type() |
| 147 | * |
86 | 148 | */ |
87 | 149 | public function __construct( $block_type, $args = array() ) { |
88 | 150 | $this->name = $block_type; |
… |
… |
|
180 | 242 | $args, |
181 | 243 | array( |
182 | 244 | 'render_callback' => null, |
| 245 | 'title' => $this->name, |
183 | 246 | ) |
184 | 247 | ); |
185 | 248 | |