Making WordPress.org


Ignore:
Timestamp:
06/11/2016 08:21:45 PM (10 years ago)
Author:
obenland
Message:

Plugin Directory: Give Reviewers the ability to filter plugins by author IP.

See #1570.

File:
1 edited

Legend:

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

    r3328 r3331  
    8080
    8181        if ( ! $plugin ) {
     82            $author_ip = $wpdb->get_var( $wpdb->prepare( 'SELECT poster_ip FROM ' . PLUGINS_TABLE_PREFIX . 'posts WHERE topic_id = %s', $topic->topic_id ) );
     83
    8284            $plugin = Plugin_Directory::create_plugin_post( array(
    8385                'slug' => $plugin_slug,
     
    8991                'post_modified' => $topic->topic_time,
    9092                'post_modified_gmt' => $topic->topic_time,
     93                'meta' => array(
     94                    '_author_ip' => $author_ip,
     95                ),
    9196            ) );
    9297        }
Note: See TracChangeset for help on using the changeset viewer.