Make WordPress Core


Ignore:
Timestamp:
09/21/2008 08:41:25 PM (17 years ago)
Author:
westi
Message:

Notice fixes see #7509 props DD32 and jacobsantos.

File:
1 edited

Legend:

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

    r8893 r8944  
    370370</p>
    371371<h4><?php _e( 'Post Password' ); ?></h4>
    372 <p><label class="hidden" for="post_password"><?php _e('Password Protect This Post') ?></label><input name="post_password" type="text" size="25" id="post_password" value="<?php echo attribute_escape( $post->post_password ); ?>" /></p>
     372<p><label class="hidden" for="post_password"><?php _e('Password Protect This Post') ?></label><input name="post_password" type="text" size="25" id="post_password" value="<?php if ( isset( $post->post_password ) ) echo attribute_escape( $post->post_password ); ?>" /></p>
    373373<p><?php _e('Setting a password will require people who visit your blog to enter the above password to view this post and its comments.'); ?></p>
    374374<?php
Note: See TracChangeset for help on using the changeset viewer.