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-terms-list-table.php

    r32644 r32654  
    5656    }
    5757
     58    /**
     59     *
     60     * @return bool
     61     */
    5862    public function ajax_user_can() {
    5963        return current_user_can( get_taxonomy( $this->screen->taxonomy )->cap->manage_terms );
     
    115119    }
    116120
     121    /**
     122     *
     123     * @return bool
     124     */
    117125    public function has_items() {
    118126        // todo: populate $this->items in prepare_items()
     
    124132    }
    125133
     134    /**
     135     *
     136     * @return array
     137     */
    126138    protected function get_bulk_actions() {
    127139        $actions = array();
     
    131143    }
    132144
     145    /**
     146     *
     147     * @return string
     148     */
    133149    public function current_action() {
    134150        if ( isset( $_REQUEST['action'] ) && isset( $_REQUEST['delete_tags'] ) && ( 'delete' == $_REQUEST['action'] || 'delete' == $_REQUEST['action2'] ) )
     
    138154    }
    139155
     156    /**
     157     *
     158     * @return array
     159     */
    140160    public function get_columns() {
    141161        $columns = array(
     
    155175    }
    156176
     177    /**
     178     *
     179     * @return array
     180     */
    157181    protected function get_sortable_columns() {
    158182        return array(
     
    218242     * @param array $terms
    219243     * @param array $children
    220      * @param int $start
    221      * @param int $per_page
    222      * @param int $count
    223      * @param int $parent
    224      * @param int $level
     244     * @param int   $start
     245     * @param int   $per_page
     246     * @param int   $count
     247     * @param int   $parent
     248     * @param int   $level
    225249     */
    226250    private function _rows( $taxonomy, $terms, &$children, $start, $per_page, &$count, $parent = 0, $level = 0 ) {
Note: See TracChangeset for help on using the changeset viewer.