WordPress.org

Making WordPress.org


Ignore:
Timestamp:
02/17/2021 11:14:02 PM (8 months ago)
Author:
coffee2code
Message:

Developer, CLI: Move --user_id handling to top of parse() to group with handling for other options.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-developer/inc/cli-commands.php

    r10700 r10701  
    4242    public function parse( $args, $assoc_args ) {
    4343        $path = $assoc_args['src_path'] ?? null;
     44        $user_id = $assoc_args['user_id'] ?? 5911429; // 5911429 = ID for wordpressdotorg
    4445        $wp_ver = $assoc_args['wp_ver'] ?? null;
    4546
     
    8081
    8182        // Determine importing user's ID.
    82         $user_id = $assoc_args['user_id'] ?? 5911429; // 5911429 = ID for wordpressdotorg
    8383        $user = get_user_by( 'id', $user_id );
    8484        if ( ! $user ) {
Note: See TracChangeset for help on using the changeset viewer.