Skip to content

Commit

Permalink
Remove multiple spaces between CSS class names, see #64
Browse files Browse the repository at this point in the history
  • Loading branch information
jaredatch committed Apr 10, 2019
1 parent 6ad7824 commit 7264f58
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Expand Up @@ -7,6 +7,7 @@ All notable changes to this project will be documented in this file, formatted v

### Fixed
- Pinterest JS API conflict.
- Multiple spaces between some CSS classes inside markup.

## [1.2.0] = 2018-05-23
### Added
Expand Down
2 changes: 1 addition & 1 deletion includes/class-shared-counts-front.php
Expand Up @@ -334,7 +334,7 @@ public function display( $location = '', $echo = true, $style = false, $post_id
}

$classes = apply_filters( 'shared_counts_wrap_classes', array( 'shared-counts-wrap', $location, 'style-' . $style ) );
$classes = array_map( 'sanitize_html_class', $classes );
$classes = array_map( 'sanitize_html_class', array_filter( $classes ) );
$links = apply_filters( 'shared_counts_display', $services, $location );
$wrap_format = apply_filters( 'shared_counts_display_wrap_format', '<div class="%2$s">%1$s</div>', $location );
$output = apply_filters( 'shared_counts_display_output', sprintf( $wrap_format, $links, join( ' ', $classes ) ), $location );
Expand Down

0 comments on commit 7264f58

Please sign in to comment.