[wp-trac] [WordPress Trac] #50382: Language improvement: reconsider use of the word 'nonce', as used in WordPress

WordPress Trac noreply at wordpress.org
Sat Jun 13 15:10:11 UTC 2020


#50382: Language improvement: reconsider use of the word 'nonce', as used in
WordPress
--------------------------+------------------------------
 Reporter:  dartiss       |       Owner:  (none)
     Type:  enhancement   |      Status:  new
 Priority:  normal        |   Milestone:  Awaiting Review
Component:  Text Changes  |     Version:
 Severity:  normal        |  Resolution:
 Keywords:  2nd-opinion   |     Focuses:
--------------------------+------------------------------

Comment (by dartiss):

 Replying to [comment:2 SergeyBiryukov]:
 > Thanks for the ticket!
 >
 > Unfortunately, with functions like `wp_create_nonce()`,
 `wp_verify_nonce()`, or `wp_nonce_field()` being used
 [https://wpdirectory.net/search/01EAQ1EXDST2FJ0ZRPMPV5N9ZK 100,000+ times
 in 16,000+ plugins] and
 [https://wpdirectory.net/search/01EAQ1STGXM7FJ170KWQZ6APX4 7,000+ in 2,000
 themes], it doesn't seem like replacing them would be feasible.
 >
 > We could look into changing the output messages, however, as you
 mentioned, that would introduce confusion as to what the messages are
 referring to.

 It's true that we can't change that third party code and, yes, you're
 right about only changing the messages - we need a consistent wording
 policy.

 However, we could rename those functions and put aliases into place for
 backwards compatibility. The messages would refer to the new functions and
 the old name would only remain in place for the purposes of that
 compatibility. We could then push for developers to start using the new
 functions over time.

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


More information about the wp-trac mailing list