Skip to content

Commit

Permalink
phpcs second time
Browse files Browse the repository at this point in the history
  • Loading branch information
timiwahalahti committed Sep 21, 2023
1 parent 50a049c commit bdeb1de
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -356,9 +356,9 @@ public function field_secret() {
<label for="camptix-attendance-generate"><?php esc_html_e( 'Generate a new secret link (old links will expire)', 'wordcamporg' ); ?></label>
<p class="description">
<?php if ( empty( $this->secret_generated ) ) {
printf( esc_html__( 'Link will expire automatically after two weeks from generating it.', 'wordcamporg' ), $this->secret_expiry );
echo esc_html( sprintf( _( 'Link will expire automatically after two weeks from generating it.', 'wordcamporg' ), $this->secret_expiry ) );
} else {
printf( esc_html__( 'Link will expire automatically on %s.', 'wordcamporg' ), wp_date( 'Y-m-d H:i:s', strtotime( "+{$this->secret_expiry}", strtotime( $this->secret_generated ) ) ) );
echo esc_html( sprintf( _( 'Link will expire automatically on %s.', 'wordcamporg' ), wp_date( 'Y-m-d H:i:s', strtotime( "+{$this->secret_expiry}", strtotime( $this->secret_generated ) ) ) ) );
} ?>
</p>
<?php
Expand Down

0 comments on commit bdeb1de

Please sign in to comment.