diff --git a/README.md b/README.md index ecb51cb5..d37c8666 100644 --- a/README.md +++ b/README.md @@ -42,7 +42,7 @@ GNU Version 2 or Any Later Version ## Releases -[Official Release Version: 2.6.0](https://github.com/ultimatemember/ultimatemember/releases/tag/2.6.0). +[Official Release Version: 2.6.1](https://github.com/ultimatemember/ultimatemember/releases/tag/2.6.1). ## Changelog diff --git a/gulpfile.js b/gulpfile.js index ebda1dba..d2a90481 100644 --- a/gulpfile.js +++ b/gulpfile.js @@ -13,7 +13,7 @@ gulp.task( 'default', function ( done ) { gulp.src(['assets/sass/*.sass']).pipe( sass().on( 'error', sass.logError ) ).pipe( gulp.dest( 'assets/css' ) ); - gulp.src(['assets/js/*.js', '!assets/js/*.min.js']) // path to your files + gulp.src(['assets/js/*.js','!assets/js/um-fileupload.js', '!assets/js/*.min.js']) // path to your files .pipe( uglify() ) .pipe( rename({ suffix: '.min' }) ) .pipe( gulp.dest( 'assets/js/' ) ); diff --git a/includes/admin/core/class-admin-settings.php b/includes/admin/core/class-admin-settings.php index fa4ddce8..6ab73b1d 100644 --- a/includes/admin/core/class-admin-settings.php +++ b/includes/admin/core/class-admin-settings.php @@ -3072,8 +3072,18 @@ if ( ! class_exists( 'um\admin\core\Admin_Settings' ) ) { public function get_override_templates( $get_list = false ) { $outdated_files = array(); $scan_files['um'] = $this->scan_template_files( um_path . '/templates/' ); - $scan_files = apply_filters( 'um_override_templates_scan_files', $scan_files ); - $out_date = false; + /** + * Filters an array of the template files for scanning versions. + * + * @since 2.6.1 + * @hook um_override_templates_scan_files + * + * @param {array} $scan_files Template files for scanning versions. + * + * @return {array} Template files for scanning versions. + */ + $scan_files = apply_filters( 'um_override_templates_scan_files', $scan_files ); + $out_date = false; set_transient( 'um_check_template_versions', time(), 12 * HOUR_IN_SECONDS ); @@ -3081,6 +3091,19 @@ if ( ! class_exists( 'um\admin\core\Admin_Settings' ) ) { foreach ( $files as $file ) { if ( ! str_contains( $file, 'email/' ) ) { $located = array(); + /** + * Filters an array of the template files for scanning versions based on $key. + * + * Note: $key - means um or extension key. + * + * @since 2.6.1 + * @hook um_override_templates_get_template_path__{$key} + * + * @param {array} $located Template file paths for scanning versions. + * @param {string} $file Template file name. + * + * @return {array} Template file paths for scanning versions. + */ $located = apply_filters( "um_override_templates_get_template_path__{$key}", $located, $file ); if ( ! empty( $located ) ) { @@ -3188,7 +3211,7 @@ if ( ! class_exists( 'um\admin\core\Admin_Settings' ) ) { // Pull only the first 8kiB of the file in. $file_data = fread( $fp, 8192 ); // @codingStandardsIgnoreLine. - // PHP will close file handle, but we are good citizens. + // PHP will close a file handle, but we are good citizens. fclose( $fp ); // @codingStandardsIgnoreLine. // Make sure we catch CR-only line endings. diff --git a/includes/core/class-mail.php b/includes/core/class-mail.php index ac8f170f..1474a316 100644 --- a/includes/core/class-mail.php +++ b/includes/core/class-mail.php @@ -414,7 +414,19 @@ if ( ! class_exists( 'um\core\Mail' ) ) { if ( ! empty( UM()->options()->get( $template . '_on' ) ) ) { return; } - + /** + * Filters for disabling email notifications programmatically. + * + * @since 2.6.1 + * @hook um_disable_email_notification_sending + * + * @param {bool} $disabled Does an email is disabled programmatically. By default it is false. + * @param {string} $email Email address for sending. + * @param {string} $template Email template key. + * @param {array} $args Arguments for sending email. + * + * @return {bool} `true` if email is disabled programmatically. + */ $hook_disabled = apply_filters( 'um_disable_email_notification_sending', false, $email, $template, $args ); if ( false !== $hook_disabled ) { return; diff --git a/readme.txt b/readme.txt index be6949ca..9440cc54 100644 --- a/readme.txt +++ b/readme.txt @@ -7,7 +7,7 @@ Tags: community, member, membership, user-profile, user-registration Requires PHP: 5.6 Requires at least: 5.5 Tested up to: 6.2 -Stable tag: 2.6.0 +Stable tag: 2.6.1 License: GNU Version 2 or Any Later Version License URI: http://www.gnu.org/licenses/gpl-3.0.txt @@ -163,6 +163,32 @@ No, you do not need to use our plugin’s login or registration pages and can us * To learn more about version 2.1 please see this [docs](https://docs.ultimatemember.com/article/1512-upgrade-2-1-0) * UM2.1+ is a significant update to the Member Directories' code base from 2.0.x. Please make sure you take a full-site backup with restore point before updating the plugin += 2.6.1: May 25, 2023 = + +* Enhancements: + + - Added: Override templates versioning utility for wp-admin + - Added: Style and class attributes to `info_text` field type in settings + - Added: Emails to install info + - Added: 'um_email_get_template_file_path' hook + - Added: Merging data passed with original field data when `edit_field()` function running + - Added: loading="lazy" for avatars and cover photos + - Tweak: Changed Discord account validation + - Tweak: Changes the structure for the Gutenberg blocks' scripts and way of registration + - Tweak: Removed `filter_input` function using + +* Bugfixes: + + - Fixed: Removed the hidden in UI taxonomies from the Access > Enable the "Content Restriction" settings for taxonomies setting + - Fixed: Dynamically declared variables inside the classes for PHP8 installations + - Fixed: Added wpnonce attribute for duplicate UM Form link + - Fixed: Sanitize restriction messages when Gutenberg block is restricted + - Fixed: Login form error class vulnerability + +* All templates required update. Please add the version comments to your custom templates in themes + +* Cached and optimized/minified assets(JS/CSS) must be flushed/re-generated after upgrade + = 2.6.0: March 29, 2023 = * Enhancements: diff --git a/ultimate-member.php b/ultimate-member.php index 233b610f..3cdb44cb 100644 --- a/ultimate-member.php +++ b/ultimate-member.php @@ -3,7 +3,7 @@ Plugin Name: Ultimate Member Plugin URI: http://ultimatemember.com/ Description: The easiest way to create powerful online communities and beautiful user profiles with WordPress -Version: 2.6.1-alpha +Version: 2.6.1 Author: Ultimate Member Author URI: http://ultimatemember.com/ Text Domain: ultimate-member