Make WordPress Core

Ticket #14865: options-general.patch

File options-general.patch, 2.9 KB (added by mrmist, 15 years ago)
  • wp-admin/options-general.php

     
    8484</tr>
    8585<?php if ( !is_multisite() ) { ?>
    8686<tr valign="top">
    87 <th scope="row"><label for="siteurl"><?php _e('WordPress address (URL)') ?></label></th>
    88 <td><input name="siteurl" type="text" id="siteurl" value="<?php form_option('siteurl'); ?>"<?php disabled( defined( 'WP_SITEURL' ) ); ?> class="regular-text code<?php if ( defined( 'WP_SITEURL' ) ) echo ' disabled' ?>" /></td>
    89 </tr>
    90 <tr valign="top">
    91 <th scope="row"><label for="home"><?php _e('Site address (URL)') ?></label></th>
    92 <td><input name="home" type="text" id="home" value="<?php form_option('home'); ?>"<?php disabled( defined( 'WP_HOME' ) ); ?> class="regular-text code<?php if ( defined( 'WP_HOME' ) ) echo ' disabled' ?>" />
    93 <span class="description"><?php _e('Enter the address here if you want your site homepage <a href="http://codex.wordpress.org/Giving_WordPress_Its_Own_Directory">to be different from the directory</a> you installed WordPress.'); ?></span></td>
    94 </tr>
    95 <tr valign="top">
    9687<th scope="row"><label for="admin_email"><?php _e('E-mail address') ?> </label></th>
    9788<td><input name="admin_email" type="text" id="admin_email" value="<?php form_option('admin_email'); ?>" class="regular-text" />
    9889<span class="description"><?php _e('This address is used for admin purposes, like new user notification.') ?></span></td>
     
    318309?>
    319310</select></td>
    320311</tr>
    321 <?php do_settings_fields('general', 'default'); ?>
     312<?php if ( !is_multisite() ) : ?>
     313<tr><td colspan="2">Before changing the following two values, please ensure you have read and understand the instructions for <a href="http://codex.wordpress.org/Moving_WordPress">moving WordPress</a>.</td></tr>
     314<tr valign="top">
     315<th scope="row"><label for="siteurl"><?php _e('WordPress address (URL)') ?></label></th>
     316<td><input name="siteurl" type="text" id="siteurl" value="<?php form_option('siteurl'); ?>"<?php disabled( defined( 'WP_SITEURL' ) ); ?> class="regular-text code<?php if ( defined( 'WP_SITEURL' ) ) echo ' disabled' ?>" /></td>
     317</tr>
     318<tr valign="top">
     319<th scope="row"><label for="home"><?php _e('Site address (URL)') ?></label></th>
     320<td><input name="home" type="text" id="home" value="<?php form_option('home'); ?>"<?php disabled( defined( 'WP_HOME' ) ); ?> class="regular-text code<?php if ( defined( 'WP_HOME' ) ) echo ' disabled' ?>" />
     321<span class="description"><?php _e('Enter the address here if you want your site homepage <a href="http://codex.wordpress.org/Giving_WordPress_Its_Own_Directory">to be different from the directory</a> you installed WordPress.'); ?></span></td>
     322</tr>
    322323<?php
     324        endif;
     325 do_settings_fields('general', 'default');
    323326        $languages = get_available_languages();
    324327        if ( is_multisite() && !empty( $languages ) ):
    325328?>