Changeset 38820 for trunk/src/wp-admin/includes/class-wp-importer.php
- Timestamp:
- 10/19/2016 05:44:21 AM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/includes/class-wp-importer.php
r35170 r38820 137 137 exit(); 138 138 } 139 if ( empty( $parsed['path'] ) ) 139 if ( empty( $parsed['path'] ) ) { 140 140 $parsed['path'] = '/'; 141 $blog = get_blog_details( array( 'domain' => $parsed['host'], 'path' => $parsed['path'] ) ); 142 if ( !$blog ) { 141 } 142 $blogs = get_sites( array( 'domain' => $parsed['host'], 'number' => 1, 'path' => $parsed['path'] ) ); 143 if ( ! $blogs ) { 143 144 fwrite( STDERR, "Error: Could not find blog\n" ); 144 145 exit(); 145 146 } 147 $blog = array_shift( $blogs ); 146 148 $blog_id = (int) $blog->blog_id; 147 149 }
Note: See TracChangeset
for help on using the changeset viewer.