Make WordPress Core

Ticket #38805: 38805.diff

File 38805.diff, 1.1 KB (added by johnregan3, 3 years ago)

Initial patch

  • src/wp-admin/includes/class-wp-list-table.php

    diff --git src/wp-admin/includes/class-wp-list-table.php src/wp-admin/includes/class-wp-list-table.php
    index 854f93064f..325790a652 100644
    class WP_List_Table { 
    13921392        }
    13931393
    13941394        /**
    1395          * @param object|array $item
    1396          * @param string $column_name
     1395         * Handles the default column output.
     1396         *
     1397         * @param object|array $item        The current item.
     1398         * @param string       $column_name The column name.
    13971399         */
    1398         protected function column_default( $item, $column_name ) {}
     1400        protected function column_default( $item, $column_name ) {
     1401                /**
     1402                 * Fires for each registered custom screen column.
     1403                 *
     1404                 * The dynamic portion of the hook name, `$this->screen->id`, refers
     1405                 * to the ID of the current screen.
     1406                 *
     1407                 * @since 6.0.0
     1408                 *
     1409                 * @param string       $column_name Name of the custom column.
     1410                 * @param object|array $item        The current item.
     1411                 */
     1412                do_action( "manage_{$this->screen->id}_custom_column", $column_name, $item );
     1413        }
    13991414
    14001415        /**
    14011416         * @param object|array $item