mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2025-10-16 12:05:38 +00:00
Permalinks: Use home_url() to set the URL base on Permalink Settings screen.
This brings more consistency with how the home URL is retrieved elsewhere in the admin. Follow-up to [1567], [1664], [2746], [3029], [4144], [53710]. Props sabernhardt. Fixes #56235. git-svn-id: https://develop.svn.wordpress.org/trunk@53712 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
98bb98304c
commit
b2f108b275
@ -246,13 +246,13 @@ $default_structures = array(
|
||||
4 => $index_php_prefix . '/%postname%/',
|
||||
);
|
||||
|
||||
$url_base = get_option( 'home' ) . $blog_prefix . $index_php_prefix;
|
||||
$url_base = home_url( $blog_prefix . $index_php_prefix );
|
||||
|
||||
$default_structure_inputs = array(
|
||||
0 => array(
|
||||
'id' => 'plain',
|
||||
'label' => __( 'Plain' ),
|
||||
'example' => get_option( 'home' ) . '/?p=123',
|
||||
'example' => home_url( '/?p=123' ),
|
||||
'value' => $default_structures[0],
|
||||
),
|
||||
1 => array(
|
||||
|
||||
Loading…
Reference in New Issue
Block a user