- fixed "add friend" button not working in desktop view for logged out users.

- fixed members directory template.
- fixed Content Restriction transfer
This commit is contained in:
Denis Baranov
2017-11-20 12:38:48 +02:00
parent 13cf985acd
commit c01d22d61b
3 changed files with 15 additions and 9 deletions
+8 -6
View File
@@ -290,14 +290,16 @@ if ( ! class_exists( 'Shortcodes' ) ) {
$post_data['template'] = $post_data['mode'];
}
$args = array_merge($post_data, $args);
if( 'directory' != $args['mode'] ) {
if ( empty( $args['use_custom_settings'] ) ) {
$args = array_merge( $args, $this->get_css_args( $args ) );
} else {
$args = array_merge( $this->get_css_args( $args ), $args );
}
$args = array_merge( $post_data, $args );
if (empty( $args['use_custom_settings'] )) {
$args = array_merge( $args, $this->get_css_args( $args ) );
} else {
$args = array_merge( $this->get_css_args( $args ), $args );
}
}
// filter for arguments
$args = apply_filters('um_shortcode_args_filter', $args);