-
Notifications
You must be signed in to change notification settings - Fork 17
phpcs indentation #50
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
base: master
Are you sure you want to change the base?
Conversation
| } | ||
|
|
||
| if ( true === $plugin['force_activation'] ) { | ||
| if ( true == $plugin['force_activation'] ) { |
There was a problem hiding this comment.
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 ==
includes/customizer.php
Outdated
| global $allowedposttags; | ||
| $output = wp_kses( $input, $allowedposttags); | ||
| global $allowedposttags; | ||
| $output = wp_kses( $input, $allowedposttags ); |
There was a problem hiding this comment.
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() ); |
There was a problem hiding this comment.
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?
includes/functions.php
Outdated
| ) | ||
|
|
||
| printf( | ||
| wp_kses( '<span class="%1$s">Posted on </span>%2$s<span class="%3$s"> by </span>%4$s', responsive_allowed_html() ), |
There was a problem hiding this comment.
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
includes/functions.php
Outdated
| 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() ), |
There was a problem hiding this comment.
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
includes/upsell/theme-upsell.php
Outdated
|
|
||
| <div class="theme-description"> | ||
| <p><?php echo $theme->description; ?></p> | ||
| <p><?php echo wp_kses_post( $theme->description ); ?></p> |
There was a problem hiding this comment.
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?
No description provided.