Skip to:
Content

bbPress.org

Changeset 5321


Ignore:
Timestamp:
03/12/2014 09:06:02 PM (7 years ago)
Author:
johnjamesjacoby
Message:

Remove akismet_microtime() usage as it's been removed from Akismet's development branch.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/includes/extend/akismet.php

    r5320 r5321  
    518518
    519519        // Get the user's login name if possible
    520         if ( is_object( $current_user ) && isset( $current_user->user_login ) )
     520        if ( is_object( $current_user ) && isset( $current_user->user_login ) ) {
    521521            $user = $current_user->user_login;
     522        }
     523
     524        // This used to be akismet_microtime() but it was removed in 3.0
     525        $mtime        = explode( ' ', microtime() );
     526        $message_time = $mtime[1] + $mtime[0];
    522527
    523528        // Setup the event to be saved
    524529        $event = array(
    525             'time'    => akismet_microtime(),
     530            'time'    => $message_time,
    526531            'message' => $message,
    527532            'event'   => $event,
Note: See TracChangeset for help on using the changeset viewer.