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:
Sergey Biryukov 2022-07-17 01:06:13 +00:00
parent 82ee734e8b
commit 74b2659ce4
2 changed files with 3 additions and 3 deletions

View File

@ -246,13 +246,13 @@ $default_structures = array(
4 => $index_php_prefix . '/%postname%/', 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( $default_structure_inputs = array(
0 => array( 0 => array(
'id' => 'plain', 'id' => 'plain',
'label' => __( 'Plain' ), 'label' => __( 'Plain' ),
'example' => get_option( 'home' ) . '/?p=123', 'example' => home_url( '/?p=123' ),
'value' => $default_structures[0], 'value' => $default_structures[0],
), ),
1 => array( 1 => array(

View File

@ -16,7 +16,7 @@
* *
* @global string $wp_version * @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. * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.