Settings: Don't display Site Address field description if `WP_HOME` is defined and the field is disabled.
Props dipesh.kakadiya. Fixes #33354. Built from https://develop.svn.wordpress.org/trunk@35411 git-svn-id: http://core.svn.wordpress.org/trunk@35375 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
82d034a386
commit
8d0f76bc11
|
@ -83,7 +83,9 @@ if ( get_option( 'start_of_week' ) != $wp_locale->start_of_week ) {
|
|||
<tr>
|
||||
<th scope="row"><label for="home"><?php _e('Site Address (URL)') ?></label></th>
|
||||
<td><input name="home" type="url" id="home" aria-describedby="home-description" value="<?php form_option( 'home' ); ?>"<?php disabled( defined( 'WP_HOME' ) ); ?> class="regular-text code<?php if ( defined( 'WP_HOME' ) ) echo ' disabled' ?>" />
|
||||
<?php if ( ! defined( 'WP_HOME' ) ) : ?>
|
||||
<p class="description" id="home-description"><?php _e( 'Enter the address here if you <a href="https://codex.wordpress.org/Giving_WordPress_Its_Own_Directory">want your site home page to be different from your WordPress installation directory.</a>' ); ?></p></td>
|
||||
<?php endif; ?>
|
||||
</tr>
|
||||
<tr>
|
||||
<th scope="row"><label for="admin_email"><?php _e('Email Address') ?> </label></th>
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
*
|
||||
* @global string $wp_version
|
||||
*/
|
||||
$wp_version = '4.4-beta1-35410';
|
||||
$wp_version = '4.4-beta1-35411';
|
||||
|
||||
/**
|
||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||
|
|
Loading…
Reference in New Issue