[wp-trac] [WordPress Trac] #62713: Policies accordion does not work for plugin names with non-English characters

WordPress Trac noreply at wordpress.org
Thu Dec 19 07:06:52 UTC 2024


#62713: Policies accordion does not work for plugin names with non-English
characters
-------------------------------------------------+-------------------------
 Reporter:  ecgan                                |      Owner:  (none)
     Type:  defect (bug)                         |     Status:  new
 Priority:  normal                               |  Milestone:  Awaiting
                                                 |  Review
Component:  General                              |    Version:  6.7.1
 Severity:  normal                               |   Keywords:
  Focuses:  ui, javascript, administration,      |
  privacy                                        |
-------------------------------------------------+-------------------------
 In the Privacy > Policy Guide page (`/wp-admin/options-
 privacy.php?tab=policyguide`), there is a Policies accordion that shows
 plugins that call
 [https://developer.wordpress.org/reference/functions/wp_add_privacy_policy_content/
 wp_add_privacy_policy_content].

 When the plugin name is translated and contains non-English characters,
 the accordion does not expand for the plugin.

 For example, I am using WooCommerce Points and Rewards plugin. When I
 change my user profile language to "Français", the plugin name in the
 Policy Guide page is displayed as "Points et récompenses". Clicking on it
 does not expand the accordion. In the browser console, an error shows up
 that says:

 {{{
 Uncaught Error: Syntax error, unrecognized expression: #privacy-settings-
 accordion-block-points-et-r%c3%a9compenses
     at find.error (jquery.js?ver=3.7.1:1487:8)
     at tokenize (jquery.js?ver=3.7.1:2153:8)
     at select (jquery.js?ver=3.7.1:2612:20)
     at Function.find (jquery.js?ver=3.7.1:939:9)
     at Function.<anonymous> (jquery-migrate.js?ver=3.4.1:266:17)
     at obj.<computed> [as find] (jquery-migrate.js?ver=3.4.1:181:20)
     at jQuery.fn.init.find (jquery.js?ver=3.7.1:2822:11)
     at jQuery.fn.init (jquery.js?ver=3.7.1:2932:32)
     at obj.<computed>.<anonymous> (jquery-migrate.js?ver=3.4.1:226:17)
     at new obj.<computed> (jquery-migrate.js?ver=3.4.1:181:20)

 }}}

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/62713>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list