Skip to content

Commit

Permalink
fixed - WPCS
Browse files Browse the repository at this point in the history
  • Loading branch information
SteveJonesDev committed Jun 25, 2024
1 parent 2b3d75c commit 8bfb72f
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
6 changes: 3 additions & 3 deletions single.php
Original file line number Diff line number Diff line change
Expand Up @@ -153,11 +153,11 @@ function eqd_single_after_entry_content() {
<th class="sr-only" scope="row"><?php echo esc_html( get_sub_field( 'company_name' ) ); ?></th>
<td>
<div class="td_content">
<?php if( $url ) { ?>
<a href="<?php echo wp_kses_post( $url['url'] ); ?>" <?php echo ! empty( $url['target'] ) ? wp_kses_post( "target='" . $url['target'] . "'" ) : ''; ?>>
<?php if ( $url ) { ?>
<a href="<?php echo wp_kses_post( $url['url'] ); ?>" <?php echo ! empty( $url['target'] ) ? wp_kses_post( "target='" . $url['target'] . "'" ) : ''; ?>>
<?php } ?>
<img src="<?php echo wp_kses_post( $logo['url'] ); ?>" alt="<?php echo wp_kses_post( $logo['alt'] ); ?>">
<?php if( $url ) { ?>
<?php if ( $url ) { ?>
</a>
<?php } ?>
<button class="btn-text modal-btn" data-modal="modal_disclosure_<?php echo wp_kses_post( get_row_index() ); ?>" aria-label="Disclosures for <?php echo wp_kses_post( $company_name ); ?>">Disclosures</button>
Expand Down
8 changes: 4 additions & 4 deletions template-parts/blocks/vendor-repeater/template.php
Original file line number Diff line number Diff line change
Expand Up @@ -75,11 +75,11 @@
<td>
<?php if ( $company_logo ) { ?>
<h3>
<?php if( $vendor_link ) { ?>
<?php if ( $vendor_link ) { ?>
<a href="<?php echo wp_kses_post( $vendor_link['url'] ); ?>" <?php echo ! empty( $vendor_link['target'] ) ? wp_kses_post( "target='" . $vendor_link['target'] . "'" ) : ''; ?>>
<?php } ?>
<img src="<?php echo wp_kses_post( $company_logo['url'] ); ?>" alt="<?php echo wp_kses_post( $company_logo['alt'] ); ?>">
<?php if( $vendor_link ) { ?>
<?php if ( $vendor_link ) { ?>
</a>
<?php } ?>
</h3>
Expand Down Expand Up @@ -217,11 +217,11 @@
<tr>
<td>
<h3>
<?php if( $vendor_link ) { ?>
<?php if ( $vendor_link ) { ?>
<a href="<?php echo wp_kses_post( $vendor_link['url'] ); ?>" <?php echo ! empty( $vendor_link['target'] ) ? wp_kses_post( "target='" . $vendor_link['target'] . "'" ) : ''; ?>>
<?php } ?>
<img src="<?php echo wp_kses_post( $company_logo['url'] ); ?>" alt="<?php echo wp_kses_post( $company_logo['alt'] ); ?>">
<?php if( $vendor_link ) { ?>
<?php if ( $vendor_link ) { ?>
</a>
<?php } ?>
</h3>
Expand Down

0 comments on commit 8bfb72f

Please sign in to comment.