Make WordPress Core

Changeset 49599


Ignore:
Timestamp:
11/14/2020 04:52:25 PM (6 years ago)
Author:
SergeyBiryukov
Message:

Docs: Add missing descriptions for _WP_List_Table_Compat methods.

Props johannadevos, SaeedFard, swissspidy, desrosj, SergeyBiryukov.
Fixes #46842.

Location:
trunk/src/wp-admin/includes
Files:
4 edited

Legend:

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

    r42343 r49599  
    99
    1010/**
    11  * Helper class to be used only by back compat functions
     11 * Helper class to be used only by back compat functions.
    1212 *
    1313 * @since 3.1.0
     
    1717        public $_columns;
    1818
     19        /**
     20         * Constructor.
     21         *
     22         * @since 3.1.0
     23         *
     24         * @param string|WP_Screen $screen  The screen hook name or screen object.
     25         * @param string[]         $columns An array of columns with column IDs as the keys
     26         *                                  and translated column names as the values.
     27         */
    1928        public function __construct( $screen, $columns = array() ) {
    2029                if ( is_string( $screen ) ) {
     
    3140
    3241        /**
     42         * Gets a list of all, hidden, and sortable columns.
     43         *
     44         * @since 3.1.0
     45         *
    3346         * @return array
    3447         */
     
    4356
    4457        /**
     58         * Gets a list of columns.
     59         *
     60         * @since 3.1.0
     61         *
    4562         * @return array
    4663         */
  • trunk/src/wp-admin/includes/class-wp-list-table.php

    r49197 r49599  
    10951095
    10961096        /**
    1097          * Gets a list of all, hidden and sortable columns, with filter applied.
     1097         * Gets a list of all, hidden, and sortable columns, with filter applied.
    10981098         *
    10991099         * @since 3.1.0
  • trunk/src/wp-admin/includes/deprecated.php

    r49197 r49599  
    982982 * @see WP_Screen::add_help_tab()
    983983 *
    984  * @param string    $screen The handle for the screen to add help to. This is usually the hook name returned by the add_*_page() functions.
     984 * @param string    $screen The handle for the screen to add help to. This is usually
     985 *                          the hook name returned by the `add_*_page()` functions.
    985986 * @param string    $help   The content of an 'Overview' help tab.
    986987 */
  • trunk/src/wp-admin/includes/list-table.php

    r49109 r49599  
    7272 * @since 2.7.0
    7373 *
    74  * @param string   $screen  The handle for the screen to add help to. This is usually the hook name returned by the
    75  *                          add_*_page() functions.
    76  * @param string[] $columns An array of columns with column IDs as the keys and translated column names as the values.
     74 * @param string    $screen The handle for the screen to register column headers for. This is
     75 *                          usually the hook name returned by the `add_*_page()` functions.
     76 * @param string[] $columns An array of columns with column IDs as the keys and translated
     77 *                          column names as the values.
    7778 */
    7879function register_column_headers( $screen, $columns ) {
Note: See TracChangeset for help on using the changeset viewer.