Making WordPress.org

Changeset 5014


Ignore:
Timestamp:
02/28/2017 12:28:16 AM (8 years ago)
Author:
coreymckrill
Message:

WCPT: Load new site with GET after creation to trigger upload directory creation

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordcamp.org/public_html/wp-content/plugins/wcpt/wcpt-wordcamp/wordcamp-new-site.php

    r4981 r5014  
    333333        }
    334334
     335        // Workaround to ensure upload directories are set up
     336        wp_remote_get( esc_url( get_home_url( $wordcamp_id ) ) );
     337
    335338        $meta = get_post_custom( $wordcamp_id );
    336339
    337340        switch_to_blog( $this->new_site_id );
    338 
    339         // Attempt to create the proper upload directories in the context of the new site before post stubs happen
    340         wp_upload_dir( null, true, true );
    341341
    342342        $lead_organizer = $this->get_user_or_current_user( $meta['WordPress.org Username'][0] );
Note: See TracChangeset for help on using the changeset viewer.