Skip to content

Conversation

@manishvermahbwsl
Copy link
Contributor

No description provided.

}

if ( true === $plugin['force_activation'] ) {
if ( true == $plugin['force_activation'] ) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Check if phpcs mentioned to to change from === to ==

global $allowedposttags;
$output = wp_kses( $input, $allowedposttags);
global $allowedposttags;
$output = wp_kses( $input, $allowedposttags );
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Check this function
Haer wp_kses is used. You can use this in other places


echo wp_kses_post( '<li class="sky-tab-content-' . $i . '"><div class="typography">' ); // echo<p>;.
foreach ( $sub as $opt ) {
echo wp_kses( $this->sub_heading( $this->parse_args( $opt ) ), responsive_allowed_html() );
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Where responsive_allowed_html () written?

)

printf(
wp_kses( '<span class="%1$s">Posted on </span>%2$s<span class="%3$s"> by </span>%4$s', responsive_allowed_html() ),
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Here you have wp_kses with responsive_allowed_html function
Do we want to allow all html defined in in this function here?
Read https://codex.wordpress.org/Function_Reference/wp_kses for refrence

sprintf(
'<span class="author vcard"><a class="url fn n" href="%1$s" title="%2$s">%3$s</a></span>',
esc_url( get_author_posts_url( get_the_author_meta( 'ID' ) ) ),
sprintf( wp_kses( 'View all posts by %s', 'responsive' ), get_the_author() ),
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Second parameter not used for wp_kses
It is required


<div class="theme-description">
<p><?php echo $theme->description; ?></p>
<p><?php echo wp_kses_post( $theme->description ); ?></p>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why wp_kses_post here and esc_html on 154?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants