Changeset 1980
- Timestamp:
- 12/19/2004 07:26:43 AM (20 years ago)
- Location:
- trunk
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/index.php
r1979 r1980 5 5 require_once (ABSPATH . WPINC . '/rss-functions.php'); 6 6 7 $today = current_time('mysql' );7 $today = current_time('mysql', 1); 8 8 ?> 9 9 … … 31 31 32 32 <?php 33 if ( $scheduled = $wpdb->get_results("SELECT ID, post_title, post_date FROM $wpdb->posts WHERE post_status = 'publish' AND post_date_gmt > '$today'") ) :33 if ( $scheduled = $wpdb->get_results("SELECT ID, post_title, post_date_gmt FROM $wpdb->posts WHERE post_status = 'publish' AND post_date_gmt > '$today'") ) : 34 34 ?> 35 35 <div> … … 40 40 if ($post->post_title == '') 41 41 $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 ) ) . "</li>";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 43 } 44 44 ?> -
trunk/wp-includes/functions-formatting.php
r1976 r1980 557 557 if ($diff <= 3600) { 558 558 $mins = round($diff / 60); 559 $since = sprintf( __('%s mins' , $mins));559 $since = sprintf( __('%s mins'), $mins); 560 560 } else if (($diff <= 86400) && ($diff > 3600)) { 561 561 $hours = round($diff / 3600); -
trunk/wp-settings.php
r1964 r1980 59 59 60 60 require (ABSPATH . WPINC . '/functions.php'); 61 62 $wpdb->hide_errors(); 63 if ( !update_user_cache() && !strstr($_SERVER['PHP_SELF'], 'install.php') ) 64 die("It doesn't look like you've installed WP yet. Try running <a href='wp-admin/install.php'>install.php</a>."); 65 $wpdb->show_errors(); 66 61 67 require (ABSPATH . WPINC . '/functions-formatting.php'); 62 68 require (ABSPATH . WPINC . '/functions-post.php'); … … 67 73 68 74 require_once (ABSPATH . WPINC . '/wp-l10n.php'); 69 70 $wpdb->hide_errors();71 if ( !update_user_cache() && !strstr($_SERVER['PHP_SELF'], 'install.php') )72 die("It doesn't look like you've installed WP yet. Try running <a href='wp-admin/install.php'>install.php</a>.");73 $wpdb->show_errors();74 75 75 76 if (!strstr($_SERVER['PHP_SELF'], 'install.php') && !strstr($_SERVER['PHP_SELF'], 'wp-admin/import')) :
Note: See TracChangeset
for help on using the changeset viewer.