Nimble Page Builder - Version 1.9.5

Version Description

Fixed a contact form bug displaying always "someone" in place of the sender name.

=

Download this release

Release Info

Developer nikeo
Plugin Icon 128x128 Nimble Page Builder
Version 1.9.5
Comparing to
See all releases

Code changes from version 1.9.4 to 1.9.5

inc/sektions/ccat-sektions.php CHANGED
@@ -19065,8 +19065,13 @@ class Sek_Mailer {
19065
  // Define a default sender name + make sure the field exists
19066
  // fixes https://github.com/presscustomizr/nimble-builder/issues/513
19067
  $sender_name = __('Someone', 'nimble-builder');
19068
- if ( array_key_exists( 'nimble_name', $submission_options ) ) {
19069
- $sender_name = sprintf( '%1$s', $this->form->get_field('nimble_name')->get_input()->get_value() );
 
 
 
 
 
19070
  }
19071
 
19072
  $sender_body_message = null === $this->form->get_field('nimble_message') ? '' : $this->form->get_field('nimble_message')->get_input()->get_value();
@@ -19079,6 +19084,8 @@ class Sek_Mailer {
19079
 
19080
  if ( array_key_exists( 'nimble_subject' , $form_composition ) ) {
19081
  $subject = $this->form->get_field('nimble_subject')->get_input()->get_value();
 
 
19082
  } else {
19083
  $subject = sprintf( __( 'Someone sent a message from %1$s', 'nimble-builder' ), get_bloginfo( 'name' ) );
19084
  }
19065
  // Define a default sender name + make sure the field exists
19066
  // fixes https://github.com/presscustomizr/nimble-builder/issues/513
19067
  $sender_name = __('Someone', 'nimble-builder');
19068
+ $sender_name_is_set = false;
19069
+ if ( is_array( $form_composition ) && array_key_exists( 'nimble_name', $form_composition ) ) {
19070
+ $sender_name_candidate = sprintf( '%1$s', $this->form->get_field('nimble_name')->get_input()->get_value() );
19071
+ if ( !empty( $sender_name_candidate ) ) {
19072
+ $sender_name = $sender_name_candidate;
19073
+ $sender_name_is_set = true;
19074
+ }
19075
  }
19076
 
19077
  $sender_body_message = null === $this->form->get_field('nimble_message') ? '' : $this->form->get_field('nimble_message')->get_input()->get_value();
19084
 
19085
  if ( array_key_exists( 'nimble_subject' , $form_composition ) ) {
19086
  $subject = $this->form->get_field('nimble_subject')->get_input()->get_value();
19087
+ } else if ( $sender_name_is_set ) {
19088
+ $subject = sprintf( __( '%1$s sent a message from %2$s', 'nimble-builder' ), $sender_name, get_bloginfo( 'name' ) );
19089
  } else {
19090
  $subject = sprintf( __( 'Someone sent a message from %1$s', 'nimble-builder' ), get_bloginfo( 'name' ) );
19091
  }
nimble-builder.php CHANGED
@@ -2,7 +2,7 @@
2
  /**
3
  * Plugin Name: Nimble Page Builder
4
  * Description: Powerful drag and drop page builder using the native WordPress customizer.
5
- * Version: 1.9.4
6
  * Text Domain: nimble-builder
7
  * Author: Press Customizr
8
  * Author URI: https://nimblebuilder.com/?utm_source=wp-plugins&utm_medium=wp-dashboard&utm_campaign=author-uri
@@ -13,7 +13,7 @@ if ( ! defined( 'ABSPATH' ) ) {
13
  /* ------------------------------------------------------------------------- *
14
  * CONSTANTS
15
  /* ------------------------------------------------------------------------- */
16
- $current_version = "1.9.4";
17
 
18
  if ( !defined( "NIMBLE_VERSION" ) ) { define( "NIMBLE_VERSION", $current_version ); }
19
  if ( !defined( 'NIMBLE_DIR_NAME' ) ) { define( 'NIMBLE_DIR_NAME' , basename( dirname( __FILE__ ) ) ); }
2
  /**
3
  * Plugin Name: Nimble Page Builder
4
  * Description: Powerful drag and drop page builder using the native WordPress customizer.
5
+ * Version: 1.9.5
6
  * Text Domain: nimble-builder
7
  * Author: Press Customizr
8
  * Author URI: https://nimblebuilder.com/?utm_source=wp-plugins&utm_medium=wp-dashboard&utm_campaign=author-uri
13
  /* ------------------------------------------------------------------------- *
14
  * CONSTANTS
15
  /* ------------------------------------------------------------------------- */
16
+ $current_version = "1.9.5";
17
 
18
  if ( !defined( "NIMBLE_VERSION" ) ) { define( "NIMBLE_VERSION", $current_version ); }
19
  if ( !defined( 'NIMBLE_DIR_NAME' ) ) { define( 'NIMBLE_DIR_NAME' , basename( dirname( __FILE__ ) ) ); }
readme.txt CHANGED
@@ -6,7 +6,7 @@ Tags: page builder, visual editor, customizer, drag and drop, header, footer, la
6
  Requires at least: 4.7
7
  Requires PHP: 5.4
8
  Tested up to: 5.2.3
9
- Stable tag: 1.9.4
10
  License: GPLv3
11
  License URI: https://www.gnu.org/licenses/gpl-3.0.html
12
  Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=8FMNQPU36U27J&source=url
@@ -120,10 +120,14 @@ We have also published a detailed [troubleshooting guide for Nimble Builder](htt
120
  If you can't troubleshoot your issue, please open a new thread in [Nimble Builder support forum](https://wordpress.org/support/plugin/nimble-builder/).
121
 
122
  == Upgrade Notice ==
123
- = 1.9.4 =
124
- Fixed a bug preventing users to resize columns width right after dropping column modules.
125
 
126
  == Changelog ==
 
 
 
 
127
  = 1.9.4 October 13th 2019 =
128
  * fixed : impossible to resize columns width right after dropping column modules
129
 
6
  Requires at least: 4.7
7
  Requires PHP: 5.4
8
  Tested up to: 5.2.3
9
+ Stable tag: 1.9.5
10
  License: GPLv3
11
  License URI: https://www.gnu.org/licenses/gpl-3.0.html
12
  Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=8FMNQPU36U27J&source=url
120
  If you can't troubleshoot your issue, please open a new thread in [Nimble Builder support forum](https://wordpress.org/support/plugin/nimble-builder/).
121
 
122
  == Upgrade Notice ==
123
+ = 1.9.5 =
124
+ Fixed a contact form bug displaying always "someone" in place of the sender name.
125
 
126
  == Changelog ==
127
+ = 1.9.5 October 21st 2019 =
128
+ * fixed : [Contact form module] bug displaying always "someone" in place of the sender name
129
+ * improved : [Grid module] allow developers to filter the WordPress query
130
+
131
  = 1.9.4 October 13th 2019 =
132
  * fixed : impossible to resize columns width right after dropping column modules
133
 
tmpl/modules/post_grid_module_tmpl.php CHANGED
@@ -121,21 +121,25 @@ $post_nb = $post_nb < 0 ? 0 : $post_nb;
121
  $post_collection = null;
122
 
123
  if ( $post_nb > 0 ) {
124
- // Query featured entries
125
- $post_collection = new \WP_Query(
126
- array(
127
- 'no_found_rows' => false,
128
- 'update_post_meta_cache' => false,
129
- 'update_post_term_cache' => false,
130
- 'ignore_sticky_posts' => 1,
131
- 'post_status' => 'publish',// fixes https://github.com/presscustomizr/nimble-builder/issues/466
132
- 'posts_per_page' => $main_settings['post_number'],
133
- //@see https://codex.wordpress.org/Class_Reference/WP_Query#Category_Parameters
134
- 'category_name' => $categories_in,
135
- 'order' => $order,
136
- 'orderby' => $orderby
137
- )
138
- );
 
 
 
 
139
  }
140
 
141
  // Copy of WP_Query::have_post(), without do_action_ref_array( 'loop_start', array( &$this ) );
121
  $post_collection = null;
122
 
123
  if ( $post_nb > 0 ) {
124
+ $query_params = apply_filters( 'nimble_post_grid_module_query_params', [
125
+ 'no_found_rows' => false,
126
+ 'update_post_meta_cache' => false,
127
+ 'update_post_term_cache' => false,
128
+ 'ignore_sticky_posts' => 1,
129
+ 'post_status' => 'publish',// fixes https://github.com/presscustomizr/nimble-builder/issues/466
130
+ 'posts_per_page' => $main_settings['post_number'],
131
+ //@see https://codex.wordpress.org/Class_Reference/WP_Query#Category_Parameters
132
+ 'category_name' => $categories_in,
133
+ 'order' => $order,
134
+ 'orderby' => $orderby
135
+ ], Nimble_Manager()->model );
136
+
137
+ if ( is_array( $query_params ) ) {
138
+ // Query featured entries
139
+ $post_collection = new \WP_Query($query_params);
140
+ } else {
141
+ sek_error_log('post_grid_module_tmpl => query params is invalid');
142
+ }
143
  }
144
 
145
  // Copy of WP_Query::have_post(), without do_action_ref_array( 'loop_start', array( &$this ) );