Plugin Directory

Changeset 700896


Ignore:
Timestamp:
04/21/2013 12:59:37 AM (13 years ago)
Author:
kobenland
Message:

Fixes an error, where the second argument in the wp_login action is not set. For some weird reason.

Location:
wp-last-login/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • wp-last-login/trunk/readme.txt

    r700584 r700896  
    55Requires at least: 3.1
    66Tested up to: 3.6
    7 Stable tag: 1.2.0
     7Stable tag: 1.2.1
    88
    99Make the last login for each user visibile in the user overview.
     
    5252== Changelog ==
    5353
     54= 1.2.1 =
     55* Reverts changes to wp_login() as the second argument seems not to be set at all times.
     56
    5457= 1.2.0 =
    5558* Users are now sortable by last login!
  • wp-last-login/trunk/wp-last-login.php

    r700584 r700896  
    55 * Plugin URI:  http://en.wp.obenland.it/wp-last-login/#utm_source=wordpress&utm_medium=plugin&utm_campaign=wp-last-login
    66 * Description: Displays the date of the last login in user lists.
    7  * Version:     1.2.0
     7 * Version:     1.2.1
    88 * Author:      Konstantin Obenland
    99 * Author URI:  http://en.wp.obenland.it/#utm_source=wordpress&utm_medium=plugin&utm_campaign=wp-last-login
     
    8686     * @return void
    8787     */
    88     public function wp_login( $user_login, $user ) {
     88    public function wp_login( $user_login ) {
     89        $user = get_user_by( 'login', $user_login );
    8990        update_user_meta( $user->ID, $this->textdomain, time() );
    9091    }
Note: See TracChangeset for help on using the changeset viewer.