Make WordPress Core

Changeset 3101


Ignore:
Timestamp:
11/16/2005 02:17:26 AM (19 years ago)
Author:
ryan
Message:

Don't show Publish button for published posts.

File:
1 edited

Legend:

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

    r3015 r3101  
    196196<p class="submit"><?php echo $saveasdraft; ?> <input type="submit" name="submit" value="<?php _e('Save') ?>" style="font-weight: bold;" tabindex="4" />
    197197<?php
    198 if ('publish' != $post_status || 0 == $post_ID) {
     198if ('publish' != $post->post_status || 0 == $post_ID) {
    199199?>
    200200<?php if ( current_user_can('publish_posts') ) : ?>
Note: See TracChangeset for help on using the changeset viewer.