From e8c309baa16bca61ce43e068be6e60d04cbd7abc Mon Sep 17 00:00:00 2001 From: Mohammad Jangda <batmoo@gmail.com> Date: Thu, 25 Apr 2013 03:44:09 +0000 Subject: [PATCH] Use sanitize_text_field instead of sanitize_key meta and taxonomy names can have spaces and other values --- includes/class-syndication-wp-xml-client.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/includes/class-syndication-wp-xml-client.php b/includes/class-syndication-wp-xml-client.php index fdea225..18c552c 100644 --- a/includes/class-syndication-wp-xml-client.php +++ b/includes/class-syndication-wp-xml-client.php @@ -718,7 +718,7 @@ class Syndication_WP_XML_Client implements Syndication_Client { unset($row['xpath']); - $row_data['field'] = sanitize_key( $row['field'] ); + $row_data['field'] = sanitize_text_field( $row['field'] ); if ( ! isset( $custom_nodes[$xpath] ) ) $custom_nodes[$xpath] = array(); @@ -875,4 +875,4 @@ class Syndication_WP_XML_Client implements Syndication_Client { return wp_remote_retrieve_body( $request ); } -} \ No newline at end of file +} -- GitLab