#8947 closed defect (bug) (fixed)
optimization for install check
| Reported by: |
|
Owned by: |
|
|---|---|---|---|
| Priority: | low | Milestone: | 2.8 |
| Component: | Optimization | Version: | 2.7 |
| Severity: | minor | Keywords: | has-patch dev-feedback commit |
| Cc: |
Description
currently, WP runs get_option(siteurl) as an install check, and proceeds to load all option if it isn't. would it not be more meaningful to load options first, and to check if get_option(siteurl) is set after doing so? or are there non-obvious reasons for doing things that way?
Attachments (1)
Change History (8)
comment:2
joostdevalk — 4 years ago
- Owner changed from anonymous to joostdevalk
Yes, way smarter, I'll write a patch.
comment:3
joostdevalk — 4 years ago
- Keywords has-patch added; needs-patch removed
- Keywords commit added
I tested the patch'; Doesn't kills the server. Code looks fine as well.
Is there any reason why the $installed branches couldn't've been replaced simply with get_option()
..Or are there issues with Constant/filter overrides?
comment:7
markjaquith — 4 years ago
Note: See
TracTickets for help on using
tickets.

Sounds reasonable.