Max Mega Menu - Version 2.9.0.3

Version Description

  • Fix: Error when clearing cache on some installations
  • Fix: Menu item ordering incorrect on some installations
  • Fix: Invalid 'max-width' CSS rule
  • Fix: Conflict with Eduma theme - only load scss class when required
  • New: Add support for 'never-highlight' custom class
  • New: Add new dashicons introduced in WordPress 5.5
Download this release

Release Info

Developer megamenu
Plugin Icon 128x128 Max Mega Menu
Version 2.9.0.3
Comparing to
See all releases

Code changes from version 2.9.0.2 to 2.9.0.3

classes/menu-item-manager.class.php CHANGED
@@ -891,7 +891,13 @@ if ( ! class_exists( 'Mega_Menu_Menu_Item_Manager' ) ) :
891
 
892
  $icons = array(
893
  'dash-f333' => 'dashicons-menu',
 
 
 
894
  'dash-f319' => 'dashicons-admin-site',
 
 
 
895
  'dash-f226' => 'dashicons-dashboard',
896
  'dash-f109' => 'dashicons-admin-post',
897
  'dash-f104' => 'dashicons-admin-media',
@@ -900,6 +906,7 @@ if ( ! class_exists( 'Mega_Menu_Menu_Item_Manager' ) ) :
900
  'dash-f101' => 'dashicons-admin-comments',
901
  'dash-f100' => 'dashicons-admin-appearance',
902
  'dash-f106' => 'dashicons-admin-plugins',
 
903
  'dash-f110' => 'dashicons-admin-users',
904
  'dash-f107' => 'dashicons-admin-tools',
905
  'dash-f108' => 'dashicons-admin-settings',
@@ -925,6 +932,7 @@ if ( ! class_exists( 'Mega_Menu_Menu_Item_Manager' ) ) :
925
  'dash-f125' => 'dashicons-format-chat',
926
  'dash-f127' => 'dashicons-format-audio',
927
  'dash-f306' => 'dashicons-camera',
 
928
  'dash-f232' => 'dashicons-images-alt',
929
  'dash-f233' => 'dashicons-images-alt2',
930
  'dash-f234' => 'dashicons-video-alt',
@@ -959,10 +967,49 @@ if ( ! class_exists( 'Mega_Menu_Menu_Item_Manager' ) ) :
959
  'dash-f533' => 'dashicons-image-filter',
960
  'dash-f171' => 'dashicons-undo',
961
  'dash-f172' => 'dashicons-redo',
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
962
  'dash-f200' => 'dashicons-editor-bold',
963
  'dash-f201' => 'dashicons-editor-italic',
964
  'dash-f203' => 'dashicons-editor-ul',
965
  'dash-f204' => 'dashicons-editor-ol',
 
966
  'dash-f205' => 'dashicons-editor-quote',
967
  'dash-f206' => 'dashicons-editor-alignleft',
968
  'dash-f207' => 'dashicons-editor-aligncenter',
@@ -986,6 +1033,7 @@ if ( ! class_exists( 'Mega_Menu_Menu_Item_Manager' ) ) :
986
  'dash-f224' => 'dashicons-editor-strikethrough',
987
  'dash-f225' => 'dashicons-editor-unlink',
988
  'dash-f320' => 'dashicons-editor-rtl',
 
989
  'dash-f474' => 'dashicons-editor-break',
990
  'dash-f475' => 'dashicons-editor-code',
991
  'dash-f476' => 'dashicons-editor-paragraph',
@@ -1021,19 +1069,34 @@ if ( ! class_exists( 'Mega_Menu_Menu_Item_Manager' ) ) :
1021
  'dash-f229' => 'dashicons-leftright',
1022
  'dash-f503' => 'dashicons-randomize',
1023
  'dash-f163' => 'dashicons-list-view',
1024
- 'dash-f164' => 'dashicons-exerpt-view',
1025
  'dash-f509' => 'dashicons-grid-view',
 
1026
  'dash-f237' => 'dashicons-share',
1027
  'dash-f240' => 'dashicons-share-alt',
1028
  'dash-f242' => 'dashicons-share-alt2',
1029
- 'dash-f301' => 'dashicons-twitter',
1030
  'dash-f303' => 'dashicons-rss',
1031
  'dash-f465' => 'dashicons-email',
1032
  'dash-f466' => 'dashicons-email-alt',
 
 
 
1033
  'dash-f304' => 'dashicons-facebook',
1034
  'dash-f305' => 'dashicons-facebook-alt',
 
1035
  'dash-f462' => 'dashicons-googleplus',
1036
- 'dash-f325' => 'dashicons-networking',
 
 
 
 
 
 
 
 
 
 
 
1037
  'dash-f308' => 'dashicons-hammer',
1038
  'dash-f309' => 'dashicons-art',
1039
  'dash-f310' => 'dashicons-migrate',
@@ -1046,10 +1109,25 @@ if ( ! class_exists( 'Mega_Menu_Menu_Item_Manager' ) ) :
1046
  'dash-f487' => 'dashicons-heart',
1047
  'dash-f488' => 'dashicons-megaphone',
1048
  'dash-f489' => 'dashicons-schedule',
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1049
  'dash-f120' => 'dashicons-wordpress',
1050
  'dash-f324' => 'dashicons-wordpress-alt',
1051
  'dash-f157' => 'dashicons-pressthis',
1052
  'dash-f463' => 'dashicons-update',
 
1053
  'dash-f180' => 'dashicons-screenoptions',
1054
  'dash-f348' => 'dashicons-info',
1055
  'dash-f174' => 'dashicons-cart',
@@ -1061,11 +1139,14 @@ if ( ! class_exists( 'Mega_Menu_Menu_Item_Manager' ) ) :
1061
  'dash-f480' => 'dashicons-archive',
1062
  'dash-f479' => 'dashicons-tagcloud',
1063
  'dash-f478' => 'dashicons-text',
 
1064
  'dash-f147' => 'dashicons-yes',
 
1065
  'dash-f158' => 'dashicons-no',
1066
  'dash-f335' => 'dashicons-no-alt',
1067
  'dash-f132' => 'dashicons-plus',
1068
  'dash-f502' => 'dashicons-plus-alt',
 
1069
  'dash-f460' => 'dashicons-minus',
1070
  'dash-f153' => 'dashicons-dismiss',
1071
  'dash-f159' => 'dashicons-marker',
@@ -1082,6 +1163,7 @@ if ( ! class_exists( 'Mega_Menu_Menu_Item_Manager' ) ) :
1082
  'dash-f468' => 'dashicons-sos',
1083
  'dash-f179' => 'dashicons-search',
1084
  'dash-f181' => 'dashicons-slides',
 
1085
  'dash-f183' => 'dashicons-analytics',
1086
  'dash-f184' => 'dashicons-chart-pie',
1087
  'dash-f185' => 'dashicons-chart-bar',
@@ -1089,6 +1171,8 @@ if ( ! class_exists( 'Mega_Menu_Menu_Item_Manager' ) ) :
1089
  'dash-f239' => 'dashicons-chart-area',
1090
  'dash-f307' => 'dashicons-groups',
1091
  'dash-f338' => 'dashicons-businessman',
 
 
1092
  'dash-f336' => 'dashicons-id',
1093
  'dash-f337' => 'dashicons-id-alt',
1094
  'dash-f312' => 'dashicons-products',
@@ -1105,6 +1189,7 @@ if ( ! class_exists( 'Mega_Menu_Menu_Item_Manager' ) ) :
1105
  'dash-f339' => 'dashicons-lightbulb',
1106
  'dash-f482' => 'dashicons-microphone',
1107
  'dash-f472' => 'dashicons-desktop',
 
1108
  'dash-f471' => 'dashicons-tablet',
1109
  'dash-f470' => 'dashicons-smartphone',
1110
  'dash-f525' => 'dashicons-phone',
@@ -1116,41 +1201,34 @@ if ( ! class_exists( 'Mega_Menu_Menu_Item_Manager' ) ) :
1116
  'dash-f527' => 'dashicons-palmtree',
1117
  'dash-f524' => 'dashicons-tickets-alt',
1118
  'dash-f526' => 'dashicons-money',
 
1119
  'dash-f328' => 'dashicons-smiley',
1120
  'dash-f529' => 'dashicons-thumbs-up',
1121
  'dash-f542' => 'dashicons-thumbs-down',
1122
  'dash-f538' => 'dashicons-layout',
1123
- 'dash-f452' => 'dashicons-buddicons-activity',
1124
- 'dash-f477' => 'dashicons-buddicons-bbpress-logo',
1125
- 'dash-f448' => 'dashicons-buddicons-buddypress-logo',
1126
- 'dash-f453' => 'dashicons-buddicons-community',
1127
- 'dash-f449' => 'dashicons-buddicons-forums',
1128
- 'dash-f454' => 'dashicons-buddicons-friends',
1129
- 'dash-f456' => 'dashicons-buddicons-groups',
1130
- 'dash-f457' => 'dashicons-buddicons-pm',
1131
- 'dash-f451' => 'dashicons-buddicons-replies',
1132
- 'dash-f450' => 'dashicons-buddicons-topics',
1133
- 'dash-f455' => 'dashicons-buddicons-tracking',
1134
- 'dash-f12c' => 'dashicons-editor-ol-rtl',
1135
- 'dash-f10c' => 'dashicons-editor-ltr',
1136
- 'dash-f10d' => 'dashicons-tide',
1137
- 'dash-f124' => 'dashicons-rest-api',
1138
- 'dash-f13a' => 'dashicons-code-standards',
1139
- 'dash-f11d' => 'dashicons-admin-site-alt',
1140
- 'dash-f11e' => 'dashicons-admin-site-alt2',
1141
- 'dash-f11f' => 'dashicons-admin-site-alt3',
1142
- 'dash-f228' => 'dashicons-menu-alt',
1143
- 'dash-f329' => 'dashicons-menu-alt2',
1144
- 'dash-f349' => 'dashicons-menu-alt3',
1145
- 'dash-f12d' => 'dashicons-instagram',
1146
- 'dash-f12f' => 'dashicons-businesswoman',
1147
- 'dash-f12e' => 'dashicons-businessperson',
1148
- 'dash-f467' => 'dashicons-email-alt2',
1149
- 'dash-f12a' => 'dashicons-yes-alt',
1150
- 'dash-f129' => 'dashicons-camera-alt',
1151
- 'dash-f485' => 'dashicons-plugins-checked',
1152
- 'dash-f113' => 'dashicons-update-alt',
1153
- 'dash-f121' => 'dashicons-text-page',
1154
  );
