- Timestamp:
- 05/19/2014 01:18:46 AM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/includes/class-wp-users-list-table.php
r28296 r28494 18 18 * @var int 19 19 */ 20 var$site_id;20 public $site_id; 21 21 22 22 /** … … 27 27 * @var bool 28 28 */ 29 var$is_site_users;29 public $is_site_users; 30 30 31 31 /** … … 35 35 * @access public 36 36 */ 37 function __construct( $args = array() ) {37 public function __construct( $args = array() ) { 38 38 parent::__construct( array( 39 39 'singular' => 'user', … … 54 54 * @access public 55 55 */ 56 function ajax_user_can() {56 public function ajax_user_can() { 57 57 if ( $this->is_site_users ) 58 58 return current_user_can( 'manage_sites' ); … … 67 67 * @access public 68 68 */ 69 function prepare_items() {69 public function prepare_items() { 70 70 global $role, $usersearch; 71 71 … … 116 116 * @access public 117 117 */ 118 function no_items() {118 public function no_items() { 119 119 _e( 'No matching users were found.' ); 120 120 } … … 132 132 * @return array An array of HTML links, one for each view. 133 133 */ 134 function get_views() {134 public function get_views() { 135 135 global $wp_roles, $role; 136 136 … … 178 178 * @return array Array of bulk actions. 179 179 */ 180 function get_bulk_actions() {180 public function get_bulk_actions() { 181 181 $actions = array(); 182 182 … … 201 201 * or below the table ("bottom"). 202 202 */ 203 function extra_tablenav( $which ) {203 public function extra_tablenav( $which ) { 204 204 if ( 'top' != $which ) 205 205 return; … … 237 237 * @return string The bulk action required. 238 238 */ 239 function current_action() {239 public function current_action() { 240 240 if ( isset($_REQUEST['changeit']) && !empty($_REQUEST['new_role']) ) 241 241 return 'promote'; … … 253 253 * and the value is the description. 254 254 */ 255 function get_columns() {255 public function get_columns() { 256 256 $c = array( 257 257 'cb' => '<input type="checkbox" />', … … 277 277 * @return array Array of sortable columns. 278 278 */ 279 function get_sortable_columns() {279 public function get_sortable_columns() { 280 280 $c = array( 281 281 'username' => 'login', … … 296 296 * @access public 297 297 */ 298 function display_rows() {298 public function display_rows() { 299 299 // Query the post counts for this page 300 300 if ( ! $this->is_site_users ) … … 335 335 * @return string Output for a single row. 336 336 */ 337 function single_row( $user_object, $style = '', $role = '', $numposts = 0 ) {337 public function single_row( $user_object, $style = '', $role = '', $numposts = 0 ) { 338 338 global $wp_roles; 339 339
Note: See TracChangeset
for help on using the changeset viewer.