[2.6][API] decode before sanitize

Fixes #11874
This commit is contained in:
Mike Jolley 2016-09-12 13:46:01 +01:00
parent 804178b6d1
commit 0b6f1cbca8
1 changed files with 1 additions and 1 deletions

View File

@ -44,7 +44,7 @@ function wc_string_to_array( $string, $delimiter = ',' ) {
* @return string
*/
function wc_sanitize_taxonomy_name( $taxonomy ) {
return apply_filters( 'sanitize_taxonomy_name', urldecode( sanitize_title( $taxonomy ) ), $taxonomy );
return apply_filters( 'sanitize_taxonomy_name', sanitize_title( urldecode( $taxonomy ) ), $taxonomy );
}
/**