Skip to content

Commit

Permalink
added sanitize_callback
Browse files Browse the repository at this point in the history
  • Loading branch information
pfefferle committed Sep 25, 2024
1 parent 7ff27f2 commit 1f2f1f9
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions includes/class-blocks.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,10 @@ public static function register_postmeta() {
$post_type,
'activitypub_content_warning',
array(
'show_in_rest' => true,
'single' => true,
'type' => 'string',
'show_in_rest' => true,
'single' => true,
'type' => 'string',
'sanitize_callback' => 'sanitize_text_field',
)
);
}
Expand Down

0 comments on commit 1f2f1f9

Please sign in to comment.