Escape outputs
This commit is contained in:
@@ -35,28 +35,28 @@ if ( ! class_exists( 'SP_Admin_Importers' ) ) :
|
||||
'sportspress_importers',
|
||||
array(
|
||||
'sp_event_csv' => array(
|
||||
'name' => __( 'SportsPress Events (CSV)', 'sportspress' ),
|
||||
'description' => __( 'Import <strong>events</strong> from a csv file.', 'sportspress' ),
|
||||
'name' => esc_attr__( 'SportsPress Events (CSV)', 'sportspress' ),
|
||||
'description' => esc_attr__( 'Import <strong>events</strong> from a csv file.', 'sportspress' ),
|
||||
'callback' => array( $this, 'events_importer' ),
|
||||
),
|
||||
'sp_fixture_csv' => array(
|
||||
'name' => __( 'SportsPress Fixtures (CSV)', 'sportspress' ),
|
||||
'description' => __( 'Import <strong>upcoming events</strong> from a csv file.', 'sportspress' ),
|
||||
'name' => esc_attr__( 'SportsPress Fixtures (CSV)', 'sportspress' ),
|
||||
'description' => esc_attr__( 'Import <strong>upcoming events</strong> from a csv file.', 'sportspress' ),
|
||||
'callback' => array( $this, 'fixtures_importer' ),
|
||||
),
|
||||
'sp_team_csv' => array(
|
||||
'name' => __( 'SportsPress Teams (CSV)', 'sportspress' ),
|
||||
'description' => __( 'Import <strong>teams</strong> from a csv file.', 'sportspress' ),
|
||||
'name' => esc_attr__( 'SportsPress Teams (CSV)', 'sportspress' ),
|
||||
'description' => esc_attr__( 'Import <strong>teams</strong> from a csv file.', 'sportspress' ),
|
||||
'callback' => array( $this, 'teams_importer' ),
|
||||
),
|
||||
'sp_player_csv' => array(
|
||||
'name' => __( 'SportsPress Players (CSV)', 'sportspress' ),
|
||||
'description' => __( 'Import <strong>players</strong> from a csv file.', 'sportspress' ),
|
||||
'name' => esc_attr__( 'SportsPress Players (CSV)', 'sportspress' ),
|
||||
'description' => esc_attr__( 'Import <strong>players</strong> from a csv file.', 'sportspress' ),
|
||||
'callback' => array( $this, 'players_importer' ),
|
||||
),
|
||||
'sp_staff_csv' => array(
|
||||
'name' => __( 'SportsPress Staff (CSV)', 'sportspress' ),
|
||||
'description' => __( 'Import <strong>staff</strong> from a csv file.', 'sportspress' ),
|
||||
'name' => esc_attr__( 'SportsPress Staff (CSV)', 'sportspress' ),
|
||||
'description' => esc_attr__( 'Import <strong>staff</strong> from a csv file.', 'sportspress' ),
|
||||
'callback' => array( $this, 'staff_importer' ),
|
||||
),
|
||||
)
|
||||
@@ -64,8 +64,8 @@ if ( ! class_exists( 'SP_Admin_Importers' ) ) :
|
||||
|
||||
if ( 'import.php' !== $pagenow ) {
|
||||
$importers['sp_event_performance_csv'] = array(
|
||||
'name' => __( 'SportsPress Box Score (CSV)', 'sportspress' ),
|
||||
'description' => '<a href="' . admin_url( add_query_arg( array( 'post_type' => 'sp_event' ), 'edit.php' ) ) . '">' . sprintf( __( 'Select %s', 'sportspress' ), __( 'Event', 'sportspress' ) ) . '</a>',
|
||||
'name' => esc_attr__( 'SportsPress Box Score (CSV)', 'sportspress' ),
|
||||
'description' => '<a href="' . admin_url( add_query_arg( array( 'post_type' => 'sp_event' ), 'edit.php' ) ) . '">' . sprintf( esc_attr__( 'Select %s', 'sportspress' ), esc_attr__( 'Event', 'sportspress' ) ) . '</a>',
|
||||
'callback' => array( $this, 'event_performance_importer' ),
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user