WordPress.org

Make WordPress Core

Changeset 5395


Ignore:
Timestamp:
05/05/2007 12:19:25 AM (15 years ago)
Author:
rob1n
Message:

Don't set URL options if WP_HOME and or WP_SITEURL are defined. Props filosofo. fixes #4199

Files:
2 edited

Legend:

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

    r5141 r5395  
    9898<p class="submit"><input type="submit" name="Submit" value="<?php _e('Update Options &raquo;') ?>" />
    9999<input type="hidden" name="action" value="update" />
    100 <input type="hidden" name="page_options" value="blogname,blogdescription,siteurl,admin_email,users_can_register,gmt_offset,date_format,time_format,home,start_of_week,comment_registration,default_role" />
     100<input type="hidden" name="page_options" value="<?php if ( ! defined( 'WP_SITEURL' ) ) echo 'siteurl,'; if ( ! defined( 'WP_HOME' ) ) echo 'home,'; ?>blogname,blogdescription,admin_email,users_can_register,gmt_offset,date_format,time_format,start_of_week,comment_registration,default_role" />
    101101</p>
    102102</form>
  • trunk/wp-admin/options-general.php

    r5141 r5395  
    9898<p class="submit"><input type="submit" name="Submit" value="<?php _e('Update Options &raquo;') ?>" />
    9999<input type="hidden" name="action" value="update" />
    100 <input type="hidden" name="page_options" value="blogname,blogdescription,siteurl,admin_email,users_can_register,gmt_offset,date_format,time_format,home,start_of_week,comment_registration,default_role" />
     100<input type="hidden" name="page_options" value="<?php if ( ! defined( 'WP_SITEURL' ) ) echo 'siteurl,'; if ( ! defined( 'WP_HOME' ) ) echo 'home,'; ?>blogname,blogdescription,admin_email,users_can_register,gmt_offset,date_format,time_format,start_of_week,comment_registration,default_role" />
    101101</p>
    102102</form>
Note: See TracChangeset for help on using the changeset viewer.