[wp-trac] [WordPress Trac] #56235: Use a variable for home URL on Permalink Settings screen
WordPress Trac
noreply at wordpress.org
Sat Jul 16 15:36:10 UTC 2022
#56235: Use a variable for home URL on Permalink Settings screen
----------------------------+-----------------------------
Reporter: sabernhardt | Owner: (none)
Type: enhancement | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Permalinks | Version:
Severity: normal | Keywords: has-patch
Focuses: administration |
----------------------------+-----------------------------
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() );
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/56235>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list