Skip to content

Commit

Permalink
Fixed a minor bug in the previous release
Browse files Browse the repository at this point in the history
  • Loading branch information
Miika Arponen committed Mar 4, 2019
1 parent b418dfc commit 3f6cb0b
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 3 deletions.
7 changes: 6 additions & 1 deletion CHANGELOG.md
Expand Up @@ -4,7 +4,12 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/) The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/)
and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html). and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).


## [1.21.2] - 2019-02-04 ## [1.21.3] - 2019-03-04

### Fixed
- A minor bug caused by the last update.

## [1.21.2] - 2019-03-04


### Fixed ### Fixed
- Pagination helper fixed $page_count to return int not float. This caused failure on current page active state in some cases. - Pagination helper fixed $page_count to return int not float. This caused failure on current page active state in some cases.
Expand Down
2 changes: 1 addition & 1 deletion dustpress.php
Expand Up @@ -6,7 +6,7 @@
Author: Miika Arponen & Ville Siltala / Geniem Oy Author: Miika Arponen & Ville Siltala / Geniem Oy
Author URI: http://www.geniem.com Author URI: http://www.geniem.com
License: GPLv3 License: GPLv3
Version: 1.21.2 Version: 1.21.3
*/ */


final class DustPress { final class DustPress {
Expand Down
2 changes: 1 addition & 1 deletion helpers/menu.php
Expand Up @@ -153,7 +153,7 @@ public static function get_menu_data( $menu_name, $parent = 0, $override = null,
if ( isset( $menu_object) ) { if ( isset( $menu_object) ) {
$menu_items = static::get_cached_menu_items( $menu_object->term_id ); $menu_items = static::get_cached_menu_items( $menu_object->term_id );


if ( empty( $menu_items ) || \is_customizer_preview() ) { if ( empty( $menu_items ) || \is_customize_preview() ) {
$menu_items = \wp_get_nav_menu_items( $menu_object ); $menu_items = \wp_get_nav_menu_items( $menu_object );


static::set_cached_menu_items( $menu_object->term_id, $menu_items ); static::set_cached_menu_items( $menu_object->term_id, $menu_items );
Expand Down

0 comments on commit 3f6cb0b

Please sign in to comment.