diff --git a/includes/admin/importers/class-sp-event-importer.php b/includes/admin/importers/class-sp-event-importer.php index 24fc46ce..75cdd974 100644 --- a/includes/admin/importers/class-sp-event-importer.php +++ b/includes/admin/importers/class-sp-event-importer.php @@ -470,7 +470,7 @@ if ( class_exists( 'WP_Importer' ) ) { // Show Result echo '
- ' . sprintf( __( 'Import complete - imported %1$s events and skipped %2$s.', 'sportspress' ), $this->imported, $this->skipped ) . ' + ' . sprintf( esc_html__( 'Import complete - imported %1$s events and skipped %2$s.', 'sportspress' ), esc_html( $this->imported ), esc_html( $this->skipped ) ) . '
' . __( 'All done!', 'sportspress' ) . ' ' . __( 'View Events', 'sportspress' ) . '' . '
'; + echo '' . esc_html__( 'All done!', 'sportspress' ) . ' ' . esc_html__( 'View Events', 'sportspress' ) . '' . '
'; do_action( 'import_end' ); } @@ -493,9 +493,9 @@ if ( class_exists( 'WP_Importer' ) ) { */ function greet() { echo '' . __( 'Hi there! Choose a .csv file to upload, then click "Upload file and import".', 'sportspress' ) . '
'; - echo '' . sprintf( __( 'Events need to be defined with columns in a specific order (3+ columns). Click here to download a sample.', 'sportspress' ), plugin_dir_url( SP_PLUGIN_FILE ) . 'dummy-data/events-sample.csv' ) . '
'; - echo '' . sprintf( __( 'Supports CSV files generated by LeagueLobster.', 'sportspress' ), 'http://tboy.co/leaguelobster' ) . '
'; + echo '' . esc_html__( 'Hi there! Choose a .csv file to upload, then click "Upload file and import".', 'sportspress' ) . '
'; + echo '' . sprintf( esc_html__( 'Events need to be defined with columns in a specific order (3+ columns). Click here to download a sample.', 'sportspress' ), esc_url( plugin_dir_url( SP_PLUGIN_FILE ) ) . 'dummy-data/events-sample.csv' ) . '
'; + echo '' . sprintf( esc_html__( 'Supports CSV files generated by LeagueLobster.', 'sportspress' ), 'http://tboy.co/leaguelobster' ) . '
'; wp_import_upload_form( 'admin.php?import=sp_event_csv&step=1' ); echo '- imported + 1, $this->imported + 1 ); ?> + imported + 1 ), esc_html( $this->imported + 1 ) ); ?>
@@ -204,8 +204,8 @@ endwhile;
' . __( 'Sorry, there has been an error.', 'sportspress' ) . '
';
- _e( 'The CSV is invalid.', 'sportspress' ) . '
' . esc_html__( 'Sorry, there has been an error.', 'sportspress' ) . '
';
+ esc_html_e( 'The CSV is invalid.', 'sportspress' ) . '
' . __( 'Sorry, there has been an error.', 'sportspress' ) . '
';
+ echo '
' . esc_html__( 'Sorry, there has been an error.', 'sportspress' ) . '
';
echo esc_html( $file['error'] ) . '
' . __( 'Sorry, there has been an error.', 'sportspress' ) . '
'; + echo '' . esc_html__( 'Sorry, there has been an error.', 'sportspress' ) . '
'; return false; } @@ -271,7 +271,7 @@ endwhile; * @return void */ function header() { - echo '- ' . sprintf( __( 'Import complete - imported %1$s officials and skipped %2$s.', 'sportspress' ), $this->imported, $this->skipped ) . ' + ' . sprintf( esc_html__( 'Import complete - imported %1$s officials and skipped %2$s.', 'sportspress' ), esc_html( $this->imported ), esc_html( $this->skipped ) ) . '
' . __( 'All done!', 'sportspress' ) . ' ' . __( 'View Officials', 'sportspress' ) . '' . '
'; + echo '' . esc_html__( 'All done!', 'sportspress' ) . ' ' . esc_html__( 'View Officials', 'sportspress' ) . '' . '
'; do_action( 'import_end' ); } @@ -105,7 +105,7 @@ if ( class_exists( 'WP_Importer' ) ) { * @return void */ function header() { - echo '' . __( 'Hi there! Choose a .csv file to upload, then click "Upload file and import".', 'sportspress' ) . '
'; - echo '' . sprintf( __( 'Officials need to be defined with columns in a specific order. Click here to download a sample.', 'sportspress' ), plugin_dir_url( SP_PLUGIN_FILE ) . 'dummy-data/officials-sample.csv' ) . '
'; + echo '' . esc_html__( 'Hi there! Choose a .csv file to upload, then click "Upload file and import".', 'sportspress' ) . '
'; + echo '' . sprintf( esc_html__( 'Officials need to be defined with columns in a specific order. Click here to download a sample.', 'sportspress' ), esc_url( plugin_dir_url( SP_PLUGIN_FILE ) ) . 'dummy-data/officials-sample.csv' ) . '
'; wp_import_upload_form( 'admin.php?import=sp_official_csv&step=1' ); echo '- ' . sprintf( __( 'Import complete - imported %1$s teams and skipped %2$s.', 'sportspress' ), $this->imported, $this->skipped ) . ' + ' . sprintf( esc_html__( 'Import complete - imported %1$s teams and skipped %2$s.', 'sportspress' ), esc_html( $this->imported ), esc_html( $this->skipped ) ) . '
' . __( 'All done!', 'sportspress' ) . ' ' . __( 'View Teams', 'sportspress' ) . '' . '
'; + echo '' . esc_html__( 'All done!', 'sportspress' ) . ' ' . esc_html__( 'View Teams', 'sportspress' ) . '' . '
'; do_action( 'import_end' ); } @@ -143,8 +143,8 @@ if ( class_exists( 'WP_Importer' ) ) { */ function greet() { echo '' . __( 'Hi there! Choose a .csv file to upload, then click "Upload file and import".', 'sportspress' ) . '
'; - echo '' . sprintf( __( 'Teams need to be defined with columns in a specific order (3 columns). Click here to download a sample.', 'sportspress' ), plugin_dir_url( SP_PLUGIN_FILE ) . 'dummy-data/teams-sample.csv' ) . '
'; + echo '' . esc_html__( 'Hi there! Choose a .csv file to upload, then click "Upload file and import".', 'sportspress' ) . '
'; + echo '' . sprintf( esc_html__( 'Teams need to be defined with columns in a specific order (3 columns). Click here to download a sample.', 'sportspress' ), esc_url( plugin_dir_url( SP_PLUGIN_FILE ) ) . 'dummy-data/teams-sample.csv' ) . '
'; wp_import_upload_form( 'admin.php?import=sp_team_csv&step=1' ); echo '