Skip to content

Commit

Permalink
Updates to 2.7.10
Browse files Browse the repository at this point in the history
  • Loading branch information
Gravity Forms committed Jul 13, 2023
1 parent 9d35d24 commit e569a90
Show file tree
Hide file tree
Showing 20 changed files with 359 additions and 380 deletions.
410 changes: 214 additions & 196 deletions assets/css/dist/gravity-forms-theme-framework.css

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions assets/css/dist/gravity-forms-theme-framework.min.css

Large diffs are not rendered by default.

2 changes: 2 additions & 0 deletions assets/css/dist/template-library.css

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

2 changes: 1 addition & 1 deletion assets/css/dist/template-library.min.css

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

2 changes: 1 addition & 1 deletion assets/js/dist/assets.php
Original file line number Diff line number Diff line change
@@ -1 +1 @@
<?php return array('hash_map' => array('admin-components.js' => array('version' => '74cf24af7606741fd4c6312e7c6078b7', 'file' => 'admin-components.js'), 'admin-components.min.js' => array('version' => '8f8184265d58c957d2c53a28dc40466a', 'file' => 'admin-components.min.js'), 'field-map.js' => array('version' => 'bc39455c71697368961b58278237ecb6', 'file' => 'field-map.js'), 'field-map.min.js' => array('version' => '8e7ebbe3389a71c6de8c693ed35de11a', 'file' => 'field-map.min.js'), 'libraries.js' => array('version' => '5d991f7b53ed3dd08636da4f94697a8a', 'file' => 'libraries.js'), 'libraries.min.js' => array('version' => '9fbc31a6e4fe4826e39a89c88db6cee5', 'file' => 'libraries.min.js'), 'react-utils.js' => array('version' => '604eb4ac90c9e87c01947d6fd9c53175', 'file' => 'react-utils.js'), 'react-utils.min.js' => array('version' => '10f2c4eda1fa4dce680e84804b1c1636', 'file' => 'react-utils.min.js'), 'scripts-admin.js' => array('version' => 'c493af031a90260607f714d1fd52ddec', 'file' => 'scripts-admin.js'), 'scripts-admin.min.js' => array('version' => 'd94ed1860c1e4f783fd4814bfdc657cc', 'file' => 'scripts-admin.min.js'), 'scripts-theme.js' => array('version' => '8a9ab63d339596a1b69789625a3dae34', 'file' => 'scripts-theme.js'), 'scripts-theme.min.js' => array('version' => '443293948084ca0fe29518ebcd01dc6b', 'file' => 'scripts-theme.min.js'), 'utils.js' => array('version' => 'f49ab4d25354cbd85856bf1de053bdb3', 'file' => 'utils.js'), 'utils.min.js' => array('version' => '1329f9a0886f2ff3fb51c6f17277eb75', 'file' => 'utils.min.js'), 'vendor-admin.js' => array('version' => '6ad42adf9e01c2d2124e0189ccad9dea', 'file' => 'vendor-admin.js'), 'vendor-admin.min.js' => array('version' => 'f533439f326f6b5db66471f87e4f85fe', 'file' => 'vendor-admin.min.js'), 'vendor-theme.js' => array('version' => '27ddf9b28be8e4df56b2f83fd6554950', 'file' => 'vendor-theme.js'), 'vendor-theme.min.js' => array('version' => '4ef53fe41c14a48b294541d9fc37387e', 'file' => 'vendor-theme.min.js')));
<?php return array('hash_map' => array('admin-components.js' => array('version' => '74cf24af7606741fd4c6312e7c6078b7', 'file' => 'admin-components.js'), 'admin-components.min.js' => array('version' => '8f8184265d58c957d2c53a28dc40466a', 'file' => 'admin-components.min.js'), 'field-map.js' => array('version' => 'bc39455c71697368961b58278237ecb6', 'file' => 'field-map.js'), 'field-map.min.js' => array('version' => '8e7ebbe3389a71c6de8c693ed35de11a', 'file' => 'field-map.min.js'), 'libraries.js' => array('version' => '5d991f7b53ed3dd08636da4f94697a8a', 'file' => 'libraries.js'), 'libraries.min.js' => array('version' => '9fbc31a6e4fe4826e39a89c88db6cee5', 'file' => 'libraries.min.js'), 'react-utils.js' => array('version' => '604eb4ac90c9e87c01947d6fd9c53175', 'file' => 'react-utils.js'), 'react-utils.min.js' => array('version' => '10f2c4eda1fa4dce680e84804b1c1636', 'file' => 'react-utils.min.js'), 'scripts-admin.js' => array('version' => '3aca647ff940f2be55ad0a31df8ab159', 'file' => 'scripts-admin.js'), 'scripts-admin.min.js' => array('version' => '4dadfd3442dcd03d1f0e056d3189b7a3', 'file' => 'scripts-admin.min.js'), 'scripts-theme.js' => array('version' => '8a9ab63d339596a1b69789625a3dae34', 'file' => 'scripts-theme.js'), 'scripts-theme.min.js' => array('version' => '443293948084ca0fe29518ebcd01dc6b', 'file' => 'scripts-theme.min.js'), 'utils.js' => array('version' => 'f49ab4d25354cbd85856bf1de053bdb3', 'file' => 'utils.js'), 'utils.min.js' => array('version' => '1329f9a0886f2ff3fb51c6f17277eb75', 'file' => 'utils.min.js'), 'vendor-admin.js' => array('version' => '6ad42adf9e01c2d2124e0189ccad9dea', 'file' => 'vendor-admin.js'), 'vendor-admin.min.js' => array('version' => 'f533439f326f6b5db66471f87e4f85fe', 'file' => 'vendor-admin.min.js'), 'vendor-theme.js' => array('version' => '27ddf9b28be8e4df56b2f83fd6554950', 'file' => 'vendor-theme.js'), 'vendor-theme.min.js' => array('version' => '4ef53fe41c14a48b294541d9fc37387e', 'file' => 'vendor-theme.min.js')));
2 changes: 1 addition & 1 deletion assets/js/dist/scripts-admin.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion assets/js/dist/scripts-admin.min.js

