Skip to content

Commit

Permalink
Fix PHP lint issues
Browse files Browse the repository at this point in the history
  • Loading branch information
oandregal committed Dec 26, 2024
1 parent a6000fc commit b4a54ef
Showing 1 changed file with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -411,10 +411,10 @@ static function ( $format ) {

if ( Hierarchical_Sort::is_eligible( $request ) ) {
$result = Hierarchical_Sort::run( $args );
$this->levels = $result[ 'levels' ];
$this->levels = $result['levels'];

$args[ 'post__in' ] = $result[ 'post_ids' ];
$args[ 'orderby' ] = 'post__in';
$args['post__in'] = $result['post_ids'];
$args['orderby'] = 'post__in';
}

/**
Expand Down Expand Up @@ -3010,15 +3010,15 @@ public function get_collection_params() {
$post_type = get_post_type_object( $this->post_type );

if ( $post_type->hierarchical || 'attachment' === $this->post_type ) {
$query_params['parent'] = array(
$query_params['parent'] = array(
'description' => __( 'Limit result set to items with particular parent IDs.' ),
'type' => 'array',
'items' => array(
'type' => 'integer',
),
'default' => array(),
);
$query_params['parent_exclude'] = array(
$query_params['parent_exclude'] = array(
'description' => __( 'Limit result set to all items except those of a particular parent ID.' ),
'type' => 'array',
'items' => array(
Expand Down

0 comments on commit b4a54ef

Please sign in to comment.