- fixed PHP8.2 compatibility;

This commit is contained in:
Mykyta Synelnikov
2023-04-19 10:16:04 +03:00
parent 01c5a09467
commit 7a0ae7f0f8
3 changed files with 14 additions and 1 deletions
+8
View File
@@ -7,6 +7,14 @@
"minimum-stability": "stable",
"prefer-stable": true,
"require": {
"ext-mbstring": "*",
"ext-json": "*",
"ext-dom": "*",
"ext-exif": "*",
"ext-gd": "*",
"ext-fileinfo": "*",
"ext-curl": "*",
"ext-iconv": "*",
"woocommerce/action-scheduler": "3.2.1"
},
"require-dev": {
+5
View File
@@ -31,6 +31,11 @@ if ( ! class_exists( 'um\core\Profile' ) ) {
*/
var $active_tab;
/**
* @var null
*/
public $active_subnav = null;
/**
* Profile constructor.
+1 -1
View File
@@ -66,7 +66,7 @@ function um_dynamic_user_profile_title( $title, $id = '' ) {
return $title;
}
return ( strlen( $title ) !== mb_strlen( $title ) ) ? $title : utf8_encode( $title );
return ( strlen( $title ) !== mb_strlen( $title ) ) ? $title : mb_convert_encoding( $title, 'UTF-8' );
}
add_filter( 'the_title', 'um_dynamic_user_profile_title', 100000, 2 );