Make WordPress Core


Ignore:
Timestamp:
05/29/2015 08:16:22 PM (9 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-plugins-list-table.php

    r32650 r32654  
    4141    }
    4242
     43    /**
     44     * @return array
     45     */
    4346    protected function get_table_classes() {
    4447        return array( 'widefat', $this->_args['plural'] );
    4548    }
    4649
     50    /**
     51     * @return bool
     52     */
    4753    public function ajax_user_can() {
    4854        return current_user_can('activate_plugins');
     
    217223     * @staticvar string $term
    218224     * @param array $plugin
    219      * @return boolean
     225     * @return bool
    220226     */
    221227    public function _search_callback( $plugin ) {
     
    283289    }
    284290
     291    /**
     292     * @return array
     293     */
    285294    protected function get_sortable_columns() {
    286295        return array();
     
    366375     * @global string $status
    367376     * @param string $which
    368      * @return null
    369377     */
    370378    public function bulk_actions( $which = '' ) {
     
    380388     * @global string $status
    381389     * @param string $which
    382      * @return null
    383390     */
    384391    protected function extra_tablenav( $which ) {
     
    400407    }
    401408
     409    /**
     410     * @return string
     411     */
    402412    public function current_action() {
    403413        if ( isset($_POST['clear-recent-list']) )
     
    426436     * @global string $s
    427437     * @global array $totals
     438     *
    428439     * @param array $item
    429440     */
Note: See TracChangeset for help on using the changeset viewer.