Changeset 19853 for trunk/wp-admin/includes/post.php
- Timestamp:
- 02/07/2012 06:06:12 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/includes/post.php
r19720 r19853 303 303 continue; 304 304 if ( is_taxonomy_hierarchical( $tax_name ) ) { 305 $tax_input[ $tax_name] = array_map( 'absint', $terms );305 $tax_input[ $tax_name ] = array_map( 'absint', $terms ); 306 306 } else { 307 $tax_input[$tax_name] = preg_replace( '/\s*,\s*/', ',', rtrim( trim($terms), ' ,' ) ); 308 $tax_input[$tax_name] = explode(',', $tax_input[$tax_name]); 307 $comma = _x( ',', 'tag delimiter' ); 308 if ( ',' !== $comma ) 309 $terms = str_replace( $comma, ',', $terms ); 310 $tax_input[ $tax_name ] = explode( ',', trim( $terms, " \n\t\r\0\x0B," ) ); 309 311 } 310 312 }
Note: See TracChangeset
for help on using the changeset viewer.