Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Post Terms: Removing wp_kses_post causing issue #68810

Open
wants to merge 1 commit into
base: trunk
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Removing wp_kses_post causing issue
  • Loading branch information
benazeer-ben committed Jan 21, 2025
commit 83c9fbbd3a4899f8cb26678abc62ba4251e90d39
4 changes: 2 additions & 2 deletions packages/block-library/src/post-terms/index.php
Original file line number Diff line number Diff line change
@@ -49,9 +49,9 @@
$post_terms = get_the_term_list(
$block->context['postId'],
$attributes['term'],
wp_kses_post( $prefix ),
$prefix,
'<span class="wp-block-post-terms__separator">' . esc_html( $separator ) . '</span>',
wp_kses_post( $suffix )
$suffix

Check failure on line 54 in packages/block-library/src/post-terms/index.php

GitHub Actions / PHP coding standards

Whitespace found at end of line
);

if ( is_wp_error( $post_terms ) || empty( $post_terms ) ) {
Loading