rebase on oct-10-2023
This commit is contained in:
@@ -156,7 +156,7 @@ if ( ! class_exists( 'BSF_AIOSRS_Pro_Schema' ) ) {
|
||||
|
||||
check_ajax_referer( 'schema_nonce', 'nonce' );
|
||||
|
||||
$item_type = filter_input( INPUT_POST, 'itemType', FILTER_SANITIZE_STRING );
|
||||
$item_type = sanitize_text_field( $_POST['itemType'] );
|
||||
$post_id = filter_input( INPUT_POST, 'post_id', FILTER_VALIDATE_INT );
|
||||
$item_type_fields = self::$schema_item_types[ $item_type ]['subkeys'];
|
||||
|
||||
@@ -4497,7 +4497,7 @@ if ( ! class_exists( 'BSF_AIOSRS_Pro_Schema' ) ) {
|
||||
switch ( $sanitize_filter ) {
|
||||
|
||||
case 'FILTER_SANITIZE_STRING':
|
||||
$meta_value = filter_input( INPUT_POST, $key, FILTER_SANITIZE_STRING );
|
||||
$meta_value = sanitize_text_field( $_POST[ $key ] );
|
||||
break;
|
||||
|
||||
case 'FILTER_SANITIZE_URL':
|
||||
|
||||
Reference in New Issue
Block a user