Changeset 3013542
- Timestamp:
- 12/22/2023 08:48:06 PM (8 months ago)
- Location:
- wp-last-login
- Files:
-
- 4 edited
- 1 copied
Legend:
- Unmodified
- Added
- Removed
-
wp-last-login/tags/7/readme.txt
r3013516 r3013542 5 5 Requires at least: 3.1 6 6 Tested up to: 6.4 7 Stable tag: 67 Stable tag: 8 8 9 9 Make the last login for each user visible in the user overview. … … 53 53 == Changelog == 54 54 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 = 56 60 * Revamped file structure to remove unnecessary files. 57 61 * Fixed a bug where login dates were overwritten on plugin reactivation. Props @richardbuff. … … 97 101 = 1.1.0 = 98 102 * Made the display of the column filterable. 99 * Widened the column a bit to accom odate for large date strings.103 * Widened the column a bit to accomodate for large date strings. 100 104 101 105 = 1.0 = -
wp-last-login/tags/7/wp-last-login.php
r3013516 r3013542 4 4 * Plugin URI: http://en.wp.obenland.it/wp-last-login/#utm_source=wordpress&utm_medium=plugin&utm_campaign=wp-last-login 5 5 * Description: Displays the date of the last login in user lists. 6 * Version: 66 * Version: 7 7 * Author: Konstantin Obenland 8 8 * Author URI: http://en.wp.obenland.it/#utm_source=wordpress&utm_medium=plugin&utm_campaign=wp-last-login … … 54 54 } 55 55 add_action( 'wp_login', 'wpll_wp_login' ); 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 56 72 57 73 /** … … 127 143 $format = apply_filters( 'wpll_date_format', get_option( 'date_format' ) ); 128 144 $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 ); 130 151 } 131 152 } -
wp-last-login/trunk/readme.txt
r3013516 r3013542 5 5 Requires at least: 3.1 6 6 Tested up to: 6.4 7 Stable tag: 67 Stable tag: 8 8 9 9 Make the last login for each user visible in the user overview. … … 53 53 == Changelog == 54 54 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 = 56 60 * Revamped file structure to remove unnecessary files. 57 61 * Fixed a bug where login dates were overwritten on plugin reactivation. Props @richardbuff. … … 97 101 = 1.1.0 = 98 102 * Made the display of the column filterable. 99 * Widened the column a bit to accom odate for large date strings.103 * Widened the column a bit to accomodate for large date strings. 100 104 101 105 = 1.0 = -
wp-last-login/trunk/wp-last-login.php
r3013516 r3013542 4 4 * Plugin URI: http://en.wp.obenland.it/wp-last-login/#utm_source=wordpress&utm_medium=plugin&utm_campaign=wp-last-login 5 5 * Description: Displays the date of the last login in user lists. 6 * Version: 66 * Version: 7 7 * Author: Konstantin Obenland 8 8 * Author URI: http://en.wp.obenland.it/#utm_source=wordpress&utm_medium=plugin&utm_campaign=wp-last-login … … 54 54 } 55 55 add_action( 'wp_login', 'wpll_wp_login' ); 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 56 72 57 73 /** … … 127 143 $format = apply_filters( 'wpll_date_format', get_option( 'date_format' ) ); 128 144 $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 ); 130 151 } 131 152 }
Note: See TracChangeset
for help on using the changeset viewer.