Sanitize in overview

This commit is contained in:
Brian Miyaji
2021-11-09 03:52:12 +09:00
parent 02891af11c
commit 716456c1de

View File

@@ -344,7 +344,7 @@ class SportsPress_Overview {
<?php endif; ?>
<?php else: $post_type = $_GET['type']; $taxonomy = $_GET['taxonomy']; // Filtered posts ?>
<?php else: $post_type = sanitize_key( $_GET['type'] ); $taxonomy = sanitize_key( $_GET['taxonomy'] ); // Filtered posts ?>
<?php if ( post_type_exists( $post_type ) ): ?>