WordPress.org

Make WordPress Core

Changeset 28494


Ignore:
Timestamp:
05/19/2014 01:18:46 AM (6 years ago)
Author:
wonderboymusic
Message:

Add access modifiers to methods and members of WP_Users_List_Table.

See #27881, #22234.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/includes/class-wp-users-list-table.php

    r28296 r28494  
    1818     * @var int
    1919     */
    20     var $site_id;
     20    public $site_id;
    2121
    2222    /**
     
    2727     * @var bool
    2828     */
    29     var $is_site_users;
     29    public $is_site_users;
    3030
    3131    /**
     
    3535     * @access public
    3636     */
    37     function __construct( $args = array() ) {
     37    public function __construct( $args = array() ) {
    3838        parent::__construct( array(
    3939            'singular' => 'user',
     
    5454     * @access public
    5555     */
    56     function ajax_user_can() {
     56    public function ajax_user_can() {
    5757        if ( $this->is_site_users )
    5858            return current_user_can( 'manage_sites' );
     
    6767     * @access public
    6868     */
    69     function prepare_items() {
     69    public function prepare_items() {
    7070        global $role, $usersearch;
    7171
     
    116116     * @access public
    117117     */
    118     function no_items() {
     118    public function no_items() {
    119119        _e( 'No matching users were found.' );
    120120    }
     
    132132     * @return array An array of HTML links, one for each view.
    133133     */
    134     function get_views() {
     134    public function get_views() {
    135135        global $wp_roles, $role;
    136136
     
    178178     * @return array Array of bulk actions.
    179179     */
    180     function get_bulk_actions() {
     180    public function get_bulk_actions() {
    181181        $actions = array();
    182182
     
    201201     *                      or below the table ("bottom").
    202202     */
    203     function extra_tablenav( $which ) {
     203    public function extra_tablenav( $which ) {
    204204        if ( 'top' != $which )
    205205            return;
     
    237237     * @return string The bulk action required.
    238238     */
    239     function current_action() {
     239    public function current_action() {
    240240        if ( isset($_REQUEST['changeit']) && !empty($_REQUEST['new_role']) )
    241241            return 'promote';
     
    253253     *               and the value is the description.
    254254     */
    255     function get_columns() {
     255    public function get_columns() {
    256256        $c = array(
    257257            'cb'       => '<input type="checkbox" />',
     
    277277     * @return array Array of sortable columns.
    278278     */
    279     function get_sortable_columns() {
     279    public function get_sortable_columns() {
    280280        $c = array(
    281281            'username' => 'login',
     
    296296     * @access public
    297297     */
    298     function display_rows() {
     298    public function display_rows() {
    299299        // Query the post counts for this page
    300300        if ( ! $this->is_site_users )
     
    335335     * @return string Output for a single row.
    336336     */
    337     function single_row( $user_object, $style = '', $role = '', $numposts = 0 ) {
     337    public function single_row( $user_object, $style = '', $role = '', $numposts = 0 ) {
    338338        global $wp_roles;
    339339
Note: See TracChangeset for help on using the changeset viewer.