lib/Post_Type_Query.php
public function parse_query_args( $args ) {
		$query_args = [
			'frontend' => $args,
			'backend'  => $args,
		];

		if ( isset( $args['frontend'] ) || isset( $args['backend'] ) ) {
			foreach ( [ 'frontend', 'backend' ] as $query_type ) {
				$query_args[ $query_type ] = isset( $args[ $query_type ] )
					? $args[ $query_type ]
					: [];
			}
		}

		return $query_args;
	}
public function parse_query_args( $args ) {
		$query_args = [
			'frontend' => $args,
			'backend'  => $args,
		];

		if ( isset( $args['frontend'] ) || isset( $args['backend'] ) ) {
			foreach ( [ 'frontend', 'backend' ] as $query_type ) {
				$query_args[ $query_type ] = isset( $args[ $query_type ] )
					? $args[ $query_type ]
					: [];
			}
		}

		return $query_args;
	}
public function parse_query_args ( $ args ) { $ query_args = [ 'frontend' => $ args , 'backend' => $ args , ] ; if ( isset ( $ args [ 'frontend' ] ) || isset ( $ args [ 'backend' ] ) ) { foreach ( [ 'frontend' , 'backend' ] as $ query_type ) { $ query_args [ $ query_type ] = isset ( $ args [ $ query_type ] ) ? $ args [ $ query_type ] : [ ] ; } } return $ query_args ; }
Parses the query args.

Returns an associative array with key `frontend` and `backend` that each contain query
settings.

@since 2.2.0

@param array $args An array of query args.

@return array An array of query args.
Parses the query args .