Nonce checks for internal linking and list table ajax. fixes #16188.

git-svn-id: https://develop.svn.wordpress.org/trunk@17255 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Andrew Nacin
2011-01-11 20:03:50 +00:00
parent 5ce8a20462
commit 4c869552ff
8 changed files with 16 additions and 6 deletions
@@ -685,6 +685,8 @@ class WP_List_Table {
function display() {
extract( $this->_args );
wp_nonce_field( "fetch-list-" . get_class( $this ), '_ajax_fetch_list_nonce' );
$this->display_tablenav( 'top' );
?>
+1
View File
@@ -71,6 +71,7 @@ function wp_link_query( $args = array() ) {
function wp_link_dialog() {
?>
<form id="wp-link" tabindex="-1">
<?php wp_nonce_field( 'internal-linking', '_ajax_linking_nonce', false ); ?>
<div id="link-selector">
<div id="link-options">
<p class="howto"><?php _e( 'Enter the destination URL' ); ?></p>