WordPress.org

Make WordPress Core

Changeset 22121


Ignore:
Timestamp:
10/05/12 13:11:16 (19 months ago)
Author:
nacin
Message:

Use 2 * DAY_IN_SECONDS rather than 172800. props pavelevap. fixes #20987.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/ms-functions.php

    r22092 r22121  
    487487        $diff = $now - $registered_at; 
    488488        // If registered more than two days ago, cancel registration and let this signup go through. 
    489         if ( $diff > 172800 ) 
     489        if ( $diff > 2 * DAY_IN_SECONDS ) 
    490490            $wpdb->delete( $wpdb->signups, array( 'user_login' => $user_name ) ); 
    491491        else 
     
    500500        $diff = current_time( 'timestamp', true ) - mysql2date('U', $signup->registered); 
    501501        // If registered more than two days ago, cancel registration and let this signup go through. 
    502         if ( $diff > 172800 ) 
     502        if ( $diff > 2 * DAY_IN_SECONDS ) 
    503503            $wpdb->delete( $wpdb->signups, array( 'user_email' => $user_email ) ); 
    504504        else 
     
    603603        $diff = current_time( 'timestamp', true ) - mysql2date('U', $signup->registered); 
    604604        // If registered more than two days ago, cancel registration and let this signup go through. 
    605         if ( $diff > 172800 ) 
     605        if ( $diff > 2 * DAY_IN_SECONDS ) 
    606606            $wpdb->delete( $wpdb->signups, array( 'domain' => $mydomain , 'path' => $path ) ); 
    607607        else 
Note: See TracChangeset for help on using the changeset viewer.