Skip to content
This repository has been archived by the owner on Jun 14, 2018. It is now read-only.

Commit

Permalink
Fixed a small logic error that broke the plugin in the current versio…
Browse files Browse the repository at this point in the history
…n of WordPress. D'oh!
  • Loading branch information
stevegrunwell committed Aug 5, 2015
1 parent 4d51020 commit bf8972c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion readme.txt
Expand Up @@ -4,7 +4,7 @@ Donate link: http://stevegrunwell.com/wp-password-generator
Tags: password, password generator, users, wp_generate_password, pluggable
Requires at least: 4.2
Tested up to: 4.3
Stable tag: 2.8
Stable tag: 2.8.1
License: GPLv2 or later

WP Password Generator takes the hassle out of creating new WordPress users by generating random, secure passwords with one click.
Expand Down
4 changes: 2 additions & 2 deletions wp-password-generator.php
Expand Up @@ -3,7 +3,7 @@
* Plugin Name: WP Password Generator
* Plugin URI: https://stevegrunwell.com/wp-password-generator
* Description: Generates a random password when creating a new WP user
* Version: 2.8
* Version: 2.8.1
* Author: Steve Grunwell
* Author URI: https://stevegrunwell.com
* License: GPL2
Expand All @@ -30,7 +30,7 @@ function wp_password_generator_init() {
);

// I didn't want to do a version check here, but they generate one password per load
if ( version_compare( '4.3', $wp_version, '>=' ) ) {
if ( version_compare( '4.3', floatval( $wp_version ), '<=' ) ) {
add_action( 'admin_notices', 'wp_password_generator_deprecation_notice' );

} else {
Expand Down

0 comments on commit bf8972c

Please sign in to comment.