Settings: Don't display Site Address field description if `WP_HOME` is defined and the field is disabled.
Props dipesh.kakadiya. Fixes #33354. git-svn-id: https://develop.svn.wordpress.org/trunk@35411 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
fb109971e4
commit
21532e1f7f
|
@ -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>
|
||||
|
|
Loading…
Reference in New Issue