[wp-trac] [WordPress Trac] #24665: xml-rpc wp.newPost - A term with the name provided already exists.
WordPress Trac
noreply at wordpress.org
Tue Jul 2 09:13:35 UTC 2013
#24665: xml-rpc wp.newPost - A term with the name provided already exists.
-------------------------------+------------------------------
Reporter: bigwolk | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: XML-RPC | Version: 3.5.1
Severity: normal | Resolution:
Keywords: reporter-feedback |
-------------------------------+------------------------------
Comment (by SergeyBiryukov):
Replying to [comment:3 bigwolk]:
> Method get_term_by( 'name', $term_name, $taxonomy) on line 1178 don't
manage with polish national signs like ęąóżźć.
Might be related to #18625. Could not reproduce though:
1. Created a category with `ęąóżźć` as a name.
2. Put `$category = get_term_by( 'name', 'ęąóżźć', 'category' );` in a PHP
file.
3. Made sure the file is encoded in UTF-8.
4. `get_term_by()` returned the correct category object:
{{{
stdClass Object
(
[term_id] => 205
[name] => ęąóżźć
[slug] => eaozzc
[term_group] => 0
[term_taxonomy_id] => 248
[taxonomy] => category
[description] =>
[parent] => 0
[count] => 0
)
}}}
--
Ticket URL: <http://core.trac.wordpress.org/ticket/24665#comment:4>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list