Ticket #23865: 23865.2.diff
File 23865.2.diff, 657 bytes (added by , 11 years ago) |
---|
-
wp-includes/ms-blogs.php
274 274 foreach ( array_intersect( array_keys( $details ), $fields ) as $field ) 275 275 $update_details[$field] = $details[$field]; 276 276 277 // Ensure that path has a trailing slash and prefixing slash 278 $update_details[ 'path' ] = sanitize_title( $update_details[ 'path' ] ); 279 $update_details[ 'path' ] = "/{$update_details[ 'path' ]}/"; 280 277 281 $result = $wpdb->update( $wpdb->blogs, $update_details, array('blog_id' => $blog_id) ); 278 282 279 283 if ( false === $result )