Skip to content

Commit 42a03b2

Browse files
authored
Apply suggestions from Copilot
Co-authored-by: Dion Hulse <dd32@dd32.id.au>
1 parent 0bc5c59 commit 42a03b2

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

public_html/wp-content/plugins/camptix/inc/class-camptix-admin-setup.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -277,7 +277,7 @@ public function admin_notice_supported_currencies() {
277277
<div class="notice notice-warning">
278278
<?php
279279
echo wpautop( sprintf(
280-
__( 'The <a href="%1$s">currently selected currency</a> is not supported by any of the <a href="%2$s">enabled payment methods</a>.' ),
280+
__( 'The <a href="%1$s">currently selected currency</a> is not supported by any of the <a href="%2$s">enabled payment methods</a>.', 'wordcamporg' ),
281281
esc_url( add_query_arg( 'tix_section', 'general', $base_url ) ),
282282
esc_url( add_query_arg( 'tix_section', 'payment', $base_url ) )
283283
) );
@@ -315,7 +315,7 @@ function field_checkbox( $args ) {
315315
'value' => ''
316316
),
317317
$args
318-
)
318+
);
319319

320320
?>
321321

public_html/wp-content/plugins/camptix/inc/class-camptix-admin-tools.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -343,7 +343,7 @@ function menu_tools_notify() {
343343
$errors[] = __( 'At least one segment condition must be defined.', 'wordcamporg' );
344344

345345
if ( empty( $_POST['tix-notify-segment-match'] ) )
346-
$error[] = __( 'Please select a segment match mode' );
346+
$errors[] = __( 'Please select a segment match mode' );
347347

348348
$conditions = json_decode( $_POST['tix-notify-segment-query'], true );
349349
if ( ! is_array( $conditions ) || count( $conditions ) < 1 )
@@ -352,7 +352,7 @@ function menu_tools_notify() {
352352
$recipients = $this->plugin->get_segment( $_POST['tix-notify-segment-match'], $conditions );
353353

354354
if ( count( $recipients ) < 1 ) {
355-
$errors[] = __( 'The selected segment does not match any recipients. Please try a again.', 'wordcamporg' );
355+
$errors[] = __( 'The selected segment does not match any recipients. Please try again.', 'wordcamporg' );
356356
}
357357

358358
// If everything went well.
@@ -813,7 +813,7 @@ function menu_tools_refund_admin_init() {
813813
'orderby' => 'ID',
814814
'fields' => 'ids',
815815
'order' => 'ASC',
816-
'cache_results' => 'false',
816+
'cache_results' => false,
817817
) ) ) {
818818

819819
// Mark attendee for refund

0 commit comments

Comments
 (0)