Opened 14 years ago
Closed 14 years ago
#12144 closed defect (bug) (fixed)
Notices during install caused by get_transient() and made worse by wp_rand()
Reported by: | nacin | Owned by: | |
---|---|---|---|
Milestone: | 3.0 | Priority: | normal |
Severity: | normal | Version: | |
Component: | Optimization | Keywords: | has-patch |
Focuses: | Cc: |
Description
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().
Attachments (1)
Change History (6)
Note: See
TracTickets for help on using
tickets.
Apparently this was caused by [12973], which I think deserves a closer look.