Added proper escaping.

This commit is contained in:
Frank419 2024-08-29 15:32:47 +08:00
parent c42a057571
commit 82b47c9804
2 changed files with 4 additions and 4 deletions

View File

@ -57,11 +57,11 @@ if( is_home() ) {
<?php if ( display_header_text() ): ?> <?php if ( display_header_text() ): ?>
<div class="footer-blog-description"> <div class="footer-blog-description">
<div class="footer-blog-title"> <div class="footer-blog-title">
<a href="<?php echo esc_url( home_url() ); ?>" class="blog-title-link"><?php echo get_bloginfo( 'name' ) ?></a> <a href="<?php echo esc_url( home_url() ); ?>" class="blog-title-link"><?php echo wp_kses_data( get_bloginfo( 'name' ) ) ?></a>
</div> </div>
<?php if( get_bloginfo( 'description' ) ): ?> <?php if( get_bloginfo( 'description' ) ): ?>
<div class="footer-blog-tagline"> <div class="footer-blog-tagline">
<?php echo get_bloginfo( 'description' ); ?> <?php echo wp_kses_data( get_bloginfo( 'description' ) ) ?>
</div> </div>
<?php endif; ?> <?php endif; ?>
</div> </div>

View File

@ -17,13 +17,13 @@ if ( !defined( 'WPINC' ) ) {
<?php printf( <?php printf(
/* translators: %s: Post publish time. */ /* translators: %s: Post publish time. */
esc_html__( 'Published on %s', 'minimalistflex' ), esc_html__( 'Published on %s', 'minimalistflex' ),
get_the_date() esc_html( get_the_date() )
) ?> ) ?>
<?php else: ?> <?php else: ?>
<?php printf( <?php printf(
/* translators: %s: Post last modified time. */ /* translators: %s: Post last modified time. */
esc_html__( 'Last modified on %s', 'minimalistflex' ), esc_html__( 'Last modified on %s', 'minimalistflex' ),
get_the_modified_date() esc_html( get_the_modified_date() )
) ?> ) ?>
<?php endif; ?> <?php endif; ?>
<?php endif; ?> <?php endif; ?>