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 ) ) . '
' . __( '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 '' . __( '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 '