X-Git-Url: https://scripts.mit.edu/gitweb/autoinstalls/wordpress.git/blobdiff_plain/ff81ee6e8304a1982a3ec4f5b134764a29d502cf..7688c6ba71852cd89123b62b2d57683535e4702a:/wp-admin/edit-page-form.php diff --git a/wp-admin/edit-page-form.php b/wp-admin/edit-page-form.php index ae594897..e3a039eb 100644 --- a/wp-admin/edit-page-form.php +++ b/wp-admin/edit-page-form.php @@ -1,44 +1,51 @@
-

-

+

"; + $nonce_action = 'add-page'; + $temp_ID = -1 * time(); // don't change this formula without looking at wp_write_post() + $form_extra = ""; } else { + $post_ID = (int) $post_ID; $form_action = 'editpost'; - $form_extra = ""; + $nonce_action = 'update-page_' . $post_ID; + $form_extra = ""; } -$sendto = $_SERVER['HTTP_REFERER']; +$temp_ID = (int) $temp_ID; +$user_ID = (int) $user_ID; -if ( 0 != $post_ID && $sendto == get_permalink($post_ID) ) - $sendto = 'redo'; -$sendto = wp_specialchars( $sendto ); +$sendto = clean_url(stripslashes(wp_get_referer())); +if ( 0 != $post_ID && $sendto == get_permalink($post_ID) ) + $sendto = 'redo'; ?> -
+ '; + echo ''; } ?> - + + - +
@@ -50,18 +57,27 @@ addLoadEvent(focusit); +
+
+

+
+ + + +
+
+
-

-
+

+
-

+

page_template); ?> @@ -81,20 +97,22 @@ addLoadEvent(focusit);

-

-
+

+
id ) ) : // TODO: ROLE SYSTEM ?>
-

:

+

@@ -114,70 +132,33 @@ endforeach;
- -
+ +
- - 100)) { - $rows = 10; - } -?> - + -
+post_status ) { ?> + + + + +
+ post_content); ?>
- -

- - - - - - + + + +post_status || 0 == $post_ID): +?> + + +

@@ -186,10 +167,10 @@ else ' . __('This feature requires iframe support.') . ''; + echo ''; } ?> @@ -198,28 +179,31 @@ if (current_user_can('upload_files')) {

- + + +
+
- - escape($post->post_title) ) . "')\""; ?> /> +ID) ) ?> + post_title )) . "') ) { document.forms.post._wpnonce.value = '$delete_nonce'; return true;}return false;\""; ?> /> - - + +