diff --git a/wp-includes/taxonomy.php b/wp-includes/taxonomy.php index 1f51ff9cd2..39b5b00423 100644 --- a/wp-includes/taxonomy.php +++ b/wp-includes/taxonomy.php @@ -1354,7 +1354,8 @@ function get_terms( $taxonomies, $args = '' ) { if ( ! empty( $args['name'] ) ) { $names = (array) $args['name']; foreach ( $names as &$_name ) { - $_name = sanitize_term_field( 'name', $_name, 0, reset( $taxonomies ), 'db' ); + // `sanitize_term_field()` returns slashed data. + $_name = stripslashes( sanitize_term_field( 'name', $_name, 0, reset( $taxonomies ), 'db' ) ); } $where .= " AND t.name IN ('" . implode( "', '", array_map( 'esc_sql', $names ) ) . "')"; diff --git a/wp-includes/version.php b/wp-includes/version.php index db10bb14bd..442363c8c2 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -4,7 +4,7 @@ * * @global string $wp_version */ -$wp_version = '4.5-alpha-1453175773216'; +$wp_version = '4.5-alpha-1453176612026'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.