WP_Plugins_List_Table::__construct( array $args = array() )

Constructor.


Description

See also


Parameters

$args

(Optional) An associative array of arguments.

Default value: array()


Source

File: wp-admin/includes/class-wp-plugins-list-table.php

	public function __construct( $args = array() ) {
		global $status, $page;

		parent::__construct( array(
			'plural' => 'plugins',
			'screen' => isset( $args['screen'] ) ? $args['screen'] : null,
		) );

		$status = 'all';
		if ( isset( $_REQUEST['plugin_status'] ) && in_array( $_REQUEST['plugin_status'], array( 'active', 'inactive', 'recently_activated', 'upgrade', 'mustuse', 'dropins', 'search' ) ) )
			$status = $_REQUEST['plugin_status'];

		if ( isset($_REQUEST['s']) )
			$_SERVER['REQUEST_URI'] = add_query_arg('s', wp_unslash($_REQUEST['s']) );

		$page = $this->get_pagenum();
	}


Changelog

Changelog
Version Description
WP-3.1.0 Introduced.