Changeset 15653 for trunk/wp-admin/includes/deprecated.php
- Timestamp:
- 09/24/2010 01:35:06 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/includes/deprecated.php
r15542 r15653 371 371 372 372 /** 373 * Get the column headers for a screen373 * Prints column headers for a particular screen. 374 374 * 375 375 * @since 2.7.0 376 376 * @deprecated 3.1.0 377 377 * @deprecated Use WP_List_Table 378 * 379 * @param string|object $screen The screen you want the headers for 380 * @return array Containing the headers in the format id => UI String 381 */ 382 function get_column_headers($screen) { 378 */ 379 function print_column_headers($screen, $id = true) { 383 380 _deprecated_function( __FUNCTION__, '3.1', 'WP_List_Table' ); 384 381 … … 387 384 $wp_list_table = new _WP_List_Table_Compat($screen); 388 385 389 list( $columns ) = $wp_list_table->get_column_headers();390 391 return $columns;392 }393 394 /**395 * Prints column headers for a particular screen.396 *397 * @since 2.7.0398 * @deprecated 3.1.0399 * @deprecated Use WP_List_Table400 */401 function print_column_headers($screen, $id = true) {402 _deprecated_function( __FUNCTION__, '3.1', 'WP_List_Table' );403 404 global $wp_list_table;405 if ( !is_a($wp_list_table, 'WP_List_Table') )406 $wp_list_table = new _WP_List_Table_Compat($screen);407 408 386 $wp_list_table->print_column_headers($id); 409 }410 411 /**412 * Gets hidden column names for a particular screen.413 *414 * @since 2.7.0415 * @deprecated 3.1.0416 * @deprecated Use WP_List_Table417 *418 * @param string $screen419 * @return array420 */421 function get_hidden_columns($screen) {422 _deprecated_function( __FUNCTION__, '3.1', 'WP_List_Table' );423 424 global $wp_list_table;425 if ( !is_a($wp_list_table, 'WP_List_Table') )426 $wp_list_table = new _WP_List_Table_Compat($screen);427 428 return $wp_list_table->get_hidden_columns();429 387 } 430 388
Note: See TracChangeset
for help on using the changeset viewer.