[wp-trac] [WordPress Trac] #63334: `switch_to_locale()` overwrites custom object types for core taxonomies

WordPress Trac noreply at wordpress.org
Tue Apr 22 15:29:47 UTC 2025


#63334: `switch_to_locale()` overwrites custom object types for core taxonomies
--------------------------+------------------------------
 Reporter:  Chouby        |       Owner:  (none)
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  Awaiting Review
Component:  I18N          |     Version:  4.7
 Severity:  normal        |  Resolution:
 Keywords:                |     Focuses:
--------------------------+------------------------------

Comment (by swissspidy):

 Thanks for your report!

 For context:

 IIRC we added the hooks there to fix post type and taxonomy labels when
 changing locales. It's a workaround for issues such as #38643 and #41305.

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


More information about the wp-trac mailing list