Skip to content

Commit 05faf3f

Browse files
authored
Branch 2.16.2 (#720)
* update versions and readme for 2.16.2 * resolves #708 (#719) * resolves #708 * simplify ternary+ * resolves #363 (#718) * update version numbers for stable release
1 parent 3aa8604 commit 05faf3f

File tree

5 files changed

+15
-3
lines changed

5 files changed

+15
-3
lines changed

README.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,12 @@ user guide for more information.
3636

3737
## Changelog ##
3838

39+
### 2.16.2 ###
40+
* Bug Fix: Dividing by Zero in the Header [#708](https://github.com/BoldGrid/boldgrid-theme-framework/issues/708)
41+
* Bug Fix: Featured Image background for Posts does not display [#717](https://github.com/BoldGrid/boldgrid-theme-framework/issues/717)
42+
* Bug Fix: WooCommerce Custom Ordering is Ignored [#363](https://github.com/BoldGrid/boldgrid-theme-framework/issues/363)
43+
* Bug Fix: Review z-index with dropdown menus [#489](https://github.com/BoldGrid/boldgrid-theme-framework/issues/489)
44+
3945
### 2.16.1 ###
4046
* Bug Fix: Hover Underline Reveal effect for Menus is broken [#711](https://github.com/BoldGrid/boldgrid-theme-framework/issues/711)
4147
* Bug Fix: Allow filtering of Premium URL's in theme [#706](https://github.com/BoldGrid/boldgrid-theme-framework/issues/706)

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "boldgrid-theme-framework",
3-
"version": "2.16.1",
3+
"version": "2.16.2",
44
"description": "BoldGrid Theme Framework",
55
"main": "index.js",
66
"engines": {

src/boldgrid-theme-framework.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
* Plugin Name: BoldGrid Theme Framework
44
* Plugin URI: https://www.boldgrid.com/docs/configuration-file
55
* Description: BoldGrid Theme Framework is a library that allows you to easily make BoldGrid themes. Please see our reference guide for more information: https://www.boldgrid.com/docs/configuration-file
6-
* Version: 2.16.1
6+
* Version: 2.16.2
77
* Author: BoldGrid.com <[email protected]>
88
* Author URI: https://www.boldgrid.com/
99
* Text Domain: bgtfw

src/includes/control/class-boldgrid-framework-control-col-width.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ public static function slider_device_group( $device, $current_layout ) {
115115
if ( ! array_key_exists( 'items', $row ) ) {
116116
continue;
117117
}
118-
$items_in_row = count( $row['items'] );
118+
$items_in_row = count( $row['items'] ) ? count( $row['items'] ) : 1;
119119
$default_col_width = floor( 12 / $items_in_row );
120120

121121
if ( 'tablet' === $device || 'phone' === $device ) {

src/includes/customizer/class-boldgrid-framework-customizer-starter-content-query.php

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -143,10 +143,16 @@ public function posts_where( $where ) {
143143
* @return WP_Query $query The WP_Query instance.
144144
*/
145145
public function set_main_query( WP_Query $query ) {
146+
// Do not modify query if this is a product. Woocommerce uses its own custom ordering.
147+
if ( 'product' === $query->get( 'post_type' ) ) {
148+
return $query;
149+
}
150+
146151
if ( ( $query->is_archive() || $query->is_home() ) && $query->is_main_query() ) {
147152
$query->set( 'orderby', 'date modified title' );
148153
$query->set( 'order', 'desc' );
149154
}
155+
150156
return $query;
151157
}
152158

0 commit comments

Comments
 (0)