Add sanitization to performance importer

This commit is contained in:
Brian Miyaji
2021-11-09 03:44:03 +09:00
parent c7302dfc80
commit 91da68f353

View File

@@ -167,10 +167,10 @@ if ( class_exists( 'WP_Importer' ) ) {
* @return void
*/
function options() {
$event = sp_array_value( $_REQUEST, 'event', 0 );
$teams = sp_array_value( $_REQUEST, 'teams', 0 );
$index = sp_array_value( $_REQUEST, 'index', 0 );
$team = sp_array_value( $_REQUEST, 'team', 0 );
$event = sp_array_value( $_REQUEST, 'event', 0, 'key' );
$teams = sp_array_value( $_REQUEST, 'teams', 0, 'key' );
$index = sp_array_value( $_REQUEST, 'index', 0, 'key' );
$team = sp_array_value( $_REQUEST, 'team', 0, 'key' );
$include = get_post_meta( $event, 'sp_team', false );
?>
<table class="form-table">