#16177 closed enhancement (invalid)
bloginfo() to return https/ssl url
| Reported by: |
|
Owned by: | |
|---|---|---|---|
| Priority: | normal | Milestone: | |
| Component: | General | Version: | 3.1 |
| Severity: | normal | Keywords: | |
| Cc: |
Description
bloginfo() should include a parameter that allows the function to return the 'https' URL string.
example: bloginfo("secure_url")
case 'secure_url' :
$output = home_url();
$output = str_replace('http://', 'https://', $output);
break;
Attachments (1)
Change History (7)
comment:2
linuxologos — 2 years ago
Why not use home_url( , 'https' ) instead?
BTW, bloginfo( 'url' ) is deprecated according to the codex, but actually it's not in the core...
comment:3
linuxologos — 2 years ago
- Keywords 2nd-opinion close needs-codex added; bloginfo https ssl secure url removed
- Milestone Awaiting Review deleted
- Resolution set to invalid
- Status changed from new to closed
we are not adding new sections to bloginfo.
You should use the already existing functions with are SSL aware like home_url, site_url etc.
comment:6
markoheijnen — 5 months ago
- Keywords close removed
Note: See
TracTickets for help on using
tickets.

general-template.php containing the updated bloginfo() parameter