Opened 2 years ago
Closed 2 years ago
#56235 closed enhancement (fixed)
Use a variable for home URL on Permalink Settings screen
Reported by: | sabernhardt | Owned by: | SergeyBiryukov |
---|---|---|---|
Milestone: | 6.1 | Priority: | normal |
Severity: | normal | Version: | |
Component: | Permalinks | Keywords: | has-patch |
Focuses: | administration | Cc: |
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.
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()
.