[wp-trac] [WordPress Trac] #18625: term_exists() doesn't make a difference between z and ẓ
WordPress Trac
wp-trac at lists.automattic.com
Fri Sep 9 12:23:26 UTC 2011
#18625: term_exists() doesn't make a difference between z and ẓ
--------------------------------+-----------------------------
Reporter: abdessamad idrissi | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Taxonomy | Version: 3.2.1
Severity: normal | Keywords:
--------------------------------+-----------------------------
I spent hours before discouvering why wp_insert_term doesn't want to
create some of my categories list;
{{{
$alphabet = array (
array( 's', 'sth' ),
array( 'ṣ', 'sth' ),
array( 'h', 'sth' ),
array( 'ḥ', 'sth' ),
array( 'd', 'sth' ),
array( 'ḍ', 'sth' )
);
foreach ($categories as $category )
{
if( term_exists( mb_strtolower($category[0]), 'category' ))
continue;
else
wp_insert_term( $category[0], 'category', array( 'slug'
=> $category[0] ) );
}
}}}
term_exists() doesn't make a difference between "normal characters" and
diacritic characters.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/18625>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list