escape get_the_title

use wp_kses_post function on get_the_title to prevent potential
malicious issues.

Add wp_body_open() shim for sites older than 5.2

Bottom margin in image alignment

As proposed in #1273, `margin-botom: 1.5em;` added to all three image alignment classes.

tab line 178 inc/woocommerce.php

tab line 61 inc/custom-header.php

update additional get_the_title instances

switch from esc_html to wp_kses_post
This commit is contained in:
bmcculley 2019-07-25 23:55:58 -04:00
parent 04ead0d757
commit d1bb60c041
4 changed files with 6 additions and 6 deletions

View File

@ -33,14 +33,14 @@ if ( post_password_required() ) {
printf(
/* translators: 1: title. */
esc_html__( 'One thought on “%1$s”', '_s' ),
'<span>' . get_the_title() . '</span>'
'<span>' . wp_kses_post( get_the_title() ) . '</span>'
);
} else {
printf( // WPCS: XSS OK.
/* translators: 1: comment count number, 2: title. */
esc_html( _nx( '%1$s thought on &ldquo;%2$s&rdquo;', '%1$s thoughts on &ldquo;%2$s&rdquo;', $_s_comment_count, 'comments title', '_s' ) ),
number_format_i18n( $_s_comment_count ),
'<span>' . get_the_title() . '</span>'
'<span>' . wp_kses_post( get_the_title() ) . '</span>'
);
}
?>

View File

@ -86,7 +86,7 @@ if ( ! function_exists( '_s_entry_footer' ) ) :
),
)
),
get_the_title()
wp_kses_post( get_the_title() )
)
);
echo '</span>';
@ -103,7 +103,7 @@ if ( ! function_exists( '_s_entry_footer' ) ) :
),
)
),
get_the_title()
wp_kses_post( get_the_title() )
),
'<span class="edit-link">',
'</span>'

View File

@ -41,7 +41,7 @@
),
)
),
get_the_title()
wp_kses_post( get_the_title() )
),
'<span class="edit-link">',
'</span>'

View File

@ -43,7 +43,7 @@
),
)
),
get_the_title()
wp_kses_post( get_the_title() )
) );
wp_link_pages( array(