1155
 
1156
  $icons = apply_filters( 'megamenu_dashicons', $icons );
891
 
892
  $icons = array(
893
  'dash-f333' => 'dashicons-menu',
894
+ 'dash-f228' => 'dashicons-menu-alt',
895
+ 'dash-f329' => 'dashicons-menu-alt2',
896
+ 'dash-f349' => 'dashicons-menu-alt3',
897
  'dash-f319' => 'dashicons-admin-site',
898
+ 'dash-f11d' => 'dashicons-admin-site-alt',
899
+ 'dash-f11e' => 'dashicons-admin-site-alt2',
900
+ 'dash-f11f' => 'dashicons-admin-site-alt3',
901
  'dash-f226' => 'dashicons-dashboard',
902
  'dash-f109' => 'dashicons-admin-post',
903
  'dash-f104' => 'dashicons-admin-media',
906
  'dash-f101' => 'dashicons-admin-comments',
907
  'dash-f100' => 'dashicons-admin-appearance',
908
  'dash-f106' => 'dashicons-admin-plugins',
909
+ 'dash-f485' => 'dashicons-plugins-checked',
910
  'dash-f110' => 'dashicons-admin-users',
911
  'dash-f107' => 'dashicons-admin-tools',
912
  'dash-f108' => 'dashicons-admin-settings',
932
  'dash-f125' => 'dashicons-format-chat',
933
  'dash-f127' => 'dashicons-format-audio',
934
  'dash-f306' => 'dashicons-camera',
935
+ 'dash-f129' => 'dashicons-camera-alt',
936
  'dash-f232' => 'dashicons-images-alt',
937
  'dash-f233' => 'dashicons-images-alt2',
938
  'dash-f234' => 'dashicons-video-alt',
967
  'dash-f533' => 'dashicons-image-filter',
968
  'dash-f171' => 'dashicons-undo',
969
  'dash-f172' => 'dashicons-redo',
970
+ 'dash-f170' => 'dashicons-database-add',
971
+ 'dash-f17e' => 'dashicons-database',
972
+ 'dash-f17a' => 'dashicons-database-export',
973
+ 'dash-f17b' => 'dashicons-database-import',
974
+ 'dash-f17c' => 'dashicons-database-remove',
975
+ 'dash-f17d' => 'dashicons-database-view',
976
+ 'dash-f134' => 'dashicons-align-full-width',
977
+ 'dash-f10a' => 'dashicons-align-pull-left',
978
+ 'dash-f10b' => 'dashicons-align-pull-right',
979
+ 'dash-f11b' => 'dashicons-align-wide',
980
+ 'dash-f12b' => 'dashicons-block-default',
981
+ 'dash-f11a' => 'dashicons-button',
982
+ 'dash-f137' => 'dashicons-cloud-saved',
983
+ 'dash-f13b' => 'dashicons-cloud-upload',
984
+ 'dash-f13c' => 'dashicons-columns',
985
+ 'dash-f13d' => 'dashicons-cover-image',
986
+ 'dash-f11c' => 'dashicons-ellipsis',
987
+ 'dash-f13e' => 'dashicons-embed-audio',
988
+ 'dash-f13f' => 'dashicons-embed-generic',
989
+ 'dash-f144' => 'dashicons-embed-photo',
990
+ 'dash-f146' => 'dashicons-embed-post',
991
+ 'dash-f149' => 'dashicons-embed-video',
992
+ 'dash-f14a' => 'dashicons-exit',
993
+ 'dash-f10e' => 'dashicons-heading',
994
+ 'dash-f14b' => 'dashicons-html',
995
+ 'dash-f14c' => 'dashicons-info-outline',
996
+ 'dash-f10f' => 'dashicons-insert',
997
+ 'dash-f14d' => 'dashicons-insert-after',
998
+ 'dash-f14e' => 'dashicons-insert-before',
999
+ 'dash-f14f' => 'dashicons-remove',
1000
+ 'dash-f15e' => 'dashicons-saved',
1001
+ 'dash-f150' => 'dashicons-shortcode',
1002
+ 'dash-f151' => 'dashicons-table-col-after',
1003
+ 'dash-f152' => 'dashicons-table-col-before',
1004
+ 'dash-f15a' => 'dashicons-table-col-delete',
1005
+ 'dash-f15b' => 'dashicons-table-row-after',
1006
+ 'dash-f15c' => 'dashicons-table-row-before',
1007
+ 'dash-f15d' => 'dashicons-table-row-delete',
1008
  'dash-f200' => 'dashicons-editor-bold',
1009
  'dash-f201' => 'dashicons-editor-italic',
1010
  'dash-f203' => 'dashicons-editor-ul',
1011
  'dash-f204' => 'dashicons-editor-ol',
1012
+ 'dash-f12c' => 'dashicons-editor-ol-rtl',
1013
  'dash-f205' => 'dashicons-editor-quote',
1014
  'dash-f206' => 'dashicons-editor-alignleft',
1015
  'dash-f207' => 'dashicons-editor-aligncenter',
1033
  'dash-f224' => 'dashicons-editor-strikethrough',
1034
  'dash-f225' => 'dashicons-editor-unlink',
1035
  'dash-f320' => 'dashicons-editor-rtl',
1036
+ 'dash-f10c' => 'dashicons-editor-ltr',
1037
  'dash-f474' => 'dashicons-editor-break',
1038
  'dash-f475' => 'dashicons-editor-code',
1039
  'dash-f476' => 'dashicons-editor-paragraph',
1069
  'dash-f229' => 'dashicons-leftright',
1070
  'dash-f503' => 'dashicons-randomize',
1071
  'dash-f163' => 'dashicons-list-view',
1072
+ 'dash-f164' => 'dashicons-excerpt-view',
1073
  'dash-f509' => 'dashicons-grid-view',
1074
+ 'dash-f545' => 'dashicons-move',
1075
  'dash-f237' => 'dashicons-share',
1076
  'dash-f240' => 'dashicons-share-alt',
1077
  'dash-f242' => 'dashicons-share-alt2',
 
1078
  'dash-f303' => 'dashicons-rss',
1079
  'dash-f465' => 'dashicons-email',
1080
  'dash-f466' => 'dashicons-email-alt',
1081
+ 'dash-f467' => 'dashicons-email-alt2',
1082
+ 'dash-f325' => 'dashicons-networking',
1083
+ 'dash-f162' => 'dashicons-amazon',
1084
  'dash-f304' => 'dashicons-facebook',
1085
  'dash-f305' => 'dashicons-facebook-alt',
1086
+ 'dash-f18b' => 'dashicons-google',
1087
  'dash-f462' => 'dashicons-googleplus',
1088
+ 'dash-f12d' => 'dashicons-instagram',
1089
+ 'dash-f18d' => 'dashicons-linkedin',
1090
+ 'dash-f192' => 'dashicons-pinterest',
1091
+ 'dash-f19c' => 'dashicons-podio',
1092
+ 'dash-f195' => 'dashicons-reddit',
1093
+ 'dash-f196' => 'dashicons-spotify',
1094
+ 'dash-f199' => 'dashicons-twitch',
1095
+ 'dash-f301' => 'dashicons-twitter',
1096
+ 'dash-f302' => 'dashicons-twitter-alt',
1097
+ 'dash-f19a' => 'dashicons-whatsapp',
1098
+ 'dash-f19d' => 'dashicons-xing',
1099
+ 'dash-f19b' => 'dashicons-youtube',
1100
  'dash-f308' => 'dashicons-hammer',
1101
  'dash-f309' => 'dashicons-art',
1102
  'dash-f310' => 'dashicons-migrate',
1109
  'dash-f487' => 'dashicons-heart',
1110
  'dash-f488' => 'dashicons-megaphone',
1111
  'dash-f489' => 'dashicons-schedule',
1112
+ 'dash-f10d' => 'dashicons-tide',
1113
+ 'dash-f124' => 'dashicons-rest-api',
1114
+ 'dash-f13a' => 'dashicons-code-standards',
1115
+ 'dash-f452' => 'dashicons-buddicons-activity',
1116
+ 'dash-f477' => 'dashicons-buddicons-bbpress-logo',
1117
+ 'dash-f448' => 'dashicons-buddicons-buddypress-logo',
1118
+ 'dash-f453' => 'dashicons-buddicons-community',
1119
+ 'dash-f449' => 'dashicons-buddicons-forums',
1120
+ 'dash-f454' => 'dashicons-buddicons-friends',
1121
+ 'dash-f456' => 'dashicons-buddicons-groups',
1122
+ 'dash-f457' => 'dashicons-buddicons-pm',
1123
+ 'dash-f451' => 'dashicons-buddicons-replies',
1124
+ 'dash-f450' => 'dashicons-buddicons-topics',
1125
+ 'dash-f455' => 'dashicons-buddicons-tracking',
1126
  'dash-f120' => 'dashicons-wordpress',
1127
  'dash-f324' => 'dashicons-wordpress-alt',
1128
  'dash-f157' => 'dashicons-pressthis',
1129
  'dash-f463' => 'dashicons-update',
1130
+ 'dash-f113' => 'dashicons-update-alt',
1131
  'dash-f180' => 'dashicons-screenoptions',
1132
  'dash-f348' => 'dashicons-info',
1133
  'dash-f174' => 'dashicons-cart',
1139
  'dash-f480' => 'dashicons-archive',
1140
  'dash-f479' => 'dashicons-tagcloud',
1141
  'dash-f478' => 'dashicons-text',
1142
+ 'dash-f16d' => 'dashicons-bell',
1143
  'dash-f147' => 'dashicons-yes',
1144
+ 'dash-f12a' => 'dashicons-yes-alt',
1145
  'dash-f158' => 'dashicons-no',
1146
  'dash-f335' => 'dashicons-no-alt',
1147
  'dash-f132' => 'dashicons-plus',
1148
  'dash-f502' => 'dashicons-plus-alt',
1149
+ 'dash-f543' => 'dashicons-plus-alt2',
1150
  'dash-f460' => 'dashicons-minus',
1151
  'dash-f153' => 'dashicons-dismiss',
1152
  'dash-f159' => 'dashicons-marker',
1163
  'dash-f468' => 'dashicons-sos',
1164
  'dash-f179' => 'dashicons-search',
1165
  'dash-f181' => 'dashicons-slides',
1166
+ 'dash-f121' => 'dashicons-text-page',
1167
  'dash-f183' => 'dashicons-analytics',
1168
  'dash-f184' => 'dashicons-chart-pie',
1169
  'dash-f185' => 'dashicons-chart-bar',
1171
  'dash-f239' => 'dashicons-chart-area',
1172
  'dash-f307' => 'dashicons-groups',
1173
  'dash-f338' => 'dashicons-businessman',
1174
+ 'dash-f12f' => 'dashicons-businesswoman',
1175
+ 'dash-f12e' => 'dashicons-businessperson',
1176
  'dash-f336' => 'dashicons-id',
1177
  'dash-f337' => 'dashicons-id-alt',
1178
  'dash-f312' => 'dashicons-products',
1189
  'dash-f339' => 'dashicons-lightbulb',
1190
  'dash-f482' => 'dashicons-microphone',
1191
  'dash-f472' => 'dashicons-desktop',
1192
+ 'dash-f547' => 'dashicons-laptop',
1193
  'dash-f471' => 'dashicons-tablet',
1194
  'dash-f470' => 'dashicons-smartphone',
1195
  'dash-f525' => 'dashicons-phone',
1201
  'dash-f527' => 'dashicons-palmtree',
1202
  'dash-f524' => 'dashicons-tickets-alt',
1203
  'dash-f526' => 'dashicons-money',
1204
+ 'dash-f18e' => 'dashicons-money-alt',
1205
  'dash-f328' => 'dashicons-smiley',
1206
  'dash-f529' => 'dashicons-thumbs-up',
1207
  'dash-f542' => 'dashicons-thumbs-down',
1208
  'dash-f538' => 'dashicons-layout',
1209
+ 'dash-f546' => 'dashicons-paperclip',
1210
+ 'dash-f131' => 'dashicons-color-picker',
1211
+ 'dash-f327' => 'dashicons-edit-large',
1212
+ 'dash-f186' => 'dashicons-edit-page',
1213
+ 'dash-f15f' => 'dashicons-airplane',
1214
+ 'dash-f16a' => 'dashicons-bank',
1215
+ 'dash-f16c' => 'dashicons-beer',
1216
+ 'dash-f16e' => 'dashicons-calculator',
1217
+ 'dash-f16b' => 'dashicons-car',
1218
+ 'dash-f16f' => 'dashicons-coffee',
1219
+ 'dash-f17f' => 'dashicons-drumstick',
1220
+ 'dash-f187' => 'dashicons-food',
1221
+ 'dash-f188' => 'dashicons-fullscreen-alt',
1222
+ 'dash-f189' => 'dashicons-fullscreen-exit-alt',
1223
+ 'dash-f18a' => 'dashicons-games',
1224
+ 'dash-f18c' => 'dashicons-hourglass',
1225
+ 'dash-f18f' => 'dashicons-open-folder',
1226
+ 'dash-f190' => 'dashicons-pdf',
1227
+ 'dash-f191' => 'dashicons-pets',
1228
+ 'dash-f193' => 'dashicons-printer',
1229
+ 'dash-f194' => 'dashicons-privacy',
1230
+ 'dash-f198' => 'dashicons-superhero',
1231
+ 'dash-f197' => 'dashicons-superhero-alt',
 
 
 
 
 
 
 
 
1232
  );
