Skip to content

Commit

Permalink
fix(pagination): removed last sanification otherwise remove the param…
Browse files Browse the repository at this point in the history
…eters (#726)
  • Loading branch information
Mte90 committed Feb 24, 2022
1 parent 7239064 commit b4d587b
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions plugins/events-manager/templates/events-list.php
Original file line number Diff line number Diff line change
Expand Up @@ -335,7 +335,7 @@ class="events__nav__link
$url = $url . '&view=' . esc_attr( trim( $view ) );
}
?>
<a href="/events/?pno=<?php print esc_attr( $previous_page ) . esc_attr( $url ); ?>" class="campaigns__pagination-link campaigns__pagination-link--arrow">
<a href="/events/?pno=<?php print esc_attr( $previous_page ) . $url; // phpcs:ignore ?>" class="campaigns__pagination-link campaigns__pagination-link--arrow">
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none">
<path d="M17 23L6 12L17 1" stroke="#0060DF" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/>
</svg>
Expand All @@ -347,7 +347,7 @@ class="campaigns__pagination-link campaigns__pagination-link--first"><?php print
&hellip;
<?php } ?>
<?php for ( $x = $page_min - 1; $x < $page_max; $x++ ) : ?>
<a href="/events/?pno=<?php print esc_attr( $x + 1 ) . esc_attr( $url ); ?>"
<a href="/events/?pno=<?php print esc_attr( $x + 1 ) . $url; // phpcs:ignore ?>"
class="campaigns__pagination-link
<?php
if ( $current_page === $x + 1 ) :
Expand Down Expand Up @@ -385,15 +385,15 @@ class="campaigns__pagination-link
$url = $url . '&view=' . esc_attr( trim( $view ) );
}
?>
<a href="/events/?pno=<?php print esc_attr( $total_pages ) . esc_attr( $url ); ?>"
<a href="/events/?pno=<?php print esc_attr( $total_pages ) . $url; // phpcs:ignore ?>"
class="campaigns__pagination-link
<?php
if ( $current_page === $total_pages ) :
?>
campaigns__pagination-link--active<?php endif; ?>"><?php print esc_attr( $total_pages ); ?>
</a>
<?php endif; ?>
<a href="/events/?pno=<?php print esc_attr( $next_page ) . esc_attr( $url ); ?>" class="campaigns__pagination-link campaigns__pagination-link--arrow">
<a href="/events/?pno=<?php print esc_attr( $next_page ) . $url; // phpcs:ignore ?>" class="campaigns__pagination-link campaigns__pagination-link--arrow">
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none">
<path d="M7 23L18 12L7 1" stroke="#0060DF" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/>
</svg>
Expand Down

0 comments on commit b4d587b

Please sign in to comment.