mirror of
git://develop.git.wordpress.org/
synced 2025-01-18 05:18:42 +01:00
Add nonces to instances where the list table display() method is overridden. see #16188.
git-svn-id: https://develop.svn.wordpress.org/trunk@17262 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
87221c5a85
commit
6d0af32ea7
@ -266,6 +266,8 @@ class WP_Comments_List_Table extends WP_List_Table {
|
||||
function display() {
|
||||
extract( $this->_args );
|
||||
|
||||
wp_nonce_field( "fetch-list-" . get_class( $this ), '_ajax_fetch_list_nonce' );
|
||||
|
||||
$this->display_tablenav( 'top' );
|
||||
|
||||
?>
|
||||
@ -533,6 +535,8 @@ class WP_Post_Comments_List_Table extends WP_Comments_List_Table {
|
||||
|
||||
function display( $output_empty = false ) {
|
||||
extract( $this->_args );
|
||||
|
||||
wp_nonce_field( "fetch-list-" . get_class( $this ), '_ajax_fetch_list_nonce' );
|
||||
?>
|
||||
<table class="<?php echo implode( ' ', $this->get_table_classes() ); ?>" cellspacing="0" style="display:none;">
|
||||
<tbody id="the-comment-list"<?php if ( $singular ) echo " class='list:$singular'"; ?>>
|
||||
|
@ -126,6 +126,8 @@ class WP_Theme_Install_List_Table extends WP_List_Table {
|
||||
}
|
||||
|
||||
function display() {
|
||||
|
||||
wp_nonce_field( "fetch-list-" . get_class( $this ), '_ajax_fetch_list_nonce' );
|
||||
?>
|
||||
<div class="tablenav top">
|
||||
<div class="alignleft actions">
|
||||
|
@ -84,6 +84,8 @@ class WP_Themes_List_Table extends WP_List_Table {
|
||||
}
|
||||
|
||||
function display() {
|
||||
|
||||
wp_nonce_field( "fetch-list-" . get_class( $this ), '_ajax_fetch_list_nonce' );
|
||||
?>
|
||||
<div class="tablenav top">
|
||||
<?php $this->pagination( 'top' ); ?>
|
||||
|
Loading…
x
Reference in New Issue
Block a user