Skip to content

Commit

Permalink
Merge branch 'release/1.3.2'
Browse files Browse the repository at this point in the history
  • Loading branch information
Mike Hemberger committed Mar 30, 2018
2 parents 9077efe + 494cfb0 commit 21b45c8
Show file tree
Hide file tree
Showing 5 changed files with 23 additions and 5 deletions.
5 changes: 5 additions & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
# Changelog

#### 1.3.2 (3/30/18)
* Added: Force equal height fields when inline is true.
* Fixed: Undefined variable in register form.
* Fixed: first_name_label default if last_name field is showing.

#### 1.3.1 (1/31/18)
* Fixed: Password strength script not being loaded on registration forms.

Expand Down
9 changes: 9 additions & 0 deletions css/wampum-forms.css
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,15 @@
margin-left: 2px;
}

.wampum-form .row input[type="text"],
.wampum-form .row input[type="email"],
.wampum-form .row input[type="password"],
.wampum-form .row button[type="submit"] {
height: 42px;
padding-top: 4px;
padding-bottom: 4px;
}

/* Autoprefixer wants these on their own, arghh */
.wampum-form .wampum-field input:-moz-read-only,
.wampum-form .wampum-field input:disabled {
Expand Down
2 changes: 1 addition & 1 deletion css/wampum-forms.min.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 6 additions & 2 deletions includes/class-forms.php
Original file line number Diff line number Diff line change
Expand Up @@ -601,7 +601,7 @@ function get_register_form( $args ) {
$form->add_field( 'text', array(
'name' => 'first_name',
'class' => 'first-name',
'value' => $first_name,
'value' => '',
), array(
'label' => $first_name_label,
) );
Expand All @@ -614,7 +614,7 @@ function get_register_form( $args ) {
$form->add_field( 'text', array(
'name' => 'last_name',
'class' => 'last-name',
'value' => $last_name,
'value' => '',
), array(
'label' => ! empty( $args['last_name_label'] ) ? $args['last_name_label'] : __( 'Last Name', 'wampum' ),
) );
Expand Down Expand Up @@ -1076,6 +1076,10 @@ function get_membership_form( $args ) {
if ( $args['first_name_label'] ) {
$first_name_label = $args['first_name_label'];
}
// Else if we are showing the last name
elseif ( $args['last_name'] ) {
$first_name_label = __( 'First Name', 'wampum' );
}
$join->add_field( 'text', array(
'name' => 'first_name',
'class' => 'first-name',
Expand Down
4 changes: 2 additions & 2 deletions wampum-forms.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
* License: GPL-2.0+
* License URI: http://www.gnu.org/licenses/gpl-2.0.txt
*
* Version: 1.3.1
* Version: 1.3.2
*
* GitHub Plugin URI: https://github.com/bizbudding/wampum-forms
* GitHub Branch: master
Expand Down Expand Up @@ -123,7 +123,7 @@ public function __wakeup() {
private function setup_constants() {
// Plugin version.
if ( ! defined( 'WAMPUM_FORMS_VERSION' ) ) {
define( 'WAMPUM_FORMS_VERSION', '1.3.1' );
define( 'WAMPUM_FORMS_VERSION', '1.3.2' );
}
// Plugin Folder Path.
if ( ! defined( 'WAMPUM_FORMS_PLUGIN_DIR' ) ) {
Expand Down

0 comments on commit 21b45c8

Please sign in to comment.