WordPress.org

Make WordPress Core

Changeset 1971


Ignore:
Timestamp:
12/17/2004 07:27:35 PM (17 years ago)
Author:
saxmatt
Message:

Change dateYMDhour to be something more sane, bugfix on edit.php.

Location:
trunk
Files:
6 edited

Legend:

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

    r1940 r1971  
    6565<h2>
    6666<?php
    67 if ( isset( $_GET['m'] ) ) {
     67if ( $_GET['m'] ) {
    6868    echo $month[substr( $_GET['m'], 4, 2 )] . ' ' . substr( $_GET['m'], 0, 4 );
    6969} elseif ( isset( $_GET['s'] ) ) {
  • trunk/wp-admin/upgrade-functions.php

    r1764 r1971  
    130130        $wpdb->query("UPDATE $wpdb->posts SET post_modified_gmt = DATE_ADD(post_modified, INTERVAL '$add_hours:$add_minutes' HOUR_MINUTE) WHERE post_modified != '0000-00-00 00:00:00'");
    131131        $wpdb->query("UPDATE $wpdb->comments SET comment_date_gmt = DATE_ADD(comment_date, INTERVAL '$add_hours:$add_minutes' HOUR_MINUTE)");
    132         $wpdb->query("UPDATE $wpdb->users SET dateYMDhour = DATE_ADD(dateYMDhour, INTERVAL '$add_hours:$add_minutes' HOUR_MINUTE)");
     132        $wpdb->query("UPDATE $wpdb->users SET user_registered = DATE_ADD(dateYMDhour, INTERVAL '$add_hours:$add_minutes' HOUR_MINUTE)");
    133133    }
    134134
  • trunk/wp-admin/upgrade-schema.php

    r1752 r1971  
    136136  user_domain varchar(200) NOT NULL default '',
    137137  user_browser varchar(200) NOT NULL default '',
    138   dateYMDhour datetime NOT NULL default '0000-00-00 00:00:00',
     138  user_registered datetime NOT NULL default '0000-00-00 00:00:00',
    139139  user_level int(2) unsigned NOT NULL default '0',
    140140  user_aim varchar(50) NOT NULL default '',
  • trunk/wp-admin/user-edit.php

    r1940 r1971  
    110110        <td><?php echo get_usernumposts($edituser->ID); ?></td>
    111111    </tr>
     112<?php if ( '0000-00-00 00:00:00' != $edituser->user_registered ) { ?>
     113    <tr>
     114        <th scope="row"><?php _e('Registered on:') ?></th>
     115        <td><?php echo substr($edituser->user_registered, 0, 11); ?></td>
     116    </tr>
     117<?php } ?>
    112118    <tr>
    113119        <th scope="row"><?php _e('First name:') ?></th>
  • trunk/wp-admin/users.php

    r1940 r1971  
    7272
    7373    $result = $wpdb->query("INSERT INTO $wpdb->users
    74         (user_login, user_pass, user_nickname, user_email, user_ip, user_domain, user_browser, dateYMDhour, user_level, user_idmode, user_firstname, user_lastname, user_nicename, user_url)
     74        (user_login, user_pass, user_nickname, user_email, user_ip, user_domain, user_browser, user_registered, user_level, user_idmode, user_firstname, user_lastname, user_nicename, user_url)
    7575    VALUES
    7676        ('$user_login', MD5('$pass1'), '$user_nickname', '$user_email', '$user_ip', '$user_domain', '$user_browser', '$now', '$new_users_can_blog', 'nickname', '$user_firstname', '$user_lastname', '$user_nicename', '$user_uri')");
  • trunk/wp-register.php

    r1964 r1971  
    7272
    7373    $result = $wpdb->query("INSERT INTO $wpdb->users
    74         (user_login, user_pass, user_nickname, user_email, user_ip, user_browser, dateYMDhour, user_level, user_idmode, user_nicename)
     74        (user_login, user_pass, user_nickname, user_email, user_ip, user_browser, user_registered, user_level, user_idmode, user_nicename)
    7575    VALUES
    7676        ('$user_login', MD5('$pass1'), '$user_nickname', '$user_email', '$user_ip', '$user_browser', '$now', '$user_level', 'nickname', '$user_nicename')");
Note: See TracChangeset for help on using the changeset viewer.