Ticket #4286: edit.patch
| File edit.patch, 1.7 KB (added by devil1591, 6 years ago) |
|---|
-
edit.php
15 15 ?> 16 16 <div class="wrap"> 17 17 <?php if ($drafts) { ?> 18 < p><strong><?php _e('Your Drafts:') ?></strong>18 <strong><?php _e('Your Drafts:') ?></strong> 19 19 <?php 20 20 $i = 0; 21 21 foreach ($drafts as $draft) { 22 if (0 != $i)23 echo ' ,';22 if (0 == $i) 23 echo '<ul>'; 24 24 $draft->post_title = apply_filters('the_title', stripslashes($draft->post_title)); 25 25 if ($draft->post_title == '') 26 26 $draft->post_title = sprintf(__('Post #%s'), $draft->ID); 27 echo "< a href='post.php?action=edit&post=$draft->ID' title='" . __('Edit this draft') . "'>$draft->post_title</a>";27 echo "<li><a href='post.php?action=edit&post=$draft->ID' title='" . __('Edit this draft') . "'>$draft->post_title</a></li>"; 28 28 ++$i; 29 29 } 30 if ($i > 0) 31 echo '</ul>'; 30 32 ?> 31 .</p> 33 32 34 <?php } ?> 33 35 34 36 <?php if ($other_drafts) { ?> 35 < p><strong><?php _e('Other’s Drafts:') ?></strong>37 <strong><?php _e('Other’s Drafts:') ?></strong> 36 38 <?php 37 39 $i = 0; 38 40 foreach ($other_drafts as $draft) { 39 if (0 != $i)40 echo ' ,';41 if (0 == $i) 42 echo '<ul>'; 41 43 $draft->post_title = apply_filters('the_title', stripslashes($draft->post_title)); 42 44 if ($draft->post_title == '') 43 45 $draft->post_title = sprintf(__('Post #%s'), $draft->ID); 44 echo "< a href='post.php?action=edit&post=$draft->ID' title='" . __('Edit this draft') . "'>$draft->post_title</a>";46 echo "<li><a href='post.php?action=edit&post=$draft->ID' title='" . __('Edit this draft') . "'>$draft->post_title</a></li>"; 45 47 ++$i; 46 48 } 49 if ($i > 0) 50 echo '</ul>'; 47 51 ?> 48 .</p>49 52 50 53 <?php } ?> 51 54