WordPress at Your Fingertips
function is not described

WP_Posts_List_Table::is_base_request() protected WP 4.2.0

Determine if the current view is the "All" view.

{} It's a method of the class: WP_Posts_List_Table{}

No Hooks.

Return

true|false. Whether the current view is the "All" view.

Usage

// protected - for code of main (parent) or child class
$result = $this->is_base_request();

Changelog

Since 4.2.0 Introduced.

Code of WP_Posts_List_Table::is_base_request() WP 5.8.2

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'] );
}