Skip to content

Commit

Permalink
Check link for row
Browse files Browse the repository at this point in the history
  • Loading branch information
mukeshpanchal27 committed Oct 30, 2023
1 parent b8fe450 commit 55d8780
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions templates/results-row.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,12 @@
</td>
<# if ( data.hasLinks ) { #>
<td>
<a href="{{data.link}}" target="_blank">
<?php esc_html_e( 'View in code editor', 'plugin-check' ); ?>
<span class="screen-reader-text"><?php esc_html_e( '(opens in a new tab)', 'plugin-check' ); ?></span>
</a>
<# if ( data.link ) { #>
<a href="{{data.link}}" target="_blank">
<?php esc_html_e( 'View in code editor', 'plugin-check' ); ?>
<span class="screen-reader-text"><?php esc_html_e( '(opens in a new tab)', 'plugin-check' ); ?></span>
</a>
<# } #>
</td>
<# } #>
</tr>
Expand Down

0 comments on commit 55d8780

Please sign in to comment.