[wp-trac] [WordPress Trac] #57121: 'get_current_user_id' in 'gettext' filter causing memory error

WordPress Trac noreply at wordpress.org
Mon Feb 6 23:16:44 UTC 2023


#57121: 'get_current_user_id' in 'gettext' filter causing memory error
-------------------------------+---------------------
 Reporter:  adityaarora010196  |       Owner:  (none)
     Type:  defect (bug)       |      Status:  new
 Priority:  normal             |   Milestone:  6.1.2
Component:  Users              |     Version:  6.1
 Severity:  normal             |  Resolution:
 Keywords:  has-patch          |     Focuses:
-------------------------------+---------------------

Comment (by SergeyBiryukov):

 Writing a test for this is tricky, as `wp_salt()` is called via
 `wp_create_nonce()` in `wp_default_scripts()` and
 `wp_default_packages_inline_scripts()` as part of the general bootstrap
 routine before test suite initialization, so the `$duplicated_keys` static
 variable is already set and the loop cannot be triggered by a test.

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


More information about the wp-trac mailing list