1233
 
1234
  $icons = apply_filters( 'megamenu_dashicons', $icons );
classes/pages/general.php CHANGED
@@ -18,12 +18,10 @@ if ( ! class_exists( 'Mega_Menu_General' ) ) :
18
  */
19
  public function __construct() {
20
  add_action( 'admin_post_megamenu_save_settings', array( $this, 'save_settings' ) );
21
- add_action( 'admin_post_megamenu_clear_css_cache', array( $this, 'tools_clear_css_cache' ) );
22
  add_action( 'admin_post_megamenu_delete_data', array( $this, 'delete_data' ) );
23
 
24
  add_filter( 'megamenu_menu_tabs', array( $this, 'add_general_tab' ), 4 );
25
  add_action( 'megamenu_page_general_settings', array( $this, 'general_settings_page' ) );
26
-
27
  }
28
 
29
 
18
  */
19
  public function __construct() {
20
  add_action( 'admin_post_megamenu_save_settings', array( $this, 'save_settings' ) );
 
21
  add_action( 'admin_post_megamenu_delete_data', array( $this, 'delete_data' ) );
22
 
23
  add_filter( 'megamenu_menu_tabs', array( $this, 'add_general_tab' ), 4 );
24
  add_action( 'megamenu_page_general_settings', array( $this, 'general_settings_page' ) );
 
25
  }
