Merge branch 'development/2.3.3' of https://github.com/ultimatemember/ultimatemember into development/2.3.3

This commit is contained in:
Nikita Sinelnikov
2022-05-24 18:30:01 +03:00
2 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -657,7 +657,7 @@ if ( ! class_exists( 'um\admin\core\Admin_Enqueue' ) ) {
global $wp_version, $current_screen;
if ( version_compare( $wp_version, '5.0', '>=' ) ) {
if ( $current_screen->is_block_editor() ) {
if ( isset( $current_screen ) && $current_screen->is_block_editor() ) {
$this->load_gutenberg_js();
$this->load_gutenberg_shortcode_blocks();
}
+2 -2
View File
@@ -383,7 +383,7 @@ if ( ! class_exists( 'um\core\Uploader' ) ) {
?>
*/
$movefile = apply_filters( 'um_upload_image_result', $movefile, $user_id, $field_data );
/**
* Resize and compress images uploaded by the field "Image Upload" without crop.
* Resize and compress images uploaded on Activity wall and Group Discussion wall.
@@ -1361,7 +1361,7 @@ if ( ! class_exists( 'um\core\Uploader' ) ) {
}
}
$files = glob( UM()->uploader()->get_upload_base_dir() . $user_id . DIRECTORY_SEPARATOR . '*', GLOB_BRACE );
$files = glob( UM()->uploader()->get_upload_base_dir() . $user_id . DIRECTORY_SEPARATOR . '*' );
if ( ! empty( $files ) ) {
foreach ( $files as $file ) {
$str = basename( $file );