Skip to content

Commit

Permalink
Merge pull request #94 from tomusborne/release/2.3.1
Browse files Browse the repository at this point in the history
Release/2.3.1
  • Loading branch information
tomusborne authored Jun 25, 2019
2 parents 7fdcddf + ff0776d commit 45f5225
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 7 deletions.
2 changes: 1 addition & 1 deletion functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
}

// Set our theme version.
define( 'GENERATE_VERSION', '2.3' );
define( 'GENERATE_VERSION', '2.3.1' );

if ( ! function_exists( 'generate_setup' ) ) {
add_action( 'after_setup_theme', 'generate_setup' );
Expand Down
9 changes: 6 additions & 3 deletions js/a11y.js
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@
/**
* Make hover dropdown touch-friendly.
*/
if ( 'ontouchend' in document.documentElement ) {
if ( 'ontouchend' in document.documentElement && document.body.classList.contains( 'dropdown-hover' ) ) {
var parentElements = document.querySelectorAll( '.sf-menu .menu-item-has-children' );

for ( var i = 0; i < parentElements.length; i++ ) {
Expand Down Expand Up @@ -119,15 +119,18 @@
this.classList.add( 'sfHover' );

// Hide dropdown on touch outside
var closeDropdown,
thisItem = this;

document.addEventListener( 'touchend', closeDropdown = function(e) {
e.stopPropagation();

this.classList.remove( 'sfHover' );
thisItem.classList.remove( 'sfHover' );
document.removeEventListener( 'touchend', closeDropdown );
} );
}
}
}, true );
} );
}
}

Expand Down
2 changes: 1 addition & 1 deletion js/a11y.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 7 additions & 1 deletion readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ License URI: https://www.gnu.org/licenses/gpl-2.0.html
Tags: two-columns, three-columns, one-column, right-sidebar, left-sidebar, footer-widgets, blog, e-commerce, flexible-header, full-width-template, buddypress, custom-header, custom-background, custom-menu, custom-colors, sticky-post, threaded-comments, translation-ready, rtl-language-support, featured-images, theme-options
Requires at least: 4.5
Tested up to: 5.2
Stable tag: 2.3
Stable tag: 2.3.1

GeneratePress is a lightweight WordPress theme built with a focus on speed and usability.

Expand Down Expand Up @@ -95,6 +95,12 @@ MIT License: https://github.com/bgrins/TinyColor/blob/master/LICENSE

== Changelog ==

= 2.3.1 =

Release date: June 25, 2019

* Fix: Touch issue with sub-menus using "Click - Menu Item" option

= 2.3 =

Release date: June 18, 2019
Expand Down
2 changes: 1 addition & 1 deletion style.css
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ Theme URI: https://generatepress.com
Author: Tom Usborne
Author URI: https://tomusborne.com
Description: GeneratePress is a lightweight WordPress theme built with a focus on speed and usability. Performance is important to us, which is why a fresh GeneratePress install adds less than 15kb (gzipped) to your page size. We take full advantage of the new block editor (Gutenberg), which gives you more control over creating your content. If you use page builders, GeneratePress is the right theme for you. It is completely compatible with all major page builders, including Beaver Builder and Elementor. Thanks to our emphasis on WordPress coding standards, we can boast full compatibility with all well-coded plugins, including WooCommerce. GeneratePress is fully responsive, uses valid HTML/CSS and is translated into over 25 languages by our amazing community of users. A few of our many features include microdata integration, 9 widget areas, 5 navigation locations, 5 sidebar layouts, dropdown menus (click or hover) and navigation color presets. Learn more and check out our powerful premium version at https://generatepress.com
Version: 2.3
Version: 2.3.1
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: generatepress
Expand Down

0 comments on commit 45f5225

Please sign in to comment.