~canonical-sysadmins/wordpress/4.8.1

« back to all changes in this revision

Viewing changes to wp-admin/includes/class-wp-users-list-table.php

  • Committer: Barry Price
  • Date: 2016-08-17 04:49:28 UTC
  • mto: This revision was merged to the branch mainline in revision 22.
  • Revision ID: barry.price@canonical.com-20160817044928-viijiwb4tl8jwzmp
new upstream release 4.6

Show diffs side-by-side

added added

removed removed

Lines of Context:
125
125
                        $args['order'] = $_REQUEST['order'];
126
126
 
127
127
                /**
128
 
                 * Filter the query arguments used to retrieve users for the current users list table.
 
128
                 * Filters the query arguments used to retrieve users for the current users list table.
129
129
                 *
130
130
                 * @since 4.4.0
131
131
                 *
160
160
         * with this table.
161
161
         *
162
162
         * Provides a list of roles and user count for that role for easy
163
 
         * filtering of the user table.
 
163
         * Filtersing of the user table.
164
164
         *
165
165
         * @since  3.1.0
166
166
         * @access protected
275
275
                 * in the Users list table.
276
276
                 *
277
277
                 * @since 3.5.0
 
278
                 * @since 4.6.0 The `$which` parameter was added.
 
279
                 *
 
280
                 * @param string $which The location of the extra table nav markup: 'top' or 'bottom'.
278
281
                 */
279
 
                do_action( 'restrict_manage_users' );
 
282
                do_action( 'restrict_manage_users', $which );
280
283
                echo '</div>';
281
284
        }
282
285
 
336
339
        protected function get_sortable_columns() {
337
340
                $c = array(
338
341
                        'username' => 'login',
339
 
                        'name'     => 'name',
340
342
                        'email'    => 'email',
341
343
                );
342
344
 
412
414
                                $actions['remove'] = "<a class='submitdelete' href='" . wp_nonce_url( $url."action=remove&amp;user=$user_object->ID", 'bulk-users' ) . "'>" . __( 'Remove' ) . "</a>";
413
415
 
414
416
                        /**
415
 
                         * Filter the action links displayed under each user in the Users list table.
 
417
                         * Filters the action links displayed under each user in the Users list table.
416
418
                         *
417
419
                         * @since 2.8.0
418
420
                         *
488
490
                                                break;
489
491
                                        default:
490
492
                                                /**
491
 
                                                 * Filter the display output of custom columns in the Users list table.
 
493
                                                 * Filters the display output of custom columns in the Users list table.
492
494
                                                 *
493
495
                                                 * @since 2.8.0
494
496
                                                 *
547
549
                }
548
550
 
549
551
                /**
550
 
                 * Filter the returned array of roles for a user.
 
552
                 * Filters the returned array of roles for a user.
551
553
                 *
552
554
                 * @since 4.4.0
553
555
                 *