Ticket #783: index.php.diff
File index.php.diff, 871 bytes (added by , 20 years ago) |
---|
-
index.php
old new 5 5 require_once (ABSPATH . WPINC . '/rss-functions.php'); 6 6 7 7 $today = current_time('mysql', 1); 8 $time_adj = time() - (get_settings('gmt_offset') * 3600); 8 9 ?> 9 10 10 11 <div class="wrap"> … … 39 40 foreach ($scheduled as $post) { 40 41 if ($post->post_title == '') 41 42 $post->post_title = sprintf(__('Post #%s'), $post->ID); 42 echo "<li><a href='post.php?action=edit&post=$post->ID' title='" . __('Edit this post') . "'>$post->post_title</a> in " . human_time_diff( time(), strtotime($post->post_date_gmt) ) . "</li>";43 echo "<li><a href='post.php?action=edit&post=$post->ID' title='" . __('Edit this post') . "'>$post->post_title</a> in " . human_time_diff( $time_adj, strtotime($post->post_date_gmt) ) . "</li>"; 43 44 } 44 45 ?> 45 46 </ul>