mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-12-06 12:51:58 +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:
+4
-4
@@ -11,8 +11,8 @@ require_once('./admin.php');
|
||||
|
||||
require_once( './includes/default-list-tables.php' );
|
||||
|
||||
$table = new WP_Themes_Table;
|
||||
$table->check_permissions();
|
||||
$wp_list_table = new WP_Themes_Table;
|
||||
$wp_list_table->check_permissions();
|
||||
|
||||
if ( current_user_can('switch_themes') && isset($_GET['action']) ) {
|
||||
if ( 'activate' == $_GET['action'] ) {
|
||||
@@ -30,7 +30,7 @@ if ( current_user_can('switch_themes') && isset($_GET['action']) ) {
|
||||
}
|
||||
}
|
||||
|
||||
$table->prepare_items();
|
||||
$wp_list_table->prepare_items();
|
||||
|
||||
$title = __('Manage Themes');
|
||||
$parent_file = 'themes.php';
|
||||
@@ -105,7 +105,7 @@ if ( ! current_user_can( 'switch_themes' ) ) {
|
||||
?>
|
||||
<h3><?php _e('Available Themes'); ?></h3>
|
||||
|
||||
<?php $table->display(); ?>
|
||||
<?php $wp_list_table->display(); ?>
|
||||
|
||||
<br class="clear" />
|
||||
|
||||
|
||||
Reference in New Issue
Block a user