Skip to content

Commit b2f108b

Browse files
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
1 parent 98bb983 commit b2f108b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/wp-admin/options-permalink.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -246,13 +246,13 @@
246246
4 => $index_php_prefix . '/%postname%/',
247247
);
248248

249-
$url_base = get_option( 'home' ) . $blog_prefix . $index_php_prefix;
249+
$url_base = home_url( $blog_prefix . $index_php_prefix );
250250

251251
$default_structure_inputs = array(
252252
0 => array(
253253
'id' => 'plain',
254254
'label' => __( 'Plain' ),
255-
'example' => get_option( 'home' ) . '/?p=123',
255+
'example' => home_url( '/?p=123' ),
256256
'value' => $default_structures[0],
257257
),
258258
1 => array(

0 commit comments

Comments
 (0)