Changeset 958
- Timestamp:
- 03/04/2004 03:56:02 PM (21 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/edit-form-advanced.php
r956 r958 5 5 $allowed_users = explode(" ", trim(get_settings('fileupload_allowedusers'))); 6 6 7 $post_ID = intval($postdata['ID']); 8 7 9 $submitbutton_text = 'Save'; 8 $toprow_title = 'Editing Post #' . $postdata['ID']; 9 $form_action = 'editpost'; 10 $form_extra = "' />\n<input type='hidden' name='post_ID' value='$post->ID"; 10 $toprow_title = 'Editing Post #' . $post_ID; 11 if (0 == $post_ID) { 12 $form_action = 'post'; 13 } else { 14 $form_action = 'editpost'; 15 $form_extra = "<input type='hidden' name='post_ID' value='$post_ID' />"; 16 } 17 11 18 $colspan = 2; 12 19 $form_pingback = '<input type="hidden" name="post_pingback" value="0" />'; … … 34 41 <form name="post" action="post.php" method="post" id="post"> 35 42 <input type="hidden" name="user_ID" value="<?php echo $user_ID ?>" /> 36 <input type="hidden" name="action" value='<?php echo $form_action . $form_extra ?>' /> 43 <input type="hidden" name="action" value='<?php echo $form_action ?>' /> 44 <?php echo $form_extra ?> 37 45 38 46 <script type="text/javascript"> … … 154 162 } 155 163 if ('edit' == $action) echo " 156 <p><a href='post.php?action=delete&post=$post ->ID' onclick=\"return confirm('You are about to delete this post \'".addslashes($edited_post_title)."\'\\n \'Cancel\' to stop, \'OK\' to delete.')\">Delete this post</a></p>";164 <p><a href='post.php?action=delete&post=$post_ID' onclick=\"return confirm('You are about to delete this post \'".addslashes($edited_post_title)."\'\\n \'Cancel\' to stop, \'OK\' to delete.')\">Delete this post</a></p>"; 157 165 ?> 158 166
Note: See TracChangeset
for help on using the changeset viewer.