- code review;
This commit is contained in:
nikitasinelnikov
2021-03-05 14:03:46 +02:00
parent 5cebca4ca5
commit 92b5a69acd
2 changed files with 6 additions and 2 deletions
+2 -2
View File
@@ -428,7 +428,7 @@ if ( ! class_exists( 'um\core\Uploader' ) ) {
* }
* ?>
*/
do_action( 'um_before_upload_db_meta', $this->user_id, $field_key );
do_action( 'um_before_upload_db_meta', $this->user_id, $field_key );
/**
* UM hook
*
@@ -1160,7 +1160,7 @@ if ( ! class_exists( 'um\core\Uploader' ) ) {
}
// Quality
if( $image->get_quality() > $quality){
if ( $image->get_quality() > $quality ) {
$image->set_quality( $quality );
}
+4
View File
@@ -84,6 +84,9 @@ if ( ! empty( $args['enable_sorting'] ) ) {
} elseif ( ! empty( $all_sorting_options[ $default_sorting ] ) ) {
$label = $all_sorting_options[ $default_sorting ];
}
$label = ( $label == 'random' ) ? __( 'Random', 'ultimate-member' ) : $label;
$custom_sorting_titles[ $default_sorting ] = $label;
}
@@ -271,6 +274,7 @@ if ( ( ( $search && $show_search ) || ( $filters && $show_filters && count( $sea
</div>
<?php $items = array();
foreach ( $sorting_options as $value => $title ) {
$items[] = '<a href="javascript:void(0);" data-value="' . esc_attr( $value ) . '" data-selected="' . ( ( $sort_from_url == $value ) ? '1' : '0' ) . '" data-default="' . ( ( $default_sorting == $value ) ? '1' : '0' ) . '">' . $title . '</a>'; ?>
<?php }