Make WordPress Core


Ignore:
Timestamp:
11/04/2008 03:22:24 AM (16 years ago)
Author:
ryan
Message:

Notice fixes from filosofo and Viper007Bond. see #7509

File:
1 edited

Legend:

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

    r9491 r9506  
    205205if ( !in_array( $post->post_status, array('publish', 'future') ) || 0 == $post->ID ) { ?>
    206206<?php if ( current_user_can('publish_posts') ) : ?>
    207     <?php if ( time() < strtotime( $post->post_date_gmt . ' +0000' ) ) : ?>
     207    <?php if ( !empty($post->post_date_gmt) && time() < strtotime( $post->post_date_gmt . ' +0000' ) ) : ?>
    208208        <input name="publish" type="submit" class="button-primary" id="publish" tabindex="5" accesskey="p" value="<?php _e('Schedule') ?>" />
    209209    <?php else : ?>
Note: See TracChangeset for help on using the changeset viewer.