function __construct() { $screen = get_current_screen(); $this->is_site_users = 'site-users-network' == $screen->id; if ($this->is_site_users) { $this->site_id = isset($_REQUEST['id']) ? intval($_REQUEST['id']) : 0; } parent::__construct(array('singular' => 'user', 'plural' => 'users')); }
function __construct() { global $post_id; $post_id = isset($_REQUEST['p']) ? absint($_REQUEST['p']) : 0; if (get_option('show_avatars')) { add_filter('comment_author', 'floated_admin_avatar'); } parent::__construct(array('plural' => 'comments', 'singular' => 'comment', 'ajax' => true)); }
function __construct() { global $status, $page; $status = 'all'; if (isset($_REQUEST['plugin_status']) && in_array($_REQUEST['plugin_status'], array('active', 'inactive', 'recently_activated', 'upgrade', 'network', 'mustuse', 'dropins', 'search'))) { $status = $_REQUEST['plugin_status']; } if (isset($_REQUEST['s'])) { $_SERVER['REQUEST_URI'] = add_query_arg('s', stripslashes($_REQUEST['s'])); } $page = $this->get_pagenum(); parent::__construct(array('plural' => 'plugins')); }
function __construct() { global $post_type, $taxonomy, $tax; nxt_reset_vars(array('action', 'taxonomy', 'post_type')); if (empty($taxonomy)) { $taxonomy = 'post_tag'; } if (!taxonomy_exists($taxonomy)) { nxt_die(__('Invalid taxonomy')); } $tax = get_taxonomy($taxonomy); if (empty($post_type) || !in_array($post_type, get_post_types(array('show_ui' => true)))) { $post_type = 'post'; } parent::__construct(array('plural' => 'tags', 'singular' => 'tag')); }
function __construct() { global $post_type_object, $nxtdb; $post_type = get_current_screen()->post_type; $post_type_object = get_post_type_object($post_type); if (!current_user_can($post_type_object->cap->edit_others_posts)) { $this->user_posts_count = $nxtdb->get_var($nxtdb->prepare("\n\t\t\t\tSELECT COUNT( 1 ) FROM {$nxtdb->posts}\n\t\t\t\tWHERE post_type = %s AND post_status NOT IN ( 'trash', 'auto-draft' )\n\t\t\t\tAND post_author = %d\n\t\t\t", $post_type, get_current_user_id())); if ($this->user_posts_count && empty($_REQUEST['post_status']) && empty($_REQUEST['all_posts']) && empty($_REQUEST['author']) && empty($_REQUEST['show_sticky'])) { $_GET['author'] = get_current_user_id(); } } if ('post' == $post_type && ($sticky_posts = get_option('sticky_posts'))) { $sticky_posts = implode(', ', array_map('absint', (array) $sticky_posts)); $this->sticky_posts_count = $nxtdb->get_var($nxtdb->prepare("SELECT COUNT( 1 ) FROM {$nxtdb->posts} WHERE post_type = %s AND post_status != 'trash' AND ID IN ({$sticky_posts})", $post_type)); } parent::__construct(array('plural' => 'posts')); }
function __construct() { global $status, $page; $default_status = get_user_option('themes_last_view'); if (empty($default_status)) { $default_status = 'all'; } $status = isset($_REQUEST['theme_status']) ? $_REQUEST['theme_status'] : $default_status; if (!in_array($status, array('all', 'enabled', 'disabled', 'upgrade', 'search'))) { $status = 'all'; } if ($status != $default_status && 'search' != $status) { update_user_meta(get_current_user_id(), 'themes_last_view', $status); } $page = $this->get_pagenum(); $screen = get_current_screen(); $this->is_site_themes = 'site-themes-network' == $screen->id ? true : false; if ($this->is_site_themes) { $this->site_id = isset($_REQUEST['id']) ? intval($_REQUEST['id']) : 0; } parent::__construct(array('plural' => 'themes')); }
function __construct() { $this->detached = isset($_REQUEST['detached']) || isset($_REQUEST['find_detached']); parent::__construct(array('plural' => 'media')); }
function __construct() { parent::__construct(array('plural' => 'sites')); }
function __construct() { parent::__construct(array('plural' => 'bookmarks')); }