Large diffs are not rendered by default.

11 changes: 10 additions & 1 deletion change_log.txt
Original file line number Diff line number Diff line change
@@ -1,11 +1,20 @@
### 2.7.10 | 2023-07-12
- Added security enhancements.
- Fixed a PHP fatal error that occurs when the theme or another plugin sets an invalid property value on the $wp_filter global variable.
- Fixed an issue for the Orbital theme where hidden inputs were receiving focus in Safari during keyboard navigation.
- Fixed various deprecation notices in PHP 8.1.
- Fixed the enhanced UI for select and multiselect fields to work within conversational forms.
- Updated the Orbital theme to support max-height/scroll for the consent field.
- Updated the thumbnail image in the template library for the eCommerce template.
- Updated the name of the form block to "Form" to make it easier to find in the block inserter.

### 2.7.9 | 2023-06-22
- Fixed an issue where an empty Number type Quantity field fails validation with a decimals-related error message.
- Fixed an issue where the custom validation message is not applied when a Number type Quantity field fails validation.
- Fixed an issue where the first page of a form gets an incorrect data attribute.
- Updated the Post Custom Field with List input type to look the same as the normal List field in the Orbital theme.
- API: Fixed an issue in the color setting component where the selected indicator for custom colors can't be seen on light backgrounds.


### 2.7.8 | 2023-06-08
- Fixed a bug that prevents dynamic population from working in the block settings.

Expand Down
47 changes: 26 additions & 21 deletions common.php
Original file line number Diff line number Diff line change
Expand Up @@ -2219,8 +2219,8 @@ public static function send_email( $from, $to, $bcc, $reply_to, $subject, $messa
$entry_id = rgar( $entry, 'id' );

$to = str_replace( ' ', '', $to );
$bcc = str_replace( ' ', '', $bcc );
$cc = str_replace( ' ', '', $cc );
$bcc = $bcc ? str_replace( ' ', '', $bcc ) : '';
$cc = $cc ? str_replace( ' ', '', $cc ) : '';

if ( ! GFCommon::is_valid_email( $from ) ) {
$from = get_bloginfo( 'admin_email' );
Expand Down Expand Up @@ -5739,38 +5739,43 @@ public static function notices_section() {
*
* @since 2.5
*
* @return bool
* @return void
*/
public static function find_admin_notices() {
if ( ! GFForms::is_gravity_page() ) {
return;
}

global $wp_filter;
$notices = $wp_filter['admin_notices']->callbacks;
$network_notices = array();
if ( rgar( $wp_filter, 'network_admin_notices' ) ) {
$network_notices = $wp_filter['network_admin_notices']->callbacks;
}

$all_notices = array_replace( $notices, $network_notices );
$hooks = array(
'admin_notices',
'network_admin_notices',
);

$has_non_gf_notices = false;
foreach ( $all_notices as $priority => $notice ) {
foreach ( $notice as $name => $callback ) {
if ( ! is_callable( $callback['function'] ) ) {
continue;
}
foreach ( $hooks as $hook ) {
if ( empty( $wp_filter[ $hook ] ) || ! is_array( $wp_filter[ $hook ]->callbacks ) ) {
continue;
}

$callbacks = $wp_filter[ $hook ]->callbacks;

ob_start();
call_user_func( $callback['function'] );
$content = ob_get_clean();
foreach ( $callbacks as $priority => $notice ) {
foreach ( $notice as $name => $callback ) {
if ( ! is_callable( $callback['function'] ) ) {
continue;
}

if ( strpos( $content, 'gf-notice' ) == false ) {
remove_action( 'admin_notices', $name, $priority );
remove_action( 'network_admin_notices', $name, $priority );
ob_start();
call_user_func( $callback['function'] );
$content = ob_get_clean();

if ( strpos( $content, 'gf-notice' ) == false ) {
remove_action( $hook, $name, $priority );
}
}
}

}
}

Expand Down
3 changes: 2 additions & 1 deletion forms_model.php
Original file line number Diff line number Diff line change
Expand Up @@ -5716,6 +5716,8 @@ public static function get_file_upload_path( $form_id, $file_name, $increment_fo
}
}

$file_name = sanitize_file_name( $file_name );

//Add the original filename to our target path.
//Result is "uploads/filename.extension"
$extension = pathinfo( $file_name, PATHINFO_EXTENSION );
Expand All @@ -5724,7 +5726,6 @@ public static function get_file_upload_path( $form_id, $file_name, $increment_fo
}

$file_name = wp_basename( $file_name, $extension );
$file_name = sanitize_file_name( $file_name );

$counter = 1;
$target_path = $target_root . $file_name . $extension;
Expand Down
4 changes: 2 additions & 2 deletions gravityforms.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
Plugin Name: Gravity Forms
Plugin URI: https://gravityforms.com
Description: Easily create web forms and manage form entries within the WordPress admin.
Version: 2.7.9
Version: 2.7.10
Requires at least: 4.0
Requires PHP: 5.6
Author: Gravity Forms
Expand Down Expand Up @@ -245,7 +245,7 @@ class GFForms {
*
* @var string $version The version number.
*/
public static $version = '2.7.9';
public static $version = '2.7.10';

/**
* Handles background upgrade tasks.
Expand Down
Loading

0 comments on commit e569a90

Please sign in to comment.