mirror of
https://github.com/WordPress/WordPress.git
synced 2024-12-22 17:18:32 +01: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. Built from https://develop.svn.wordpress.org/trunk@53712 git-svn-id: http://core.svn.wordpress.org/trunk@53271 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
82ee734e8b
commit
74b2659ce4
@ -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(
|
||||
|
@ -16,7 +16,7 @@
|
||||
*
|
||||
* @global string $wp_version
|
||||
*/
|
||||
$wp_version = '6.1-alpha-53711';
|
||||
$wp_version = '6.1-alpha-53712';
|
||||
|
||||
/**
|
||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||
|
Loading…
Reference in New Issue
Block a user