WordPress.org

Make WordPress Core


Ignore:
Timestamp:
05/29/2015 08:16:22 PM (6 years ago)
Author:
wonderboymusic
Message:

Add missing doc blocks to wp-admin/includes/*.
Fix some egregious uses of tabbing.
Some functions can simply return apply_filters(...) instead of setting a variable that is immediately returned.

See #32444.

File:
1 edited

Legend:

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

    r32644 r32654  
    2727    }
    2828
     29    /**
     30     *
     31     * @return bool
     32     */
    2933    public function ajax_user_can() {
    3034        return current_user_can( 'manage_sites' );
     
    143147    }
    144148
     149    /**
     150     *
     151     * @return array
     152     */
    145153    protected function get_bulk_actions() {
    146154        $actions = array();
     
    167175    }
    168176
     177    /**
     178     *
     179     * @return array
     180     */
    169181    public function get_columns() {
    170182        $blogname_columns = ( is_subdomain_install() ) ? __( 'Domain' ) : __( 'Path' );
     
    188200         *                             'blogname', 'lastupdated', 'registered', 'users'.
    189201         */
    190         $sites_columns = apply_filters( 'wpmu_blogs_columns', $sites_columns );
    191 
    192         return $sites_columns;
    193     }
    194 
     202        return apply_filters( 'wpmu_blogs_columns', $sites_columns );
     203    }
     204
     205    /**
     206     *
     207     * @return array
     208     */
    195209    protected function get_sortable_columns() {
    196210        return array(
Note: See TracChangeset for help on using the changeset viewer.