mirror of
https://github.com/WordPress/WordPress.git
synced 2024-11-14 22:56:19 +01:00
Add nonces to instances where the list table display() method is overridden. see #16188.
git-svn-id: http://svn.automattic.com/wordpress/trunk@17262 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
f924216639
commit
f5cdbd1ded
@ -266,6 +266,8 @@ class WP_Comments_List_Table extends WP_List_Table {
|
|||||||
function display() {
|
function display() {
|
||||||
extract( $this->_args );
|
extract( $this->_args );
|
||||||
|
|
||||||
|
wp_nonce_field( "fetch-list-" . get_class( $this ), '_ajax_fetch_list_nonce' );
|
||||||
|
|
||||||
$this->display_tablenav( 'top' );
|
$this->display_tablenav( 'top' );
|
||||||
|
|
||||||
?>
|
?>
|
||||||
@ -533,6 +535,8 @@ class WP_Post_Comments_List_Table extends WP_Comments_List_Table {
|
|||||||
|
|
||||||
function display( $output_empty = false ) {
|
function display( $output_empty = false ) {
|
||||||
extract( $this->_args );
|
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;">
|
<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'"; ?>>
|
<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() {
|
function display() {
|
||||||
|
|
||||||
|
wp_nonce_field( "fetch-list-" . get_class( $this ), '_ajax_fetch_list_nonce' );
|
||||||
?>
|
?>
|
||||||
<div class="tablenav top">
|
<div class="tablenav top">
|
||||||
<div class="alignleft actions">
|
<div class="alignleft actions">
|
||||||
|
@ -84,6 +84,8 @@ class WP_Themes_List_Table extends WP_List_Table {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function display() {
|
function display() {
|
||||||
|
|
||||||
|
wp_nonce_field( "fetch-list-" . get_class( $this ), '_ajax_fetch_list_nonce' );
|
||||||
?>
|
?>
|
||||||
<div class="tablenav top">
|
<div class="tablenav top">
|
||||||
<?php $this->pagination( 'top' ); ?>
|
<?php $this->pagination( 'top' ); ?>
|
||||||
|
Loading…
Reference in New Issue
Block a user