Ticket #23865: 23865.diff
File 23865.diff, 690 bytes (added by , 12 years ago) |
---|
-
wp-includes/ms-blogs.php
300 300 foreach ( array_intersect( array_keys( $details ), $fields ) as $field ) 301 301 $update_details[$field] = $details[$field]; 302 302 303 // Ensure that path has a trailing slash and prefixing slash 304 $update_details[ 'path' ] = trailingslashit( $update_details[ 'path' ] ); 305 if ( '/' != substr( 0, 1 ) ) 306 $update_details[ 'path' ] = '/' . $update_details[ 'path' ]; 307 303 308 $result = $wpdb->update( $wpdb->blogs, $update_details, array('blog_id' => $blog_id) ); 304 309 305 310 if ( false === $result )