Changeset 2506
- Timestamp:
- 02/15/2016 09:56:48 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/wordcamp.org/public_html/wp-content/plugins/wcpt/wcpt-wordcamp/wordcamp-new-site.php
r2505 r2506 106 106 $path = isset( $url['path'] ) ? $url['path'] : ''; 107 107 108 $current_blog_id_before_new_blog = get_current_blog_id();109 110 108 $wordcamp_meta = get_post_custom( $wordcamp_id ); 111 109 $lead_organizer = $this->get_user_or_current_user( $wordcamp_meta['WordPress.org Username'][0] ); 112 110 $site_meta = array( 'public' => 1 ); 113 111 $this->new_site_id = wpmu_create_blog( $url['host'], $path, 'WordCamp Event', $lead_organizer->ID, $site_meta ); 114 115 /*116 * Work around for https://github.com/Automattic/jetpack/issues/2280117 * @todo - remove this after that is fixed118 */119 if ( get_current_blog_id() != $current_blog_id_before_new_blog ) {120 restore_current_blog();121 }122 112 123 113 if ( is_int( $this->new_site_id ) ) {
Note: See TracChangeset
for help on using the changeset viewer.