WordPress.org

Make WordPress Core


Ignore:
Timestamp:
05/12/2016 03:12:11 PM (5 years ago)
Author:
ocean90
Message:

List Tables: Pass the $which parameter to restrict_manage_posts and restrict_manage_users.

$which contains the location of the extra table nav markup: 'top' or 'bottom'.

Props martin.krcho.
Fixes #35307.

File:
1 edited

Legend:

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

    r37314 r37422  
    276276         *
    277277         * @since 3.5.0
     278         * @since 4.6.0 The `$which` parameter was added.
     279         *
     280         * @param string $which The location of the extra table nav markup: 'top' or 'bottom'.
    278281         */
    279         do_action( 'restrict_manage_users' );
     282        do_action( 'restrict_manage_users', $which );
    280283        echo '</div>';
    281284    }
Note: See TracChangeset for help on using the changeset viewer.