Making WordPress.org


Ignore:
Timestamp:
06/11/2016 10:07:10 PM (8 years ago)
Author:
obenland
Message:

Plugin Directory: Let plugin authors select categories on upload.

Also refactors create_plugin_post() to me more of a direct wrapper of
wp_insert_post(). Front-end needs styles.

See #1573.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordpress.org/public_html/wp-content/plugins/plugin-directory/cli/class-import.php

    r3331 r3335  
    8383
    8484            $plugin = Plugin_Directory::create_plugin_post( array(
    85                 'slug' => $plugin_slug,
    86                 'status' => $status,
    87                 'author' => $topic->topic_poster,
     85                'post_name' => $plugin_slug,
     86                'post_status' => $status,
     87                'post_author' => $topic->topic_poster,
    8888                'override_modified_date' => true,
    8989                'post_date_gmt' => $topic->topic_start_time,
     
    9191                'post_modified' => $topic->topic_time,
    9292                'post_modified_gmt' => $topic->topic_time,
    93                 'meta' => array(
     93                'meta_input' => array(
    9494                    '_author_ip' => $author_ip,
    9595                ),
Note: See TracChangeset for help on using the changeset viewer.