Version Description
- Fix: Text decoration CSS on top level item links
- Fix: PHP warning in widget class
- Fix: PHP 8 compatibility
Download this release
Release Info
Developer | megamenu |
Plugin | Max Mega Menu |
Version | 2.9.6 |
Comparing to | |
See all releases |
Code changes from version 2.9.5 to 2.9.6
- classes/scssc.inc.php +3 -3
- classes/widgets/widget.class.php +1 -1
- css/megamenu.scss +0 -1
- megamenu.php +2 -2
- readme.txt +7 -1
classes/scssc.inc.php
CHANGED
@@ -1232,9 +1232,9 @@ class scssc {
|
|
1232 |
// [4] - optional alpha component
|
1233 |
list(, $r, $g, $b) = $value;
|
1234 |
|
1235 |
-
$r = round($r);
|
1236 |
-
$g = round($g);
|
1237 |
-
$b = round($b);
|
1238 |
|
1239 |
if (count($value) == 5 && $value[4] != 1) { // rgba
|
1240 |
return 'rgba('.$r.', '.$g.', '.$b.', '.$value[4].')';
|
1232 |
// [4] - optional alpha component
|
1233 |
list(, $r, $g, $b) = $value;
|
1234 |
|
1235 |
+
$r = round((int)$r);
|
1236 |
+
$g = round((int)$g);
|
1237 |
+
$b = round((int)$b);
|
1238 |
|
1239 |
if (count($value) == 5 && $value[4] != 1) { // rgba
|
1240 |
return 'rgba('.$r.', '.$g.', '.$b.', '.$value[4].')';
|
classes/widgets/widget.class.php
CHANGED
@@ -43,7 +43,7 @@ if ( ! class_exists( 'Mega_Menu_Widget' ) ) :
|
|
43 |
if ( isset( $instance['location'] ) ) {
|
44 |
$location = $instance['location'];
|
45 |
|
46 |
-
$title = apply_filters( 'widget_title', $instance['title'] );
|
47 |
|
48 |
echo $before_widget;
|
49 |
|
43 |
if ( isset( $instance['location'] ) ) {
|
44 |
$location = $instance['location'];
|
45 |
|
46 |
+
$title = isset( $instance['title'] ) ? apply_filters( 'widget_title', $instance['title'] ) : "";
|
47 |
|
48 |
echo $before_widget;
|
49 |
|
css/megamenu.scss
CHANGED
@@ -453,7 +453,6 @@
|
|
453 |
text-transform: $menu_item_link_text_transform;
|
454 |
text-decoration: $menu_item_link_text_decoration;
|
455 |
text-align: $menu_item_link_text_align;
|
456 |
-
text-decoration: none;
|
457 |
@include background($menu_item_background_from, $menu_item_background_to);
|
458 |
@include border($menu_item_border_top, $menu_item_border_left, $menu_item_border_right, $menu_item_border_bottom, $menu_item_border_color);
|
459 |
@include border-radius($menu_item_link_border_radius_top_left, $menu_item_link_border_radius_top_right, $menu_item_link_border_radius_bottom_right, $menu_item_link_border_radius_bottom_left);
|
453 |
text-transform: $menu_item_link_text_transform;
|
454 |
text-decoration: $menu_item_link_text_decoration;
|
455 |
text-align: $menu_item_link_text_align;
|
|
|
456 |
@include background($menu_item_background_from, $menu_item_background_to);
|
457 |
@include border($menu_item_border_top, $menu_item_border_left, $menu_item_border_right, $menu_item_border_bottom, $menu_item_border_color);
|
458 |
@include border-radius($menu_item_link_border_radius_top_left, $menu_item_link_border_radius_top_right, $menu_item_link_border_radius_bottom_right, $menu_item_link_border_radius_bottom_left);
|
megamenu.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
* Plugin Name: Max Mega Menu
|
4 |
* Plugin URI: https://www.megamenu.com
|
5 |
* Description: An easy to use mega menu plugin. Written the WordPress way.
|
6 |
-
* Version: 2.9.
|
7 |
* Author: megamenu.com
|
8 |
* Author URI: https://www.megamenu.com
|
9 |
* License: GPL-2.0+
|
@@ -35,7 +35,7 @@ if ( ! class_exists( 'Mega_Menu' ) ) :
|
|
35 |
*
|
36 |
* @var string
|
37 |
*/
|
38 |
-
public $version = '2.9.
|
39 |
|
40 |
|
41 |
/**
|
3 |
* Plugin Name: Max Mega Menu
|
4 |
* Plugin URI: https://www.megamenu.com
|
5 |
* Description: An easy to use mega menu plugin. Written the WordPress way.
|
6 |
+
* Version: 2.9.6
|
7 |
* Author: megamenu.com
|
8 |
* Author URI: https://www.megamenu.com
|
9 |
* License: GPL-2.0+
|
35 |
*
|
36 |
* @var string
|
37 |
*/
|
38 |
+
public $version = '2.9.6';
|
39 |
|
40 |
|
41 |
/**
|
readme.txt
CHANGED
@@ -3,7 +3,7 @@ Contributors: megamenu
|
|
3 |
Tags: menu, megamenu, mega menu, navigation, mobile
|
4 |
Requires at least: 4.9
|
5 |
Tested up to: 5.9
|
6 |
-
Stable tag: 2.9.
|
7 |
Requires PHP: 5.6
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
@@ -134,6 +134,12 @@ See https://www.megamenu.com for more screenshots
|
|
134 |
|
135 |
== Changelog ==
|
136 |
|
|
|
|
|
|
|
|
|
|
|
|
|
137 |
= 2.9.5 =
|
138 |
|
139 |
* Improvement: Update Menu Locations screen design to make it clearer that locations can be expanded to view available options
|
3 |
Tags: menu, megamenu, mega menu, navigation, mobile
|
4 |
Requires at least: 4.9
|
5 |
Tested up to: 5.9
|
6 |
+
Stable tag: 2.9.5
|
7 |
Requires PHP: 5.6
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
134 |
|
135 |
== Changelog ==
|
136 |
|
137 |
+
= 2.9.6 =
|
138 |
+
|
139 |
+
* Fix: Text decoration CSS on top level item links
|
140 |
+
* Fix: PHP warning in widget class
|
141 |
+
* Fix: PHP 8 compatibility
|
142 |
+
|
143 |
= 2.9.5 =
|
144 |
|
145 |
* Improvement: Update Menu Locations screen design to make it clearer that locations can be expanded to view available options
|