Make WordPress Core

Changeset 1980


Ignore:
Timestamp:
12/19/2004 07:26:43 AM (20 years ago)
Author:
saxmatt
Message:

Bug fixes

Location:
trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/index.php

    r1979 r1980  
    55require_once (ABSPATH . WPINC . '/rss-functions.php');
    66
    7 $today = current_time('mysql');
     7$today = current_time('mysql', 1);
    88?>
    99
     
    3131
    3232<?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'") ) :
     33if ( $scheduled = $wpdb->get_results("SELECT ID, post_title, post_date_gmt FROM $wpdb->posts WHERE post_status = 'publish' AND post_date_gmt > '$today'") ) :
    3434?>
    3535<div>
     
    4040    if ($post->post_title == '')
    4141        $post->post_title = sprintf(__('Post #%s'), $post->ID);
    42     echo "<li><a href='post.php?action=edit&amp;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&amp;post=$post->ID' title='" . __('Edit this post') . "'>$post->post_title</a> in " . human_time_diff( time(), strtotime($post->post_date_gmt) )  . "</li>";
    4343}
    4444?>
  • trunk/wp-includes/functions-formatting.php

    r1976 r1980  
    557557    if ($diff <= 3600) {
    558558        $mins = round($diff / 60);
    559         $since = sprintf( __('%s mins', $mins) );
     559        $since = sprintf( __('%s mins'), $mins);
    560560    } else if (($diff <= 86400) && ($diff > 3600)) {
    561561        $hours = round($diff / 3600);
  • trunk/wp-settings.php

    r1964 r1980  
    5959
    6060require (ABSPATH . WPINC . '/functions.php');
     61
     62$wpdb->hide_errors();
     63if ( !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
    6167require (ABSPATH . WPINC . '/functions-formatting.php');
    6268require (ABSPATH . WPINC . '/functions-post.php');
     
    6773
    6874require_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();
    7475
    7576if (!strstr($_SERVER['PHP_SELF'], 'install.php') && !strstr($_SERVER['PHP_SELF'], 'wp-admin/import')) :
Note: See TracChangeset for help on using the changeset viewer.