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:
nacin 2011-01-11 22:42:22 +00:00
parent f924216639
commit f5cdbd1ded
3 changed files with 8 additions and 0 deletions

View File

@ -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'"; ?>>

View File

@ -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">

View File

@ -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' ); ?>