[wp-trac] [WordPress Trac] #57725: Use of rand() function instead of wp_rand()
WordPress Trac
noreply at wordpress.org
Wed Feb 15 11:14:13 UTC 2023
#57725: Use of rand() function instead of wp_rand()
------------------------------+-----------------------------
Reporter: haritpanchal | Owner: (none)
Type: enhancement | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Filesystem API | Version:
Severity: normal | Keywords: needs-patch
Focuses: coding-standards |
------------------------------+-----------------------------
Filesystem API function {{{wp_edit_theme_plugin_file}}} using PHP
{{{rand()}}} function rather than WP's {{{wp_rand()}}}. Can we enhance
this as {{{rand()}}} is discouraged?
File path: wp-admin/includes/file.php
Line: 524 and 526
--
Ticket URL: <https://core.trac.wordpress.org/ticket/57725>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list