From 9e8baeb34e7f8b5c503a44134d667bff7ed91e0a Mon Sep 17 00:00:00 2001
From: Jordan Schelew
Date: Sun, 27 Jan 2019 09:39:37 -0400
Subject: [PATCH] Fix wrapping inline-block elements in widget
Spaces between elements is fine when floated, however inline-block treats space chars as part of the line, causing the final element to wrap to a new line in some instances. This repairs that and keeps all three elements in one line.
---
includes/class-featured-listings-widget.php | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/includes/class-featured-listings-widget.php b/includes/class-featured-listings-widget.php
index f111076..bff2561 100755
--- a/includes/class-featured-listings-widget.php
+++ b/includes/class-featured-listings-widget.php
@@ -121,7 +121,7 @@ function widget( $args, $instance ) {
$loop .= sprintf( '%s, %s %s
', wp_listings_get_city(), wp_listings_get_state(), get_post_meta( $post->ID, '_listing_zip', true ) );
if ( '' != get_post_meta( $post->ID, '_listing_bedrooms', true ) || '' != get_post_meta( $post->ID, '_listing_bathrooms', true ) || '' != get_post_meta( $post->ID, '_listing_sqft', true )) {
- $loop .= sprintf( '', get_post_meta( $post->ID, '_listing_bedrooms', true ), get_post_meta( $post->ID, '_listing_bathrooms', true ), get_post_meta( $post->ID, '_listing_sqft', true ) );
+ $loop .= sprintf( '', get_post_meta( $post->ID, '_listing_bedrooms', true ), get_post_meta( $post->ID, '_listing_bathrooms', true ), get_post_meta( $post->ID, '_listing_sqft', true ) );
}
$loop .= sprintf('');