mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-06-28 22:30:04 +00:00
replace $table with $wp_list_table. See #14651
git-svn-id: https://develop.svn.wordpress.org/trunk@15519 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -11,8 +11,8 @@ require_once( './admin.php' );
|
||||
|
||||
require_once( './includes/default-list-tables.php' );
|
||||
|
||||
$table = new WP_Media_Table;
|
||||
$table->check_permissions();
|
||||
$wp_list_table = new WP_Media_Table;
|
||||
$wp_list_table->check_permissions();
|
||||
|
||||
// Handle bulk actions
|
||||
if ( isset($_REQUEST['find_detached']) ) {
|
||||
@@ -130,7 +130,7 @@ if ( isset($_REQUEST['find_detached']) ) {
|
||||
exit;
|
||||
}
|
||||
|
||||
$table->prepare_items();
|
||||
$wp_list_table->prepare_items();
|
||||
|
||||
$title = __('Media Library');
|
||||
$parent_file = 'upload.php';
|
||||
@@ -247,7 +247,7 @@ unset($type_links);
|
||||
</form>
|
||||
|
||||
<form id="posts-filter" action="" method="post">
|
||||
<?php $table->display(); ?>
|
||||
<?php $wp_list_table->display(); ?>
|
||||
<div id="ajax-response"></div>
|
||||
<?php find_posts_div(); ?>
|
||||
<br class="clear" />
|
||||
|
||||
Reference in New Issue
Block a user