diff --git a/includes/admin/importers/class-sp-event-importer.php b/includes/admin/importers/class-sp-event-importer.php index 75cdd974..55e81206 100644 --- a/includes/admin/importers/class-sp-event-importer.php +++ b/includes/admin/importers/class-sp-event-importer.php @@ -494,8 +494,8 @@ if ( class_exists( 'WP_Importer' ) ) { function greet() { 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' ) . '
'; + echo '' . sprintf( __( '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( __( 'Supports CSV files generated by LeagueLobster.', 'sportspress' ), 'http://tboy.co/leaguelobster' ) . '
'; wp_import_upload_form( 'admin.php?import=sp_event_csv&step=1' ); echo '- ' . sprintf( __( 'Import complete - imported %1$s rows and skipped %2$s.', 'sportspress' ), $this->imported, $this->skipped ) . ' + ' . sprintf( esc_html__( 'Import complete - imported %1$s rows and skipped %2$s.', 'sportspress' ), esc_html( $this->imported ), esc_html( $this->skipped ) ) . '
' . __( 'All done!', 'sportspress' ) . ' $event, @@ -153,7 +153,7 @@ if ( class_exists( 'WP_Importer' ) ) { ), 'post.php' ) - ) . '">' . __( 'View Event', 'sportspress' ) . '' . '
'; + ) ) . '">' . esc_html__( 'View Event', 'sportspress' ) . '' . ''; do_action( 'import_end' ); } @@ -177,11 +177,11 @@ if ( class_exists( 'WP_Importer' ) ) { 'step' => '1', ) ); - echo '' . __( 'Hi there! Choose a .csv file to upload, then click "Upload file and import".', 'sportspress' ) . '
'; - echo '' . sprintf( __( 'Box scores 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/event-performance-sample.csv' ) . '
'; + echo '' . esc_html__( 'Hi there! Choose a .csv file to upload, then click "Upload file and import".', 'sportspress' ) . '
'; + echo '' . sprintf( __( 'Box scores 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/event-performance-sample.csv' ) . '
'; wp_import_upload_form( add_query_arg( $args, 'admin.php' ) ); } else { - echo '' . sprintf( __( 'Select %s', 'sportspress' ), __( 'Event', 'sportspress' ) ) . '
'; + echo '' . sprintf( esc_html__( 'Select %s', 'sportspress' ), esc_html__( 'Event', 'sportspress' ) ) . '
'; } echo ''; @@ -203,10 +203,10 @@ if ( class_exists( 'WP_Importer' ) ) {| - - + + @@ -214,7 +214,7 @@ if ( class_exists( 'WP_Importer' ) ) { | |||||||||||||
|
- ' . 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 ) ) . ' '; $this->import_end(); @@ -270,7 +270,7 @@ if ( class_exists( 'WP_Importer' ) ) { * Performs post-import cleanup of files and the cache */ function import_end() { - echo '' . __( 'All done!', 'sportspress' ) . ' ' . __( 'View Fixtures', 'sportspress' ) . '' . ' '; + echo '' . esc_html__( 'All done!', 'sportspress' ) . ' ' . esc_html__( 'View Fixtures', 'sportspress' ) . '' . ' '; do_action( 'import_end' ); } @@ -283,8 +283,8 @@ if ( class_exists( 'WP_Importer' ) ) { */ function greet() { echo '';
- echo ' ';
@@ -301,18 +301,18 @@ if ( class_exists( 'WP_Importer' ) ) {
' . __( 'Hi there! Choose a .csv file to upload, then click "Upload file and import".', 'sportspress' ) . ' '; - echo '' . sprintf( __( 'Fixtures need to be defined with columns in a specific order (4+ columns). Click here to download a sample.', 'sportspress' ), plugin_dir_url( SP_PLUGIN_FILE ) . 'dummy-data/fixtures-sample.csv' ) . ' '; + echo '' . esc_html__( 'Hi there! Choose a .csv file to upload, then click "Upload file and import".', 'sportspress' ) . ' '; + echo '' . sprintf( __( 'Fixtures need to be defined with columns in a specific order (4+ columns). Click here to download a sample.', 'sportspress' ), esc_url( plugin_dir_url( SP_PLUGIN_FILE ) ) . 'dummy-data/fixtures-sample.csv' ) . ' '; echo '' . sprintf( __( 'Supports CSV files generated by LeagueLobster.', 'sportspress' ), 'http://tboy.co/leaguelobster' ) . ' '; wp_import_upload_form( 'admin.php?import=sp_fixture_csv&step=1' ); echo '
|