Replace settings outputs with suitable escape functions

This commit is contained in:
Brian Miyaji
2021-11-06 20:04:07 +09:00
parent fa8e3fdd73
commit bb597b2658
10 changed files with 18 additions and 18 deletions

View File

@@ -730,7 +730,7 @@ class SP_Countries {
* @return string
*/
public function get_base_country() {
$default = esc_attr( get_option('sportspress_default_country') );
$default = get_option('sportspress_default_country');
$country = ( ( $pos = strrpos( $default, ':' ) ) === false ) ? $default : substr( $default, 0, $pos );
return apply_filters( 'sportspress_countries_base_country', $country );