Skip to content

Commit 4f3dda8

Browse files
committed
Clarify the role of block editor context class
1 parent 79b8d11 commit 4f3dda8

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/wp-includes/class-wp-block-editor-context.php

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,13 +9,18 @@
99
/**
1010
* Class representing a current block editor context.
1111
*
12+
* The expectation is that block editor can have a different set
13+
* of requirements on every screen where it is used. This class
14+
* allows to define supporting settings that can be used with filters.
15+
*
1216
* @since 5.8.0
1317
*/
14-
class WP_Block_Editor_Context {
18+
final class WP_Block_Editor_Context {
1519
/**
1620
* Post being edited. Optional.
1721
*
1822
* @since 5.8.0
23+
*
1924
* @var WP_Post|null
2025
*/
2126
public $post = null;

0 commit comments

Comments
 (0)