Ticket #5607: remove_admin_notices9.diff
File remove_admin_notices9.diff, 2.6 KB (added by , 17 years ago) |
---|
-
wp-admin/includes/upload.php
163 163 <?php endif; ?> 164 164 <tr> 165 165 <th scope="row"><label for="post_title"><?php _e('Title'); ?></label></th> 166 <td><input type="text" id="post_title" name="post_title" value="<?php echo $attachment->post_title; ?>" /></td>166 <td><input type="text" id="post_title" name="post_title" value="<?php echo ( isset($attachment->post_title) ) ? $attachment->post_title : ''; ?>" /></td> 167 167 </tr> 168 168 <tr> 169 169 <th scope="row"><label for="post_content"><?php _e('Description'); ?></label></th> 170 <td><textarea name="post_content" id="post_content"><?php echo $attachment->post_content; ?></textarea></td>170 <td><textarea name="post_content" id="post_content"><?php echo ( isset($attachment->post_conent) ) ? $attachment->post_content : ''; ?></textarea></td> 171 171 </tr> 172 172 <?php if (isset($attachment_data['image_meta'])) { ?> 173 173 <tr> -
wp-admin/includes/post.php
134 134 $text = wp_specialchars( stripslashes( urldecode( $_REQUEST['text'] ) ) ); 135 135 $text = funky_javascript_fix( $text); 136 136 $popupurl = clean_url($_REQUEST['popupurl']); 137 $post_content = '<a href="'.$popupurl.'">'.$post_title.'</a>'."\n$text"; 138 } 137 $post_content = '<a href="'.$popupurl.'">'.$post_title.'</a>'."\n$text"; 138 } else 139 $post_content = ''; 140 139 141 140 142 if ( !empty( $_REQUEST['excerpt'] ) ) 141 143 $post_excerpt = wp_specialchars( stripslashes( $_REQUEST['excerpt'] )); … … 478 480 global $wpdb; 479 481 if ( false === $q ) 480 482 $q = $_GET; 481 $q['m'] = ( int) $q['m'];482 $q['cat'] = ( int) $q['cat'];483 $q['m'] = ( isset($q['m']) ) ? (int) $q['m'] : 0; 484 $q['cat'] = ( isset($q['cat']) ) ? (int) $q['cat'] : 0; 483 485 $post_stati = array( // array( adj, noun ) 484 486 'draft' => array(__('Draft'), _c('Drafts|manage posts header')), 485 487 'future' => array(__('Scheduled'), __('Scheduled posts')), … … 497 499 $post_status_q = '&post_status=' . $q['post_status']; 498 500 } 499 501 500 if ( 'pending' === $q['post_status'] ) {502 if ( isset($q['post_status']) && 'pending' === $q['post_status'] ) { 501 503 $order = 'ASC'; 502 504 $orderby = 'modified'; 503 } elseif ( 'draft' === $q['post_status'] ) {505 } elseif ( isset($q['post_status']) && 'draft' === $q['post_status'] ) { 504 506 $order = 'DESC'; 505 507 $orderby = 'modified'; 506 508 } else {