Making WordPress.org

Changeset 2506


Ignore:
Timestamp:
02/15/2016 09:56:48 PM (11 years ago)
Author:
iandunn
Message:

WordCamp Post Type: Remove temporary workaround for Jetpack bug 2280.

It was fixed in Jetpack 3.7.

See https://github.com/Automattic/jetpack/issues/2280

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  
    106106                $path = isset( $url['path'] ) ? $url['path'] : '';
    107107
    108                 $current_blog_id_before_new_blog = get_current_blog_id();
    109 
    110108                $wordcamp_meta     = get_post_custom( $wordcamp_id );
    111109                $lead_organizer    = $this->get_user_or_current_user( $wordcamp_meta['WordPress.org Username'][0]  );
    112110                $site_meta         = array( 'public' => 1 );
    113111                $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/2280
    117                  * @todo - remove this after that is fixed
    118                  */
    119                 if ( get_current_blog_id() != $current_blog_id_before_new_blog ) {
    120                         restore_current_blog();
    121                 }
    122112
    123113                if ( is_int( $this->new_site_id ) ) {
Note: See TracChangeset for help on using the changeset viewer.