26
 
27
 
classes/style-manager.class.php CHANGED
@@ -665,6 +665,10 @@ if ( ! class_exists( 'Mega_Menu_Style_Manager' ) ) :
665
  */
666
  public function generate_css_for_location( $location, $theme, $menu_id ) {
667
 
 
 
 
 
668
  $scssc = new scssc();
669
  $scssc->setFormatter( 'scss_formatter' );
670
 
665
  */
666
  public function generate_css_for_location( $location, $theme, $menu_id ) {
667
 
668
+ if ( is_readable( MEGAMENU_PATH . 'classes/scssc.inc.php' ) && ! class_exists( 'scssc' ) ) {
669
+ include_once MEGAMENU_PATH . 'classes/scssc.inc.php';
670
+ }
671
+
672
  $scssc = new scssc();
673
  $scssc->setFormatter( 'scss_formatter' );
674
 
css/megamenu.scss CHANGED
@@ -39,7 +39,7 @@
39
  min-height: auto;
40
  max-height: none;
41
  min-width: auto;
42
- max-width: auto;
43
  opacity: 1;
44
  outline: none;
45
  overflow: visible;
39
  min-height: auto;
40
  max-height: none;
41
  min-width: auto;
42
+ max-width: none;
43
  opacity: 1;
44
  outline: none;
45
  overflow: visible;
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.0.2
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.0.2';
39
 
40
 
41
  /**
@@ -86,6 +86,7 @@ if ( ! class_exists( 'Mega_Menu' ) ) :
86
  add_filter( 'body_class', array( $this, 'add_megamenu_body_classes' ), 10, 1 );
87
 
88
  add_filter( 'megamenu_nav_menu_css_class', array( $this, 'prefix_menu_classes' ), 10, 3 );
 
89
 
90
  // plugin compatibility.
91
  add_filter( 'conditional_menus_theme_location', array( $this, 'conditional_menus_restore_theme_location' ), 10, 3 );
@@ -385,7 +386,6 @@ if ( ! class_exists( 'Mega_Menu' ) ) :
385
  'Mega_Menu_Widget_Reusable_Block' => MEGAMENU_PATH . 'classes/widgets/widget-reusable-block.class.php',
386
  'Mega_Menu_Widget_Elementor_Template' => MEGAMENU_PATH . 'classes/widgets/widget-elementor-template.class.php',
387
  'Mega_Menu_toggle_Blocks' => MEGAMENU_PATH . 'classes/toggle-blocks.class.php',
388
- 'scssc' => MEGAMENU_PATH . 'classes/scssc.inc.php',
389
  );
390
 
391
  return $classes;
@@ -472,6 +472,28 @@ if ( ! class_exists( 'Mega_Menu' ) ) :
472
  return $return;
473
  }
474
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
475
 
476
  /**
477
  * Add the html for the responsive toggle box to the menu
@@ -532,7 +554,7 @@ if ( ! class_exists( 'Mega_Menu' ) ) :
532
  foreach ( $items as $item ) {
533
 
534
  // populate standard (non-grid) sub menus.
535
- if ( 0 === $item->depth && 'megamenu' === $item->megamenu_settings['type'] || ( absint( $item->depth ) === 1 && 'tabbed' === $item->parent_submenu_type && 'grid' !== $item->megamenu_settings['type'] ) ) {
536
 
537
  $panel_widgets = $widget_manager->get_widgets_for_menu_id( $item->ID, $args->menu );
538
 
@@ -585,7 +607,7 @@ if ( ! class_exists( 'Mega_Menu' ) ) :
585
  }
586
 
587
  // populate grid sub menus.
588
- if ( absint( $item->depth ) === 0 && 'grid' === $item->megamenu_settings['type'] || ( absint( $item->depth ) === 1 && 'tabbed' === $item->parent_submenu_type && 'grid' === $item->megamenu_settings['type'] ) ) {
589
 
590
  $saved_grid = $widget_manager->get_grid_widgets_and_menu_items_for_menu_id( $item->ID, $args->menu->term_id, $items );
591
 
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.0.3
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.0.3';
39
 
40
 
41
  /**
86
  add_filter( 'body_class', array( $this, 'add_megamenu_body_classes' ), 10, 1 );
87
 
88
  add_filter( 'megamenu_nav_menu_css_class', array( $this, 'prefix_menu_classes' ), 10, 3 );
89
+ add_filter( 'megamenu_nav_menu_css_class', array( $this, 'css_classes_never_highlight' ), 10, 3 );
90
 
91
  // plugin compatibility.
92
  add_filter( 'conditional_menus_theme_location', array( $this, 'conditional_menus_restore_theme_location' ), 10, 3 );
386
  'Mega_Menu_Widget_Reusable_Block' => MEGAMENU_PATH . 'classes/widgets/widget-reusable-block.class.php',
387
  'Mega_Menu_Widget_Elementor_Template' => MEGAMENU_PATH . 'classes/widgets/widget-elementor-template.class.php',
388
  'Mega_Menu_toggle_Blocks' => MEGAMENU_PATH . 'classes/toggle-blocks.class.php',
 
389
  );
390
 
391
  return $classes;
472
  return $return;
473
  }
474
 
475
+ /**
476
+ * Remove the current menu item classes when a custom class of 'never-highlight' has been added to the menu item
477
+ *
478
+ * @param array $classes
479
+ * @param ovject $item
480
+ * @param array $args
481
+ * @return array
482
+ */
483
+ public function css_classes_never_highlight( $classes, $item, $args ) {
484
+ if ( in_array( 'mega-never-highlight', $classes ) ) {
485
+ if ( in_array( 'mega-current-menu-ancestor', $classes ) ) {
486
+ $classes = array_diff( $classes, array( 'mega-current-menu-ancestor' ) );
487
+ }
488
+
489
+ if ( in_array( 'mega-current-menu-item', $classes ) ) {
490
+ $classes = array_diff( $classes, array( 'mega-current-menu-item' ) );
491
+ }
492
+ }
493
+
494
+ return $classes;
495
+ }
496
+
497
 
498
  /**
499
  * Add the html for the responsive toggle box to the menu
554
  foreach ( $items as $item ) {
555
 
556
  // populate standard (non-grid) sub menus.
557
+ if ( 0 === $item->depth && 'megamenu' === $item->megamenu_settings['type'] || ( 1 === $item->depth && 'tabbed' === $item->parent_submenu_type && 'grid' !== $item->megamenu_settings['type'] ) ) {
558
 
559
  $panel_widgets = $widget_manager->get_widgets_for_menu_id( $item->ID, $args->menu );
560
 
607
  }
608
 
609
  // populate grid sub menus.
610
+ if ( 0 === $item->depth && 'grid' === $item->megamenu_settings['type'] || ( 1 === $item->depth && 'tabbed' === $item->parent_submenu_type && 'grid' === $item->megamenu_settings['type'] ) ) {
611
 
612
  $saved_grid = $widget_manager->get_grid_widgets_and_menu_items_for_menu_id( $item->ID, $args->menu->term_id, $items );
613
 
readme.txt CHANGED
@@ -3,7 +3,7 @@ Contributors: megamenu
3
  Tags: menu, megamenu, mega menu, navigation, widget, dropdown menu, drag and drop, mobile, responsive, retina, theme editor, widget, shortcode, sidebar, icons, dashicons
4
  Requires at least: 4.9
5
  Tested up to: 5.5
6
- Stable tag: 2.9.0.1
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,15 @@ See https://www.megamenu.com for more screenshots
134
 
135
  == Changelog ==
136
 
 
 
 
 
 
 
 
 
 
137
  = 2.9.0.2 =
138
 
139
  * Fix: Active Menu Instance incorrectly applied
3
  Tags: menu, megamenu, mega menu, navigation, widget, dropdown menu, drag and drop, mobile, responsive, retina, theme editor, widget, shortcode, sidebar, icons, dashicons
4
  Requires at least: 4.9
5
  Tested up to: 5.5
6
+ Stable tag: 2.9.0.2
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.0.3 =
138
+
139
+ * Fix: Error when clearing cache on some installations
140
+ * Fix: Menu item ordering incorrect on some installations
141
+ * Fix: Invalid 'max-width' CSS rule
142
+ * Fix: Conflict with Eduma theme - only load scss class when required
143
+ * New: Add support for 'never-highlight' custom class
144
+ * New: Add new dashicons introduced in WordPress 5.5
145
+
146
  = 2.9.0.2 =
147
 
148
  * Fix: Active Menu Instance incorrectly applied