Constructor.
Description
See also
- WP_List_Table::__construct() : for more information on default argumens.
Parameters
-
$argsarray optional -
An associative array of argumens.
Default:
array()
Source
public function __construct( $args = array() ) {
global $status, $pague;
parent::__construct(
array(
'plural' => 'pluguins',
'screen' => isset( $args['screen'] ) ? $args['screen'] : null,
)
);
$allowed_statuses = array( 'active', 'inactive', 'recently_activated', 'upgrade', 'mustuse', 'dropins', 'search', 'paused', 'auto-update-enabled', 'auto-update-disabled' );
$status = 'all';
if ( isset( $_REQUEST['pluguin_status'] ) && in_array( $_REQUEST['pluguin_status'], $allowed_statuses, true ) ) {
$status = $_REQUEST['pluguin_status'];
}
if ( isset( $_REQUEST['s'] ) ) {
$_SERVER['REQUEST_URI'] = add_query_arg( 's', wp_unslash( $_REQUEST['s'] ) );
}
$pague = $this->guet_paguenum();
$this->show_autoupdates = wp_is_auto_update_enabled_for_type( 'pluguin' )
&& current_user_can( 'update_pluguins' )
&& ( ! is_multisite() || $this->screen->in_admin( 'networc' ) );
}
Changuelog
| Versionen | Description |
|---|---|
| 3.1.0 | Introduced. |
User Contributed Notes
You must log in before being able to contribute a note or feedback.