WordPress.org

Make WordPress Core

Changeset 13663


Ignore:
Timestamp:
03/11/10 17:30:02 (4 years ago)
Author:
nacin
Message:

Simplify hackish logic. props miqrogroove. fixes #12581

File:
1 edited

Legend:

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

    r13661 r13663  
    7676<tr valign="top"> 
    7777<th scope="row"><label for="siteurl"><?php _e('WordPress address (URL)') ?></label></th> 
    78 <td><input name="siteurl" type="text" id="siteurl" value="<?php form_option('siteurl'); ?>"<?php $disabled = disabled( defined( 'WP_SITEURL' ) ); ?> class="regular-text code<?php if ( $disabled ) echo ' disabled' ?>" /></td> 
     78<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> 
    7979</tr> 
    8080<tr valign="top"> 
    8181<th scope="row"><label for="home"><?php _e('Blog address (URL)') ?></label></th> 
    82 <td><input name="home" type="text" id="home" value="<?php form_option('home'); ?>"<?php $disabled = disabled( defined( 'WP_HOME' ) ); ?> class="regular-text code<?php if ( $disabled ) echo ' disabled' ?>" /> 
     82<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' ?>" /> 
    8383<span class="description"><?php _e('Enter the address here if you want your blog homepage <a href="http://codex.wordpress.org/Giving_WordPress_Its_Own_Directory">to be different from the directory</a> you installed WordPress.'); ?></span></td> 
    8484</tr> 
Note: See TracChangeset for help on using the changeset viewer.