Make WordPress Core

Changeset 35411


Ignore:
Timestamp:
10/28/2015 04:53:56 AM (9 years ago)
Author:
SergeyBiryukov
Message:

Settings: Don't display Site Address field description if WP_HOME is defined and the field is disabled.

Props dipesh.kakadiya.
Fixes #33354.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/options-general.php

    r35337 r35411  
    8484<th scope="row"><label for="home"><?php _e('Site Address (URL)') ?></label></th>
    8585<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' ?>" />
     86<?php if ( ! defined( 'WP_HOME' ) ) : ?>
    8687<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>
     88<?php endif; ?>
    8789</tr>
    8890<tr>
Note: See TracChangeset for help on using the changeset viewer.