From b2de687b90dcc0feeb5be1a0a8258058c5b57a77 Mon Sep 17 00:00:00 2001 From: Peter Westwood Date: Wed, 23 Sep 2009 06:59:20 +0000 Subject: [PATCH] Move the nonce on the import upload form to the action url so it always arrives even if the post data exceeds post_max_size. Also add some phpdoc. See #10830. git-svn-id: https://develop.svn.wordpress.org/trunk@11962 602fd350-edb4-49c9-b593-d223f7449a82 --- wp-admin/includes/template.php | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/wp-admin/includes/template.php b/wp-admin/includes/template.php index 58ae29a43a..e9a4fe4c8f 100644 --- a/wp-admin/includes/template.php +++ b/wp-admin/includes/template.php @@ -2814,11 +2814,11 @@ function wp_max_upload_size() { } /** - * {@internal Missing Short Description}} + * Outputs the form used by the importers to accept the data to be imported * - * @since unknown + * @since 2.0 * - * @param unknown_type $action + * @param string $action The action attribute for the form. */ function wp_import_upload_form( $action ) { $bytes = apply_filters( 'import_upload_size_limit', wp_max_upload_size() ); @@ -2829,9 +2829,8 @@ function wp_import_upload_form( $action ) {

-
+

- ()