diff --git a/includes/admin/post-types/class-sp-admin-cpt-calendar.php b/includes/admin/post-types/class-sp-admin-cpt-calendar.php index 67dd2f58..e4bf2ff2 100644 --- a/includes/admin/post-types/class-sp-admin-cpt-calendar.php +++ b/includes/admin/post-types/class-sp-admin-cpt-calendar.php @@ -96,7 +96,7 @@ class SP_Admin_CPT_Calendar extends SP_Admin_CPT { echo sizeof( $calendar->data() ); break; case 'sp_layout': - echo sp_array_value( SP()->formats->calendar, get_post_meta( $post_id, 'sp_format', true ), '—' ); + echo esc_html( sp_array_value( SP()->formats->calendar, get_post_meta( $post_id, 'sp_format', true ), '—' ) ); break; endswitch; } diff --git a/includes/admin/post-types/class-sp-admin-cpt-list.php b/includes/admin/post-types/class-sp-admin-cpt-list.php index 003f9dd1..7093819e 100644 --- a/includes/admin/post-types/class-sp-admin-cpt-list.php +++ b/includes/admin/post-types/class-sp-admin-cpt-list.php @@ -90,7 +90,7 @@ class SP_Admin_CPT_List extends SP_Admin_CPT { endif; break; case 'sp_layout': - echo sp_array_value( SP()->formats->list, get_post_meta( $post_id, 'sp_format', true ), '—' ); + echo esc_html( sp_array_value( SP()->formats->list, get_post_meta( $post_id, 'sp_format', true ), '—' ) ); break; endswitch; } diff --git a/includes/admin/post-types/class-sp-admin-cpt-player.php b/includes/admin/post-types/class-sp-admin-cpt-player.php index df584d6b..8e587890 100755 --- a/includes/admin/post-types/class-sp-admin-cpt-player.php +++ b/includes/admin/post-types/class-sp-admin-cpt-player.php @@ -89,7 +89,7 @@ class SP_Admin_CPT_Player extends SP_Admin_CPT { public function custom_columns( $column, $post_id ) { switch ( $column ): case 'sp_number': - echo get_post_meta ( $post_id, 'sp_number', true ); + echo esc_html( get_post_meta ( $post_id, 'sp_number', true ) ); break; case 'sp_position': echo get_the_terms( $post_id, 'sp_position' ) ? the_terms( $post_id, 'sp_position' ) : '—'; diff --git a/includes/admin/post-types/meta-boxes/class-sp-meta-box-calendar-feeds.php b/includes/admin/post-types/meta-boxes/class-sp-meta-box-calendar-feeds.php index 5dd3aa40..cb33d772 100644 --- a/includes/admin/post-types/meta-boxes/class-sp-meta-box-calendar-feeds.php +++ b/includes/admin/post-types/meta-boxes/class-sp-meta-box-calendar-feeds.php @@ -41,7 +41,7 @@ class SP_Meta_Box_Calendar_Feeds { } ?>

- +

diff --git a/includes/admin/post-types/meta-boxes/class-sp-meta-box-list-data.php b/includes/admin/post-types/meta-boxes/class-sp-meta-box-list-data.php index 95fea458..0dfb4762 100644 --- a/includes/admin/post-types/meta-boxes/class-sp-meta-box-list-data.php +++ b/includes/admin/post-types/meta-boxes/class-sp-meta-box-list-data.php @@ -158,7 +158,7 @@ class SP_Meta_Box_List_Data { $value = sp_array_value( $player_stats, $column, '' ); $placeholder = sp_array_value( sp_array_value( $placeholders, $player_id, array() ), $column, 0 ); ?> - +

- +

diff --git a/includes/admin/post-types/meta-boxes/class-sp-meta-box-team-lists.php b/includes/admin/post-types/meta-boxes/class-sp-meta-box-team-lists.php index bef53536..5cddb0e9 100644 --- a/includes/admin/post-types/meta-boxes/class-sp-meta-box-team-lists.php +++ b/includes/admin/post-types/meta-boxes/class-sp-meta-box-team-lists.php @@ -89,7 +89,7 @@ class SP_Meta_Box_Team_Lists { ID, 'sp_league' ) ? the_terms( $list->ID, 'sp_league' ) : '—'; ?> ID, 'sp_season' ) ? the_terms( $list->ID, 'sp_season' ) : '—'; ?> - formats->list, $format, '—' ); ?> + formats->list, $format, '—' ) ); ?> - sections, $section, __( 'Modules', 'sportspress' ) ); ?> + sections, $section, __( 'Modules', 'sportspress' ) ) ); ?> @@ -221,7 +221,7 @@ class SP_Settings_Modules extends SP_Settings_Page { - + @@ -229,7 +229,7 @@ class SP_Settings_Modules extends SP_Settings_Page { - + @@ -238,8 +238,8 @@ class SP_Settings_Modules extends SP_Settings_Page { > diff --git a/includes/admin/settings/class-sp-settings-page.php b/includes/admin/settings/class-sp-settings-page.php index 3dcca041..2e2a2c99 100644 --- a/includes/admin/settings/class-sp-settings-page.php +++ b/includes/admin/settings/class-sp-settings-page.php @@ -124,7 +124,7 @@ class SP_Settings_Page {

  • - +
    @@ -181,7 +181,7 @@ class SP_Settings_Page {
  • - +
    diff --git a/modules/sportspress-lazy-loading.php b/modules/sportspress-lazy-loading.php index adceea14..b05aa71f 100644 --- a/modules/sportspress-lazy-loading.php +++ b/modules/sportspress-lazy-loading.php @@ -234,10 +234,10 @@ class SportsPress_Lazy_Loading { switch( $player_sort ) { case 'name': - echo sp_get_player_name_then_number( $post->ID ); + echo esc_html( sp_get_player_name_then_number( $post->ID ) ); break; default: // 'jersey' - echo sp_get_player_name_with_number( $post->ID ); + echo esc_html( sp_get_player_name_with_number( $post->ID ) ); } ?> @@ -253,10 +253,10 @@ class SportsPress_Lazy_Loading { switch( $player_sort ) { case 'name': - echo sp_get_player_name_then_number( $post_id ); + echo esc_html( sp_get_player_name_then_number( $post_id ) ); break; default: // 'jersey' - echo sp_get_player_name_with_number( $post_id ); + echo esc_html( sp_get_player_name_with_number( $post_id ) ); } ?> diff --git a/templates/event-blocks.php b/templates/event-blocks.php index 9f79d16b..bd0939f6 100644 --- a/templates/event-blocks.php +++ b/templates/event-blocks.php @@ -174,13 +174,13 @@ if ( $title ) ID, 'sp_day', true ); if ( $matchday != '' ): ?> -
    ()
    +
    ()
    - ' . implode( ' - ', apply_filters( 'sportspress_event_blocks_team_result_or_time', $results, $event->ID ) ) . '', $permalink, $link_events ); ?> + ' . implode( ' - ', apply_filters( 'sportspress_event_blocks_team_result_or_time', $results, $event->ID ) ) . '', $permalink, $link_events ) ); ?>
    name; ?>
    @@ -195,7 +195,7 @@ if ( $title )

    - post_title, $permalink, $link_events ); ?> + post_title, $permalink, $link_events ) ); ?>