Skip to content

Commit

Permalink
Branch 2.16.2 (#720)
Browse files Browse the repository at this point in the history
* update versions and readme for 2.16.2

* resolves #708 (#719)

* resolves #708

* simplify ternary+

* resolves #363 (#718)

* update version numbers for stable release
  • Loading branch information
jamesros161 committed Aug 11, 2022
1 parent 3aa8604 commit 05faf3f
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 3 deletions.
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,12 @@ user guide for more information.

## Changelog ##

### 2.16.2 ###
* Bug Fix: Dividing by Zero in the Header [#708](https://github.com/BoldGrid/boldgrid-theme-framework/issues/708)
* Bug Fix: Featured Image background for Posts does not display [#717](https://github.com/BoldGrid/boldgrid-theme-framework/issues/717)
* Bug Fix: WooCommerce Custom Ordering is Ignored [#363](https://github.com/BoldGrid/boldgrid-theme-framework/issues/363)
* Bug Fix: Review z-index with dropdown menus [#489](https://github.com/BoldGrid/boldgrid-theme-framework/issues/489)

### 2.16.1 ###
* Bug Fix: Hover Underline Reveal effect for Menus is broken [#711](https://github.com/BoldGrid/boldgrid-theme-framework/issues/711)
* Bug Fix: Allow filtering of Premium URL's in theme [#706](https://github.com/BoldGrid/boldgrid-theme-framework/issues/706)
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "boldgrid-theme-framework",
"version": "2.16.1",
"version": "2.16.2",
"description": "BoldGrid Theme Framework",
"main": "index.js",
"engines": {
Expand Down
2 changes: 1 addition & 1 deletion src/boldgrid-theme-framework.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* Plugin Name: BoldGrid Theme Framework
* Plugin URI: https://www.boldgrid.com/docs/configuration-file
* 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
* Version: 2.16.1
* Version: 2.16.2
* Author: BoldGrid.com <wpb@boldgrid.com>
* Author URI: https://www.boldgrid.com/
* Text Domain: bgtfw
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ public static function slider_device_group( $device, $current_layout ) {
if ( ! array_key_exists( 'items', $row ) ) {
continue;
}
$items_in_row = count( $row['items'] );
$items_in_row = count( $row['items'] ) ? count( $row['items'] ) : 1;
$default_col_width = floor( 12 / $items_in_row );

if ( 'tablet' === $device || 'phone' === $device ) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -143,10 +143,16 @@ public function posts_where( $where ) {
* @return WP_Query $query The WP_Query instance.
*/
public function set_main_query( WP_Query $query ) {
// Do not modify query if this is a product. Woocommerce uses its own custom ordering.
if ( 'product' === $query->get( 'post_type' ) ) {
return $query;
}

if ( ( $query->is_archive() || $query->is_home() ) && $query->is_main_query() ) {
$query->set( 'orderby', 'date modified title' );
$query->set( 'order', 'desc' );
}

return $query;
}

Expand Down

0 comments on commit 05faf3f

Please sign in to comment.