Used === instead of ==. Improved security.
This commit is contained in:
+3
-3
@@ -10,10 +10,10 @@ if ( !defined( 'WPINC' ) ) {
|
||||
<div class="minimalistflex-author">
|
||||
<?php $id = get_the_author_meta( 'ID' ); ?>
|
||||
<h1 class="author-title panel">
|
||||
<?php if ( get_theme_mod( 'minimalistflex_layout_author_title', 'yes' ) == 'yes' ): ?>
|
||||
<?php if ( get_theme_mod( 'minimalistflex_layout_author_title', 'yes' ) === 'yes' ): ?>
|
||||
<?php the_archive_title() ?>
|
||||
<?php endif; ?>
|
||||
<div class="author-page-avatar<?php if ( user_can( $id, 'administrator' ) && get_theme_mod( 'minimalistflex_layout_author_admin', 'yes' ) == 'yes' ) {
|
||||
<div class="author-page-avatar<?php if ( user_can( $id, 'administrator' ) && get_theme_mod( 'minimalistflex_layout_author_admin', 'yes' ) === 'yes' ) {
|
||||
echo ' author-admin';
|
||||
} ?>" aria-hidden="true">
|
||||
<?php echo get_avatar( $id, 150 ); ?>
|
||||
@@ -37,7 +37,7 @@ if ( !defined( 'WPINC' ) ) {
|
||||
?>
|
||||
<?php while ( $i < count( $metas ) ): ?>
|
||||
<?php $meta = get_the_author_meta( $metas[$i] ); ?>
|
||||
<?php if ( strlen( $meta ) && get_theme_mod( 'minimalistflex_layout_author_elements_' . $metas[$i], 'yes' ) == 'yes' ): ?>
|
||||
<?php if ( strlen( $meta ) && get_theme_mod( 'minimalistflex_layout_author_elements_' . $metas[$i], 'yes' ) === 'yes' ): ?>
|
||||
<div class="author-detail">
|
||||
<h2><?php echo $titles[$i] ?></h2>
|
||||
<?php echo esc_html( $meta ) ?>
|
||||
|
||||
Reference in New Issue
Block a user