Use santize_key() in more places. Props WraithKenny. fixes #14910

git-svn-id: https://develop.svn.wordpress.org/trunk@16822 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Ryan Boren 2010-12-08 21:32:19 +00:00
parent 396b57920f
commit 00356f8e4a
2 changed files with 2 additions and 2 deletions

View File

@ -843,7 +843,7 @@ function wpmu_create_user( $user_name, $password, $email) {
}
function wpmu_create_blog($domain, $path, $title, $user_id, $meta = '', $site_id = 1) {
$domain = preg_replace( '/\s+/', '', sanitize_user( $domain, true ) );
$domain = preg_replace( '/\s+/', '', sanitize_key( $domain ) );
if ( is_subdomain_install() )
$domain = str_replace( '@', '', $domain );

View File

@ -352,7 +352,7 @@ function register_taxonomy( $taxonomy, $object_type, $args = array() ) {
unset( $args['capabilities'] );
$args['name'] = $taxonomy;
$args['object_type'] = (array) $object_type;
$args['object_type'] = is_array($object_type) ? array_map('sanitize_key', $object_type) : (array) sanitize_key($object_type);
$args['labels'] = get_taxonomy_labels( (object) $args );
$args['label'] = $args['labels']->name;