Opened 18 years ago
Closed 18 years ago
#5037 closed defect (bug) (fixed)
WordPress 2.3 doesn't finish to load when fsockopen has been disabled
| Reported by: |
|
Owned by: | |
|---|---|---|---|
| Milestone: | 2.3 | Priority: | normal |
| Severity: | normal | Version: | 2.3 |
| Component: | General | Keywords: | has-patch |
| Focuses: | Cc: |
Description
As the title states, WP enters in an infinite loop (line 35 wp-includes/update.php) when fsockopen is listed in disable_functions directive.
The attached patch contains an alternative to fix the problem, it also restrict update checks only when is_admin() is true.
Attachments (2)
Change History (6)
#2
@
18 years ago
Agree that we should be preventing an infinite loop -- but not that we should limit it to wp-admin. It's really close to release, let's just fix the bug.
Checking fsockopen() is good, but line 33 also troubles me because all it tests for is "false" (which obviously is failing in the case of fsockopen() being blocked). We should be testing $fs with is_resource()
Note: See
TracTickets for help on using
tickets.
check if fsockopen has been disabled