Opened 16 years ago
Closed 16 years ago
#13029 closed defect (bug) (fixed)
Evaluation of undeclared variable in get_site_option
| Reported by: | niallkennedy | Owned by: | |
|---|---|---|---|
| Priority: | high | Milestone: | 3.0 |
| Component: | General | Version: | 3.0 |
| Severity: | normal | Keywords: | has-patch |
| Cc: | Focuses: |
Description
If the get_site_option function operates in a multisite environment with a use_cache parameter of false then $value will be undeclared and therefore not match a strict comparison of false.
Current code assumes $value will be set to false based on a wp_cache_get call that never happens.
Fix:
If $value is never set treat as if it was false.
Attachments (1)
Change History (3)
Note:
See TracTickets
for help on using tickets.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
check if $value is undeclared