diff options
| author | donncha <donncha@7be80a69-a1ef-0310-a953-fb0f7c49ff36> | 2007-05-21 18:37:58 +0000 |
|---|---|---|
| committer | donncha <donncha@7be80a69-a1ef-0310-a953-fb0f7c49ff36> | 2007-05-21 18:37:58 +0000 |
| commit | 89fe0ff804e7c6497ebacc8b341ac89974f6f255 (patch) | |
| tree | 3fce310b29c685008fdbb75c5ab531bc3a6ae12a /wp-admin/import/greymatter.php | |
| parent | a139071806ba941346a109fbefb2d5f22bae1cc4 (diff) | |
| download | wordpress-mu-89fe0ff804e7c6497ebacc8b341ac89974f6f255.tar.gz wordpress-mu-89fe0ff804e7c6497ebacc8b341ac89974f6f255.tar.xz wordpress-mu-89fe0ff804e7c6497ebacc8b341ac89974f6f255.zip | |
WP Merge to rev 5499, this is a big one! Test it before you put it live!
Test only, not for production use yet
git-svn-id: http://svn.automattic.com/wordpress-mu/trunk@972 7be80a69-a1ef-0310-a953-fb0f7c49ff36
Diffstat (limited to 'wp-admin/import/greymatter.php')
| -rw-r--r-- | wp-admin/import/greymatter.php | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/wp-admin/import/greymatter.php b/wp-admin/import/greymatter.php index 9203ff7..4305cd1 100644 --- a/wp-admin/import/greymatter.php +++ b/wp-admin/import/greymatter.php @@ -34,6 +34,7 @@ class GM_Import { <form name="stepOne" method="get"> <input type="hidden" name="import" value="greymatter" /> <input type="hidden" name="step" value="1" /> +<?php wp_nonce_field('import-greymatter'); ?> <h3><?php _e('Second step: GreyMatter details:') ?></h3> <p><table cellpadding="0"> <tr> @@ -87,10 +88,12 @@ class GM_Import { } if (!chdir($archivespath)) - wp_die(sprintf(__("Wrong path, %s\ndoesn't exist\non the server"), $archivespath)); + wp_die(__("Wrong path, the path to the GM entries does not exist on the server")); if (!chdir($gmpath)) - wp_die(sprintf(__("Wrong path, %s\ndoesn't exist\non the server"), $gmpath)); + wp_die(__("Wrong path, the path to the GM files does not exist on the server")); + + $lastentry = (int) $lastentry; $this->header(); ?> @@ -297,6 +300,7 @@ class GM_Import { $this->greet(); break; case 1: + check_admin_referer('import-greymatter'); $this->import(); break; } |
