diff --git a/includes/admin/importers/class-sp-player-importer.php b/includes/admin/importers/class-sp-player-importer.php index 9b0baac4..4e38691e 100644 --- a/includes/admin/importers/class-sp-player-importer.php +++ b/includes/admin/importers/class-sp-player-importer.php @@ -216,7 +216,7 @@ if ( class_exists( 'WP_Importer' ) ) { // Show Result echo '

- ' . sprintf( __( 'Import complete - imported %1$s players and skipped %2$s.', 'sportspress' ), $this->imported, $this->skipped ) . ' + ' . sprintf( esc_html__( 'Import complete - imported %1$s players and skipped %2$s.', 'sportspress' ), esc_html( $this->imported ), esc_html( $this->skipped ) ) . '

'; $this->import_end(); @@ -226,7 +226,7 @@ if ( class_exists( 'WP_Importer' ) ) { * Performs post-import cleanup of files and the cache */ function import_end() { - echo '

' . __( 'All done!', 'sportspress' ) . ' ' . __( 'View Players', 'sportspress' ) . '' . '

'; + echo '

' . esc_html__( 'All done!', 'sportspress' ) . ' ' . esc_html__( 'View Players', 'sportspress' ) . '' . '

'; do_action( 'import_end' ); } @@ -238,7 +238,7 @@ if ( class_exists( 'WP_Importer' ) ) { * @return void */ function header() { - echo '

' . __( 'Import Players', 'sportspress' ) . '

'; + echo '

' . esc_html__( 'Import Players', 'sportspress' ) . '

'; } /** @@ -249,8 +249,8 @@ if ( class_exists( 'WP_Importer' ) ) { */ function greet() { echo '
'; - echo '

' . __( 'Hi there! Choose a .csv file to upload, then click "Upload file and import".', 'sportspress' ) . '

'; - echo '

' . sprintf( __( 'Players need to be defined with columns in a specific order (8 columns). Click here to download a sample.', 'sportspress' ), plugin_dir_url( SP_PLUGIN_FILE ) . 'dummy-data/players-sample.csv' ) . '

'; + echo '

' . esc_html__( 'Hi there! Choose a .csv file to upload, then click "Upload file and import".', 'sportspress' ) . '

'; + echo '

' . sprintf( esc_html__( 'Players need to be defined with columns in a specific order (8 columns). Click here to download a sample.', 'sportspress' ), esc_url( plugin_dir_url( SP_PLUGIN_FILE ) ) . 'dummy-data/players-sample.csv' ) . '

'; wp_import_upload_form( 'admin.php?import=sp_player_csv&step=1' ); echo '
'; } @@ -267,7 +267,7 @@ if ( class_exists( 'WP_Importer' ) ) { - +
@@ -290,7 +290,7 @@ if ( class_exists( 'WP_Importer' ) ) {