Plugin Directory

Changeset 3013542

Timestamp:
12/22/2023 08:48:06 PM (8 months ago)
Author:
obenland
Message:

Update to version 7 from GitHub

Location:
wp-last-login
Files:
4 edited
1 copied

Legend:

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

    r3013516 r3013542  
    55Requires at least: 3.1
    66Tested up to: 6.4
    7 Stable tag: 6
     7Stable tag:
    88
    99Make the last login for each user visible in the user overview.
     
    5353== Changelog ==
    5454
    55 = 6.0 =
     55= 7 =
     56* Added compatibility with Two Factor plugin. Props @bkno.
     57* Improved date display to display login time on hover.
     58
     59= 6 =
    5660* Revamped file structure to remove unnecessary files.
    5761* Fixed a bug where login dates were overwritten on plugin reactivation. Props @richardbuff.
     
    97101= 1.1.0 =
    98102* Made the display of the column filterable.
    99 * Widened the column a bit to accomodate for large date strings.
     103* Widened the column a bit to accomodate for large date strings.
    100104
    101105= 1.0 =
  • wp-last-login/tags/7/wp-last-login.php

    r3013516 r3013542  
    44 * Plugin URI:  http://en.wp.obenland.it/wp-last-login/#utm_source=wordpress&utm_medium=plugin&utm_campaign=wp-last-login
    55 * Description: Displays the date of the last login in user lists.
    6  * Version:     6
     6 * Version:     
    77 * Author:      Konstantin Obenland
    88 * Author URI:  http://en.wp.obenland.it/#utm_source=wordpress&utm_medium=plugin&utm_campaign=wp-last-login
     
    5454}
    5555add_action( 'wp_login', 'wpll_wp_login' );
     56
     57
     58
     59
     60
     61
     62
     63
     64
     65
     66
     67
     68
     69
     70
     71
    5672
    5773/**
     
    127143            $format     = apply_filters( 'wpll_date_format', get_option( 'date_format' ) );
    128144            $last_login = get_date_from_gmt( gmdate( 'Y-m-d H:i:s', $last_login ), 'U' );
    129             $value      = date_i18n( $format, $last_login );
     145            $value      = sprintf(
     146                '<time title="%1$s" datetime="%2$s">%3$s</time>',
     147                esc_attr( date_i18n( get_option( 'time_format' ), $last_login ) ),
     148                esc_attr( gmdate( 'c', $last_login ) ),
     149                esc_html( date_i18n( $format, $last_login ) )
     150            );
    130151        }
    131152    }
  • wp-last-login/trunk/readme.txt

    r3013516 r3013542  
    55Requires at least: 3.1
    66Tested up to: 6.4
    7 Stable tag: 6
     7Stable tag:
    88
    99Make the last login for each user visible in the user overview.
     
    5353== Changelog ==
    5454
    55 = 6.0 =
     55= 7 =
     56* Added compatibility with Two Factor plugin. Props @bkno.
     57* Improved date display to display login time on hover.
     58
     59= 6 =
    5660* Revamped file structure to remove unnecessary files.
    5761* Fixed a bug where login dates were overwritten on plugin reactivation. Props @richardbuff.
     
    97101= 1.1.0 =
    98102* Made the display of the column filterable.
    99 * Widened the column a bit to accomodate for large date strings.
     103* Widened the column a bit to accomodate for large date strings.
    100104
    101105= 1.0 =
  • wp-last-login/trunk/wp-last-login.php

    r3013516 r3013542  
    44 * Plugin URI:  http://en.wp.obenland.it/wp-last-login/#utm_source=wordpress&utm_medium=plugin&utm_campaign=wp-last-login
    55 * Description: Displays the date of the last login in user lists.
    6  * Version:     6
     6 * Version:     
    77 * Author:      Konstantin Obenland
    88 * Author URI:  http://en.wp.obenland.it/#utm_source=wordpress&utm_medium=plugin&utm_campaign=wp-last-login
     
    5454}
    5555add_action( 'wp_login', 'wpll_wp_login' );
     56
     57
     58
     59
     60
     61
     62
     63
     64
     65
     66
     67
     68
     69
     70
     71
    5672
    5773/**
     
    127143            $format     = apply_filters( 'wpll_date_format', get_option( 'date_format' ) );
    128144            $last_login = get_date_from_gmt( gmdate( 'Y-m-d H:i:s', $last_login ), 'U' );
    129             $value      = date_i18n( $format, $last_login );
     145            $value      = sprintf(
     146                '<time title="%1$s" datetime="%2$s">%3$s</time>',
     147                esc_attr( date_i18n( get_option( 'time_format' ), $last_login ) ),
     148                esc_attr( gmdate( 'c', $last_login ) ),
     149                esc_html( date_i18n( $format, $last_login ) )
     150            );
    130151        }
    131152    }
Note: See TracChangeset for help on using the changeset viewer.