[wp-trac] [WordPress Trac] #16282: PHP catchable error with get_term_link and WP3.1RC2

WordPress Trac noreply at wordpress.org
Sun Sep 27 16:31:49 UTC 2015


#16282: PHP catchable error with get_term_link and WP3.1RC2
----------------------------------------+-----------------------------
 Reporter:  illutic                     |       Owner:
     Type:  defect (bug)                |      Status:  reopened
 Priority:  normal                      |   Milestone:  Future Release
Component:  Taxonomy                    |     Version:  3.1
 Severity:  normal                      |  Resolution:
 Keywords:  has-patch needs-unit-tests  |     Focuses:  multisite
----------------------------------------+-----------------------------

Comment (by boonebgorges):

 In [changeset:"34628"]:
 {{{
 #!CommitTicketReference repository="" revision="34628"
 Add test for `get_term_by( 'slug' )` behavior with accented chars.

 When passing a value of 'slug' to `wp_insert_term()` that contains non-
 ASCII
 characters, WordPress converts accented characters to non-accented
 versions.
 (See `sanitize_title()` and `remove_accents()`.) The same conversion
 happens
 when fetching when fetching a term using a slug. In this way, it's
 possible to
 create a term and fetch it using the same accented string, even though the
 slug
 is actually stored with non-accented characters.

 See #16282.
 }}}

--
Ticket URL: <https://core.trac.wordpress.org/ticket/16282#comment:65>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list