Making WordPress.org


Ignore:
Timestamp:
02/26/2015 10:28:07 PM (10 years ago)
Author:
obenland
Message:

WP.org Themes: Save parent theme ID during upload.

See #745.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordpress.org/public_html/wp-content/plugins/theme-directory/class-wporg-themes-upload.php

    r1321 r1338  
    325325            'suppress_filters' => false,
    326326        ) );
     327        $this->theme->post_parent = current( $parent );
    327328
    328329        return ! empty( $parent );
     
    510511            'post_name'      => $this->theme->get_stylesheet(),
    511512            'post_content'   => $this->theme->get( 'Description' ),
     513            'post_parent'    => $this->theme->post_parent,
    512514            'post_date'      => $upload_date,
    513515            'comment_status' => 'closed',
Note: See TracChangeset for help on using the changeset viewer.