Make WordPress Core


Ignore:
Timestamp:
02/07/2012 06:06:12 PM (13 years ago)
Author:
nacin
Message:

Allow localized commas to be used as tag separators. see #7897.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/post.php

    r19779 r19853  
    29082908        $tags = array();
    29092909
    2910     $tags = is_array($tags) ? $tags : explode( ',', trim($tags, " \n\t\r\0\x0B,") );
     2910    if ( ! is_array( $tags ) ) {
     2911        $comma = _x( ',', 'tag delimiter' );
     2912        if ( ',' !== $comma )
     2913            $tags = str_replace( $comma, ',', $tags );
     2914        $tags = explode( ',', trim( $tags, " \n\t\r\0\x0B," ) );
     2915    }
    29112916
    29122917    // Hierarchical taxonomies must always pass IDs rather than names so that children with the same
Note: See TracChangeset for help on using the changeset viewer.