Skip to content

List command: $post__in is assigned twice #35

@Soean

Description

@Soean

The value of the variable $post__in in the list subcommand is overridden after the first assignment.

// Prepare the IDs for inclusion in the query.
$post__in = array_map( 'esc_sql', $ids );
$post__in = implode( ',', $ids );

https://github.com/trepmal/wp-revisions-cli/blob/master/inc/class-revisions-cli.php#L113-L116

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions