Changeset 12978 for trunk/wp-admin/ms-edit.php
- Timestamp:
- 02/05/2010 09:49:19 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/ms-edit.php
r12946 r12978 208 208 209 209 if ( $_POST['update_home_url'] == 'update' ) { 210 if ( get_option( 'siteurl' ) != 'http://' . $_POST['blog']['domain'] . $_POST['blog']['path'] ) 211 update_option( 'siteurl', 'http://' . $_POST['blog']['domain'] . $_POST['blog']['path'] ); 212 213 if ( get_option( 'home' ) != 'http://' . $_POST['blog']['domain'] . $_POST['blog']['path'] ) 214 update_option( 'home', 'http://' . $_POST['blog']['domain'] . $_POST['blog']['path'] ); 210 $blog_address = get_blogaddress_by_domain($_POST['blog']['domain'], $_POST['blog']['path']); 211 if ( get_option( 'siteurl' ) != $blog_address ) 212 update_option( 'siteurl', $blog_address); 213 214 if ( get_option( 'home' ) != $blog_address ) 215 update_option( 'home', $blog_address ); 215 216 } 216 217
Note: See TracChangeset
for help on using the changeset viewer.