Notices during install caused by get_transient() and made worse by wp_rand()
|Reported by:||nacin||Owned by:|
During install, I saw about 75 of these:
Notice: Undefined variable: transient_option in C:\xampp\htdocs\ms\wp-includes\functions.php on line 690
This due to the way get_transient() doesn't properly handle WP_INSTALLING. Additionally, the errors multiplied because we fetch a transient in wp_rand() every time but may not always need it.
Patch fixes get_transient() and optimizes wp_rand().