Changeset 53185
- Timestamp:
- 04/15/2022 10:50:15 AM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/includes/list-table.php
r49927 r53185 16 16 * @global string $hook_suffix 17 17 * 18 * @param string $class The type of the list table, which is the class name.19 * @param array $args Optional. Arguments to pass to the class. Accepts 'screen'.18 * @param string $class_name The type of the list table, which is the class name. 19 * @param array $args Optional. Arguments to pass to the class. Accepts 'screen'. 20 20 * @return WP_List_Table|false List table object on success, false if the class does not exist. 21 21 */ 22 function _get_list_table( $class , $args = array() ) {22 function _get_list_table( $class_name, $args = array() ) { 23 23 $core_classes = array( 24 24 // Site Admin. … … 46 46 ); 47 47 48 if ( isset( $core_classes[ $class ] ) ) {49 foreach ( (array) $core_classes[ $class ] as $required ) {48 if ( isset( $core_classes[ $class_name ] ) ) { 49 foreach ( (array) $core_classes[ $class_name ] as $required ) { 50 50 require_once ABSPATH . 'wp-admin/includes/class-wp-' . $required . '-list-table.php'; 51 51 } … … 59 59 } 60 60 61 return new $class ( $args );61 return new $class_name( $args ); 62 62 } 63 63
Note: See TracChangeset
for help on using the changeset viewer.