Changeset 8589 for trunk/wp-admin/edit-page-form.php
- Timestamp:
- 08/08/2008 05:05:10 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/edit-page-form.php
r8530 r8589 1 1 <?php 2 3 if ( ! isset( $post_ID ) ) 4 $post_ID = 0; 5 2 6 if ( isset($_GET['message']) ) 3 7 $_GET['message'] = absint( $_GET['message'] ); 4 $messages[1] = sprintf( __( 'Page updated. Continue editing below or <a href="%s">go back</a>.' ), attribute_escape( stripslashes( $_GET['_wp_original_http_referer']) ) );8 $messages[1] = sprintf( __( 'Page updated. Continue editing below or <a href="%s">go back</a>.' ), attribute_escape( stripslashes( ( isset( $_GET['_wp_original_http_referer'] ) ? $_GET['_wp_original_http_referer'] : '') ) ) ); 5 9 $messages[2] = __('Custom field updated.'); 6 10 $messages[3] = __('Custom field deleted.'); … … 13 17 $notices[1] = __( 'There is an autosave of this page that is more recent than the version below. <a href="%s">View the autosave</a>.' ); 14 18 15 if ( !isset($post_ID) ||0 == $post_ID) {19 if ( 0 == $post_ID) { 16 20 $form_action = 'post'; 17 21 $nonce_action = 'add-page'; … … 103 107 104 108 <?php 105 if ( $post_ID) {109 if ( 0 != $post_ID ) { 106 110 if ( 'future' == $post->post_status ) { // scheduled for publishing at a future date 107 111 $stamp = __('Scheduled for:<br />%1$s at %2$s'); … … 145 149 ?> 146 150 <br class="clear" /> 147 <?php if ( $post_ID): ?>151 <?php if ( 0 != $post_ID ) : ?> 148 152 <?php if ( $last_id = get_post_meta($post_ID, '_edit_last', true) ) { 149 153 $last_user = get_userdata($last_id); … … 163 167 164 168 <ul> 165 <?php if ( $post_ID): ?>169 <?php if ( 0 != $post_ID ) : ?> 166 170 <li><a href="edit-pages.php?page_id=<?php echo $post_ID ?>"><?php _e('See Comments on this Page') ?></a></li> 167 171 <?php endif; ?> … … 241 245 function page_password_meta_box($post){ 242 246 ?> 243 <p><label class="hidden" for="post_password"><?php _e('Password Protect This Page') ?></label><input name="post_password" type="text" size="25" id="post_password" value="<?php echo attribute_escape( $post->post_password); ?>" /></p>247 <p><label class="hidden" for="post_password"><?php _e('Password Protect This Page') ?></label><input name="post_password" type="text" size="25" id="post_password" value="<?php echo ( isset( $post->post_password ) ? attribute_escape( $post->post_password ) : '' ); ?>" /></p> 244 248 <p><?php _e('Setting a password will require people who visit your blog to enter the above password to view this page and its comments.'); ?></p> 245 249 <?php … … 305 309 306 310 307 if ( isset($post_ID) &&0 < $post_ID && wp_get_post_revisions( $post_ID ) ) :311 if ( 0 < $post_ID && wp_get_post_revisions( $post_ID ) ) : 308 312 function page_revisions_meta_box($post) { 309 313 wp_list_post_revisions();
Note: See TracChangeset
for help on using the changeset viewer.