We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fd32100 commit e1a9a92Copy full SHA for e1a9a92
.github/changelog/1766-from-description
@@ -0,0 +1,4 @@
1
+Significance: patch
2
+Type: fixed
3
+
4
+Avoid type mismatch when updating `activitypub_content_warning` meta values.
includes/class-blocks.php
@@ -43,13 +43,7 @@ public static function register_postmeta() {
43
'show_in_rest' => true,
44
'single' => true,
45
'type' => 'string',
46
- 'sanitize_callback' => function ( $warning ) {
47
- if ( $warning ) {
48
- return \sanitize_text_field( $warning );
49
- }
50
-
51
- return null;
52
- },
+ 'sanitize_callback' => 'sanitize_text_field',
53
)
54
);
55
0 commit comments