From 93d1eba12ea4d957d8281a5e624dc693f4a1caec Mon Sep 17 00:00:00 2001
From: Matt Mullenweg
Date: Sun, 28 Dec 2003 11:44:05 +0000
Subject: [PATCH] New two-stage post process.Some HTML cleanup and general
tweaking. Split edit form into several files.
git-svn-id: https://develop.svn.wordpress.org/trunk@658 602fd350-edb4-49c9-b593-d223f7449a82
---
wp-admin/edit-form-advanced.php | 172 ++++++++++++++++++++++++++
wp-admin/edit-form-comment.php | 104 ++++++++++++++++
wp-admin/edit-form.php | 208 ++++++--------------------------
wp-admin/link-manager.php | 27 +++--
wp-admin/post.php | 52 ++++----
wp-admin/wp-admin.css | 2 +-
6 files changed, 361 insertions(+), 204 deletions(-)
create mode 100644 wp-admin/edit-form-advanced.php
create mode 100644 wp-admin/edit-form-comment.php
diff --git a/wp-admin/edit-form-advanced.php b/wp-admin/edit-form-advanced.php
new file mode 100644
index 0000000000..a148d4aa79
--- /dev/null
+++ b/wp-admin/edit-form-advanced.php
@@ -0,0 +1,172 @@
+
+
+\n
';
+$form_prevstatus = '
';
+if ($use_trackback) {
+ $form_trackback = '
+ (Separate multiple URLs with spaces.)
+
';
+ if ('' != $pinged) {
+ $form_trackback .= '
Already pinged:
';
+ $already_pinged = explode("\n", trim($pinged));
+ foreach ($already_pinged as $pinged_url) {
+ $form_trackback .= "\n\t- $pinged_url
";
+ }
+ $form_trackback .= '
';
+ }
+} else {
+ $form_trackback = '';
+}
+$saveasdraft = '
';
+
+
+?>
+
+
+
+
diff --git a/wp-admin/edit-form-comment.php b/wp-admin/edit-form-comment.php
new file mode 100644
index 0000000000..0d80de96ae
--- /dev/null
+++ b/wp-admin/edit-form-comment.php
@@ -0,0 +1,104 @@
+
+
+\n
\n
' />
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 4) && ($action != "post"))
+if ($user_level > 4) {
+ touch_time(($action == 'edit'));
+}
+?>
+
+
+
+
diff --git a/wp-admin/edit-form.php b/wp-admin/edit-form.php
index 959317a6bf..1463e7faf4 100644
--- a/wp-admin/edit-form.php
+++ b/wp-admin/edit-form.php
@@ -12,71 +12,34 @@ function checked($checked, $current) {
if ($checked == $current) echo ' checked="checked"';
}
-switch($action) {
- case 'post':
- $submitbutton_text = 'Blog this!';
- $toprow_title = 'New Post';
- $form_action = 'post';
- $form_extra = '';
- if ($use_pingback) {
- $form_pingback = ' (Separate multiple URLs with spaces.)
-
';
- if ('' != $pinged) {
- $form_trackback .= '
-
-
-
-
-
-
-
-
-
-
-
-