Opened 4 years ago
Closed 4 years ago
#56235 closed enhancement (fixed)
Use a variable for home URL on Permalink Settings screen
| Reported by: | sabernhardt | Owned by: | SergeyBiryukov |
|---|---|---|---|
| Priority: | normal | Milestone: | 6.1 |
| Component: | Permalinks | Version: | |
| Severity: | normal | Keywords: | has-patch |
| Cc: | Focuses: | administration |
Description
As noted on #56110, I think replacing several instances of get_option( 'home' ) with a variable could improve the code.
It could also use the home_url() function, with escaping.
$url_base = esc_url( home_url() );
Attachments (2)
Change History (5)
Note:
See TracTickets
for help on using tickets.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
I ended up refactoring the whole file in [53710] / #55647 and only saw this ticket after committing. Sorry for that!
We could still use this ticket to replace
get_option( 'home' )withhome_url().