Make WordPress Core


Ignore:
Timestamp:
05/31/2015 01:28:28 AM (10 years ago)
Author:
DrewAPicture
Message:

Fix formatting and add missing return descriptions for inline documenation introduced in [32644] for WP_List_Table.

Also fixes an error introduced in [32661] for WP_Links_List_Table.

See #25408. See #32246.

File:
1 edited

Legend:

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

    r32654 r32662  
    798798
    799799    /**
    800      * Get name of default primary column
     800     * Get the name of the default primary column.
    801801     *
    802802     * @since 4.3.0
    803803     * @access protected
    804804     *
    805      * @return string
     805     * @return string Name of the default primary column, in this case, an empty string.
    806806     */
    807807    protected function get_default_primary_column_name() {
     
    810810
    811811    /**
    812      * Get name of primary column.
     812     * Get the name of the primary column.
    813813     *
    814814     * @since 4.3.0
    815815     * @access protected
    816816     *
    817      * @return string Filtered name of primary column
     817     * @return string The name of the primary column.
    818818     */
    819819    protected function get_primary_column_name() {
    820820        $columns = $this->get_columns();
    821821        $default = $this->get_default_primary_column_name();
     822
    822823        /**
    823          * Filter the name of the primary column for the current list table, with context as argument (eg: 'plugins').
     824         * Filter the name of the primary column for the current list table, with context
     825         * as argument (eg: 'plugins').
    824826         *
    825827         * @since 4.3.0
    826828         *
    827          * @param string $default Column name default for the specific list table (eg: 'name')
    828          * @param string $context Screen ID for specific list table (eg: 'plugins')
     829         * @param string $default Column name default for the specific list table, e.g. 'name'.
     830         * @param string $context Screen ID for specific list table, e.g. 'plugins'.
    829831         */
    830832        $column  = apply_filters( 'list_table_primary_column', $default, $this->screen->id );
     
    11571159     * @access protected
    11581160     *
    1159      * @param object $item Item being acted upon
    1160      * @param string $column_name Current column name
    1161      * @param string $primary Primary column name
    1162      *
    1163      * @return string
     1161     * @param object $item        The item being acted upon.
     1162     * @param string $column_name Current column name.
     1163     * @param string $primary     Primary column name.
     1164     * @return string The row actions output. In this case, an empty string.
    11641165     */
    11651166    protected function handle_row_actions( $item, $column_name, $primary ) {
Note: See TracChangeset for help on using the changeset viewer.