diff --git a/src/wp-admin/includes/file.php b/src/wp-admin/includes/file.php
index 774f3b0151..7a37e04cc4 100644
a
|
b
|
function wp_edit_theme_plugin_file( $args ) { |
521 | 521 | |
522 | 522 | if ( $is_active && 'php' === $extension ) { |
523 | 523 | |
524 | | $scrape_key = md5( rand() ); |
| 524 | $scrape_key = md5( wp_rand() ); |
525 | 525 | $transient = 'scrape_key_' . $scrape_key; |
526 | | $scrape_nonce = (string) rand(); |
| 526 | $scrape_nonce = (string) wp_rand(); |
527 | 527 | // It shouldn't take more than 60 seconds to make the two loopback requests. |
528 | 528 | set_transient( $transient, $scrape_nonce, 60 ); |
529 | 529 | |