WP_Posts_List_Table::is_base_request(): bool

In this article

Determines if the current view is the “All” view.

Return

bool Whether the current view is the "All" view.

Source

protected function is_base_request() {
	$vars = $_GET;
	unset( $vars['paged'] );

	if ( empty( $vars ) ) {
		return true;
	} elseif ( 1 === count( $vars ) && ! empty( $vars['post_type'] ) ) {
		return $this->screen->post_type === $vars['post_type'];
	}

	return 1 === count( $vars ) && ! empty( $vars['mode'] );
}

Changelog

VersionDescription
4.2.0Introduced.

User Contributed Notes

You must log in before being able to contribute a note or feedback.