Escape output of vars in SPEC, STAFF and STATISTIC Admin Classes
This commit is contained in:
@@ -55,7 +55,7 @@ class SP_Admin_CPT_Spec extends SP_Admin_CPT {
|
|||||||
switch ( $column ):
|
switch ( $column ):
|
||||||
case 'sp_key':
|
case 'sp_key':
|
||||||
global $post;
|
global $post;
|
||||||
echo $post->post_name;
|
echo esc_attr( $post->post_name );
|
||||||
break;
|
break;
|
||||||
case 'sp_description':
|
case 'sp_description':
|
||||||
global $post;
|
global $post;
|
||||||
|
|||||||
@@ -92,7 +92,7 @@ class SP_Admin_CPT_Staff extends SP_Admin_CPT {
|
|||||||
if ( ! $team_id ) continue;
|
if ( ! $team_id ) continue;
|
||||||
$team = get_post( $team_id );
|
$team = get_post( $team_id );
|
||||||
if ( $team ):
|
if ( $team ):
|
||||||
echo $team->post_title;
|
echo esc_attr( $team->post_title );
|
||||||
if ( in_array( $team_id, $current_teams ) ):
|
if ( in_array( $team_id, $current_teams ) ):
|
||||||
echo '<span class="dashicons dashicons-yes" title="' . __( 'Current Team', 'sportspress' ) . '"></span>';
|
echo '<span class="dashicons dashicons-yes" title="' . __( 'Current Team', 'sportspress' ) . '"></span>';
|
||||||
endif;
|
endif;
|
||||||
|
|||||||
@@ -61,7 +61,7 @@ class SP_Admin_CPT_Statistic extends SP_Admin_CPT {
|
|||||||
break;
|
break;
|
||||||
case 'sp_key':
|
case 'sp_key':
|
||||||
global $post;
|
global $post;
|
||||||
echo $post->post_name;
|
echo esc_attr( $post->post_name );
|
||||||
break;
|
break;
|
||||||
case 'sp_equation':
|
case 'sp_equation':
|
||||||
echo sp_get_post_equation( $post_id );
|
echo sp_get_post_equation( $post_id );
|
||||||
@@ -71,7 +71,7 @@ class SP_Admin_CPT_Statistic extends SP_Admin_CPT {
|
|||||||
break;
|
break;
|
||||||
case 'sp_description':
|
case 'sp_description':
|
||||||
global $post;
|
global $post;
|
||||||
echo '<span class="description">' . $post->post_excerpt . '</span>';
|
echo '<span class="description">' . wp_kses_post( $post->post_excerpt ) . '</span>';
|
||||||
break;
|
break;
|
||||||
endswitch;
|
endswitch;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user