Skip to content
This repository has been archived by the owner on Nov 24, 2020. It is now read-only.

Commit

Permalink
Merge pull request #26 from boogah/fsp-constant
Browse files Browse the repository at this point in the history
Add a new `FSP_PLUGIN_VERSION` constant
  • Loading branch information
boogah committed Oct 9, 2015
2 parents 35ea012 + cca18e7 commit e5141c5
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 8 deletions.
7 changes: 5 additions & 2 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
Contributors: boogah, gyrus, simonwheatley, sparanoid, jpry, zyphonic
Tags: passwords, security, users, profile
Requires at least: 3.5
Tested up to: 4.3
Stable tag: 1.6.3
Tested up to: 4.3.1
Stable tag: 1.6.4
License URI: http://www.gnu.org/licenses/gpl-2.0.html

## Description
Expand Down Expand Up @@ -59,6 +59,9 @@ The default array includes: `subscriber` and `contributor`.

## Changelog

### 1.6.4
* Add a new `FSP_PLUGIN_VERSION` constant

### 1.6.3
* Updated `wp_enqueue_script` version argument

Expand Down
7 changes: 5 additions & 2 deletions readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ Donate link: https://www.girldevelopit.com/donate
Tags: passwords, security, users, profile
Requires at least: 3.5
Tested up to: 4.3.1
Stable tag: 1.6.3
Stable tag: 1.6.4

Forces users to enter something strong when updating their passwords.
Forces privileged users to set a strong password.

== Description ==
The user profile editor includes a JavaScript-powered password strength indicator. However, there is nothing currently built into WordPress core to prevent users from entering weak passwords. Users changing their password to something weak is one of the most vulnerable aspects of a WordPress installation.
Expand Down Expand Up @@ -56,6 +56,9 @@ The default array includes: `subscriber` and `contributor`.

== Changelog ==

= 1.6.4 =
* Add a new `FSP_PLUGIN_VERSION` constant

= 1.6.3 =
* Updated `wp_enqueue_script` version argument

Expand Down
15 changes: 11 additions & 4 deletions slt-force-strong-passwords.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
/*
Plugin Name: Force Strong Passwords
Plugin URI: https://github.com/boogah/Force-Strong-Passwords/
Description: Forces users to use something strong when updating their passwords.
Version: 1.6.3
Description: Forces privileged users to set a strong password.
Version: 1.6.4
Author: Jason Cosper
Author URI: http://jasoncosper.com/
License: GPLv2
Expand Down Expand Up @@ -35,6 +35,13 @@

// Initialize constants

// Our plugin
define( 'FSP_PLUGIN_BASE', __FILE__ );

// Allow changing the version number in only one place (the header above)
$plugin_data = get_file_data( FSP_PLUGIN_BASE, array( 'Version' => 'Version' ) );
define( 'FSP_PLUGIN_VERSION', $plugin_data['Version'] );

/**
* Use zxcvbn for versions 3.7 and above
*
Expand Down Expand Up @@ -79,9 +86,9 @@ function slt_fsp_init() {

// Enqueue force zxcvbn check script
function slt_fsp_enqueue_force_zxcvbn_script() {
wp_enqueue_script( 'slt-fsp-force-zxcvbn', plugins_url( 'force-zxcvbn.min.js', __FILE__ ), array( 'jquery' ), '1.6.3' );
wp_enqueue_script( 'slt-fsp-force-zxcvbn', plugins_url( 'force-zxcvbn.min.js', __FILE__ ), array( 'jquery' ), FSP_PLUGIN_VERSION );
// Also change hint
wp_enqueue_script( 'slt-fsp-admin-js', plugins_url( 'js-admin.min.js', __FILE__ ), array( 'jquery' ), '1.6.3' );
wp_enqueue_script( 'slt-fsp-admin-js', plugins_url( 'js-admin.min.js', __FILE__ ), array( 'jquery' ), FSP_PLUGIN_VERSION );
}


Expand Down

0 comments on commit e5141c5

Please sign in to comment.