Make WordPress Core


Ignore:
Timestamp:
03/29/2006 01:51:55 AM (18 years ago)
Author:
ryan
Message:

AJAX, cause you love it. Props mdawaffe. fixes #2561

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/edit-page-form.php

    r3563 r3660  
    77    $form_action = 'post';
    88    $temp_ID = -1 * time();
    9     $form_extra = "<input type='hidden' name='temp_ID' value='$temp_ID' />";
     9    $form_extra = "<input type='hidden' id='post_ID' name='temp_ID' value='$temp_ID' />";
    1010} else {
    1111    $form_action = 'editpost';
    12     $form_extra = "<input type='hidden' name='post_ID' value='$post_ID' />";
     12    $form_extra = "<input type='hidden' id='post_ID' name='post_ID' value='$post_ID' />";
    1313}
    1414
     
    210210<h3 class="dbx-handle"><?php _e('Custom Fields') ?></h3>
    211211<div id="postcustomstuff" class="dbx-content">
     212<table cellpadding="3">
    212213<?php
    213 if($metadata = has_meta($post_ID)) {
    214 ?>
    215 <?php
    216     list_meta($metadata);
    217 ?>
    218 <?php
    219 }
     214$metadata = has_meta($post_ID);
     215list_meta($metadata);
     216?>
     217
     218</table>
     219<?php
    220220    meta_form();
    221221?>
Note: See TracChangeset for help on using the changeset viewer.