Ticket #5607: remove_admin_notices10.diff
File remove_admin_notices10.diff, 1.8 KB (added by , 17 years ago) |
---|
-
wp-admin/edit-page-form.php
3 3 <h2 id="write-post"><?php _e('Write Page'); ?></h2> 4 4 <?php 5 5 6 if ( 0 == $post_ID) {6 if (empty($post_ID) || 0 == $post_ID) { 7 7 $form_action = 'post'; 8 8 $nonce_action = 'add-page'; 9 9 $temp_ID = -1 * time(); // don't change this formula without looking at wp_write_post() … … 20 20 21 21 $sendto = clean_url(stripslashes(wp_get_referer())); 22 22 23 if ( 0 != $post_ID&& $sendto == get_permalink($post_ID) )23 if ( ! empty($post_ID) && $sendto == get_permalink($post_ID) ) 24 24 $sendto = 'redo'; 25 25 ?> 26 26 … … 73 73 74 74 <fieldset id="passworddiv" class="dbx-box"> 75 75 <h3 class="dbx-handle"><?php _e('Page Password') ?></h3> 76 <div class="dbx-content"><input name="post_password" type="text" size="13" id="post_password" value="<?php echo attribute_escape( $post->post_password ); ?>" /></div>76 <div class="dbx-content"><input name="post_password" type="text" size="13" id="post_password" value="<?php echo ( isset($post->post_password) ) ? attribute_escape( $post->post_password ) : ''; ?>" /></div> 77 77 </fieldset> 78 78 79 79 <fieldset id="pageparent" class="dbx-box"> … … 98 98 99 99 <fieldset id="slugdiv" class="dbx-box"> 100 100 <h3 class="dbx-handle"><?php _e('Page Slug') ?></h3> 101 <div class="dbx-content"><input name="post_name" type="text" size="13" id="post_name" value="<?php echo attribute_escape( $post->post_name); ?>" /></div>101 <div class="dbx-content"><input name="post_name" type="text" size="13" id="post_name" value="<?php echo attribute_escape( ( isset($post->post_name) ) ? $post->post_name : '' ); ?>" /></div> 102 102 </fieldset> 103 103 104 104 <?php if ( $authors = get_editable_authors( $current_user->id ) ) : // TODO: ROLE SYSTEM ?>