Make WordPress Core


Ignore:
Timestamp:
03/31/2004 06:17:14 AM (21 years ago)
Author:
alex_t_king
Message:

added a check to see if the post exists, it it doesn't show the edit button

File:
1 edited

Legend:

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

    r1033 r1038  
    161161<p><?php echo $saveasdraft; ?> <input type="submit" name="submit" value="Save" style="font-weight: bold;" tabindex="6" />
    162162<?php
    163 if ('publish' != $post_status) {
     163if ('publish' != $post_status || 0 == $post_ID) {
    164164?>
    165165    <input name="publish" type="submit" id="publish" tabindex="10" value="Publish" />
Note: See TracChangeset for help on using the changeset viewer.