mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-06-28 22:30:04 +00:00
AJAX, cause you love it. Props mdawaffe. fixes #2561
git-svn-id: https://develop.svn.wordpress.org/trunk@3660 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -6,10 +6,10 @@
|
||||
if (0 == $post_ID) {
|
||||
$form_action = 'post';
|
||||
$temp_ID = -1 * time();
|
||||
$form_extra = "<input type='hidden' name='temp_ID' value='$temp_ID' />";
|
||||
$form_extra = "<input type='hidden' id='post_ID' name='temp_ID' value='$temp_ID' />";
|
||||
} else {
|
||||
$form_action = 'editpost';
|
||||
$form_extra = "<input type='hidden' name='post_ID' value='$post_ID' />";
|
||||
$form_extra = "<input type='hidden' id='post_ID' name='post_ID' value='$post_ID' />";
|
||||
}
|
||||
|
||||
$sendto = $_SERVER['HTTP_REFERER'];
|
||||
@@ -209,14 +209,14 @@ if (current_user_can('upload_files')) {
|
||||
<fieldset id="postcustom" class="dbx-box">
|
||||
<h3 class="dbx-handle"><?php _e('Custom Fields') ?></h3>
|
||||
<div id="postcustomstuff" class="dbx-content">
|
||||
<table cellpadding="3">
|
||||
<?php
|
||||
if($metadata = has_meta($post_ID)) {
|
||||
$metadata = has_meta($post_ID);
|
||||
list_meta($metadata);
|
||||
?>
|
||||
|
||||
</table>
|
||||
<?php
|
||||
list_meta($metadata);
|
||||
?>
|
||||
<?php
|
||||
}
|
||||
meta_form();
|
||||
?>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user