Relocate edit_page_form hook for consistency. Props Denis-de-Bernardy. fixes #2118

git-svn-id: http://svn.automattic.com/wordpress/trunk@3434 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
ryan 2006-01-13 22:42:45 +00:00
parent 58029f7249
commit f7ed2d60d3
1 changed files with 2 additions and 2 deletions

View File

@ -181,6 +181,8 @@ else
<input name="referredby" type="hidden" id="referredby" value="<?php echo $sendto; ?>" />
</p>
<?php do_action('edit_page_form'); ?>
<?php
$uploading_iframe_ID = (0 == $post_ID ? $temp_ID : $post_ID);
$uploading_iframe_src = "inline-uploading.php?action=view&amp;post=$uploading_iframe_ID";
@ -214,8 +216,6 @@ if($metadata = has_meta($post_ID)) {
<?php if ('edit' == $action) : ?>
<input name="deletepost" class="delete" type="submit" id="deletepost" tabindex="10" value="<?php _e('Delete this page') ?>" <?php echo "onclick=\"return confirm('" . sprintf(__("You are about to delete this page \'%s\'\\n \'Cancel\' to stop, \'OK\' to delete."), $wpdb->escape($post->post_title) ) . "')\""; ?> />
<?php endif; ?>
<?php do_action('edit_page_form', ''); ?>
</form>
</div>