Changeset 3812169
- Timestamp:
- 11/19/2026 06:19:22 PM (less than one hour ago)
- Location:
- menubar
- Files:
-
- 21 edited
- 6 copied
-
tags/6.0 (copied) (copied from menubar/trunk )
-
tags/6.0/readme.txt (copied) (copied from menubar/trunk/readme.txt ) (2 diffs)
-
tags/6.0/templates/Basic_46/wpm3.php (modified) (1 diff)
-
tags/6.0/templates/CSSmb_46/wpm3.php (modified) (1 diff)
-
tags/6.0/templates/LC1_46/wpm3.php (modified) (1 diff)
-
tags/6.0/templates/Suckerfish_45/wpm3.php (modified) (1 diff)
-
tags/6.0/templates/Superfish/wpm3.php (modified) (1 diff)
-
tags/6.0/wpm-admin.php (copied) (copied from menubar/trunk/wpm-admin.php ) (13 diffs)
-
tags/6.0/wpm-db.php (copied) (copied from menubar/trunk/wpm-db.php ) (1 diff)
-
tags/6.0/wpm-edit-menu.php (modified) (1 diff)
-
tags/6.0/wpm-edit.php (copied) (copied from menubar/trunk/wpm-edit.php ) (2 diffs)
-
tags/6.0/wpm-main.php (copied) (copied from menubar/trunk/wpm-main.php ) (2 diffs)
-
tags/6.0/wpm-menu.php (modified) (1 diff)
-
tags/6.0/wpm-tree.php (modified) (2 diffs)
-
trunk/readme.txt (modified) (2 diffs)
-
trunk/templates/Basic_46/wpm3.php (modified) (1 diff)
-
trunk/templates/CSSmb_46/wpm3.php (modified) (1 diff)
-
trunk/templates/LC1_46/wpm3.php (modified) (1 diff)
-
trunk/templates/Suckerfish_45/wpm3.php (modified) (1 diff)
-
trunk/templates/Superfish/wpm3.php (modified) (1 diff)
-
trunk/wpm-admin.php (modified) (13 diffs)
-
trunk/wpm-db.php (modified) (1 diff)
-
trunk/wpm-edit-menu.php (modified) (1 diff)
-
trunk/wpm-edit.php (modified) (2 diffs)
-
trunk/wpm-main.php (modified) (2 diffs)
-
trunk/wpm-menu.php (modified) (1 diff)
-
trunk/wpm-tree.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
menubar/tags/6.0/readme.txt
r3670779 r3812169 5 5 Requires at least: 6.1 6 6 Tested up to: 7.1 7 Stable tag: 5.9.47 Stable tag: 6.0 8 8 9 9 Single and multi-level menus for your WordPress site, styled with customizable menu templates. … … 35 35 == Changelog == 36 36 37 = 6.0 = 38 * Removed vulnerability - thanks to *iczdblindman* via patchstack.com 37 39 = 5.9.4 = 38 40 * Fixed a few notices related to *load_plugin_textdomain* -
menubar/tags/6.0/templates/Basic_46/wpm3.php
r632724 r3812169 4 4 PHP script for the Basic_46 template 5 5 */ 6 7 if (!defined ('ABSPATH')) exit; 6 8 7 9 global $wpm_html_b46; -
menubar/tags/6.0/templates/CSSmb_46/wpm3.php
r632724 r3812169 9 9 http://www.cssmenubuilder.com/home 10 10 */ 11 12 if (!defined ('ABSPATH')) exit; 11 13 12 14 global $wpm_html_c46; -
menubar/tags/6.0/templates/LC1_46/wpm3.php
r632724 r3812169 9 9 http://www.solucija.com/ 10 10 */ 11 12 if (!defined ('ABSPATH')) exit; 11 13 12 14 global $wpm_html_l46; -
menubar/tags/6.0/templates/Suckerfish_45/wpm3.php
r632724 r3812169 9 9 http://www.htmldog.com/articles/suckerfish/dropdowns/ 10 10 */ 11 12 if (!defined ('ABSPATH')) exit; 11 13 12 14 global $wpm_html_S45; -
menubar/tags/6.0/templates/Superfish/wpm3.php
r2411871 r3812169 9 9 https://superfish.joelbirch.design/ 10 10 */ 11 12 if (!defined ('ABSPATH')) exit; 11 13 12 14 global $wpm_html_ssf; -
menubar/tags/6.0/wpm-admin.php
r3070196 r3812169 1 <?php 2 3 if (!defined ('ABSPATH')) exit; 4 5 ?> 1 6 2 7 <script type='text/javascript'> … … 116 121 '&action=delete&menuid=' . $menuid . '&itemid=' . $item->id; 117 122 118 $up = $prev_id? "<a href=' $url_up' class='edit' title='".__('move up','menubar')."'>123 $up = $prev_id? "<a href='" . wp_nonce_url ($url_up, 'swap_' . $prev_id) . "' class='edit' title='".__('move up','menubar')."'> 119 124 <img src='$url/up.gif' /></a>": ""; 120 125 121 $down = $next_id? "<a href=' $url_down' class='edit' title='".__('move down','menubar')."'>126 $down = $next_id? "<a href='" . wp_nonce_url ($url_down, 'swap_' . $item->id) . "' class='edit' title='".__('move down','menubar')."'> 122 127 <img src='$url/down.gif' /></a>": ""; 123 128 … … 265 270 } 266 271 267 function wpm_get_vars ($vars)268 {269 foreach ($vars as $var)270 $GLOBALS[$var] = isset ($_REQUEST[$var])? trim (stripslashes ($_REQUEST[$var])): '';271 }272 273 272 function wpm_get_fields () 274 273 { 275 $exclude = array ('_wp_http_referer', '_wpnonce'); 274 $exclude = array ('_wp_http_referer', '_wpnonce'); 276 275 277 276 $fields = new stdClass; … … 303 302 } 304 303 305 function wpm_check_item ($order, $orderid, $fields) 306 { 307 } 308 309 wpm_get_vars (array ('submit', 'action', 'itemid', 'order', 'orderid', 'menuid', 'menuname', 'template')); 310 311 $msg = 0; 304 $msg = 0; 305 $submit = isset ($_REQUEST['submit'])? trim (stripslashes ($_REQUEST['submit'])): ''; 306 $action = isset ($_REQUEST['action'])? trim (stripslashes ($_REQUEST['action'])): ''; 307 $itemid = isset ($_REQUEST['itemid'])? (int)$_REQUEST['itemid']: 0; 308 $order = isset ($_REQUEST['order'])? (int)$_REQUEST['order']: 0; 309 $orderid = isset ($_REQUEST['orderid'])? (int)$_REQUEST['orderid']: 0; 310 $menuid = isset ($_REQUEST['menuid'])? (int)$_REQUEST['menuid']: 0; 311 $menuname = isset ($_REQUEST['menuname'])? trim (stripslashes ($_REQUEST['menuname'])): ''; 312 $template = isset ($_REQUEST['template'])? trim (stripslashes ($_REQUEST['template'])): ''; 312 313 313 314 switch ($submit) 314 315 { 315 case __('Reset Menubar', 'menubar'): 316 case __('Reset Menubar', 'menubar'): 316 317 317 318 check_admin_referer ('reset'); … … 322 323 323 324 break; 324 case __('Select Menu', 'menubar'): 325 326 break; 327 case __('Delete Menu', 'menubar'): 328 325 case __('Select Menu', 'menubar'): 326 327 break; 328 case __('Delete Menu', 'menubar'): 329 330 if (wpm_read_node ($menuid) === null) break; 329 331 check_admin_referer ('deletemenu'); 330 332 … … 338 340 339 341 break; 340 case __('Edit Menu', 'menubar'): 342 case __('Edit Menu', 'menubar'): 343 344 if (wpm_read_node ($menuid) === null) break; 341 345 342 346 $action = 'editmenu'; … … 347 351 348 352 break; 349 case __('Update Menu', 'menubar'): 350 353 case __('Update Menu', 'menubar'): 354 355 if (wpm_read_node ($menuid) === null) break; 351 356 check_admin_referer ('updatemenu_' . $menuid); 352 357 … … 404 409 case 'swap': 405 410 411 if (wpm_read_node ($itemid) === null) break; 412 check_admin_referer ('swap_' . $itemid); 413 406 414 wpm_swap_node ($itemid); 407 415 … … 409 417 case 'add': 410 418 419 if (wpm_read_node ($menuid) === null) break; 411 420 check_admin_referer ('add'); 412 421 … … 437 446 case 'delete': 438 447 448 if (wpm_read_node ($itemid) === null) break; 439 449 check_admin_referer ('delete_' . $itemid); 440 450 … … 447 457 case 'edit': 448 458 459 if (wpm_read_node ($menuid) === null) break; 460 if (wpm_read_node ($itemid) === null) break; 461 449 462 $item = wpm_read_node ($itemid); 450 463 include_once ('wpm-edit.php'); … … 456 469 case 'update': 457 470 471 if (wpm_read_node ($itemid) === null) break; 458 472 check_admin_referer ('update_' . $itemid); 459 473 … … 527 541 wp_nonce_field ('deletemenu'); 528 542 wpm_menu_dropdown ($menuid); ?> 529 <input type="submit" name="submit" value="<?php _e('Select Menu', 'menubar'); ?>" class="button" /> 530 <input type="submit" name="submit" value="<?php _e('Edit Menu', 'menubar'); ?>" class="button" /> 543 <input type="submit" name="submit" value="<?php _e('Select Menu', 'menubar'); ?>" class="button" /> 544 <input type="submit" name="submit" value="<?php _e('Edit Menu', 'menubar'); ?>" class="button" /> 531 545 <input type="submit" name="submit" value="<?php _e('Delete Menu', 'menubar'); ?>" class="button delete" /> 532 546 <?php } ?> 533 547 534 <input type="submit" name="submit" value="<?php _e('Add New Menu', 'menubar'); ?>" class="button" /> 548 <input type="submit" name="submit" value="<?php _e('Add New Menu', 'menubar'); ?>" class="button" /> 535 549 </fieldset> 536 550 </form> -
menubar/tags/6.0/wpm-db.php
r3277427 r3812169 1 1 <?php 2 3 if (!defined ('ABSPATH')) exit; 2 4 3 5 $wpm_type_fields = array ( -
menubar/tags/6.0/wpm-edit-menu.php
r1257428 r3812169 1 1 <?php 2 3 if (!defined ('ABSPATH')) exit; 2 4 3 5 if ($action == 'editmenu') { -
menubar/tags/6.0/wpm-edit.php
r3277427 r3812169 1 1 <?php 2 3 if (!defined ('ABSPATH')) exit; 2 4 3 5 function wpm_item_form ($action, $menuid, $item=null) … … 107 109 <h2><?php echo $heading; ?></h2> 108 110 <?php echo $form; ?> 109 <input type="hidden" name="action" value="<?php echo $action; ?>" />110 <input type="hidden" name="menuid" value="<?php echo $menuid; ?>" />111 <input type="hidden" name="itemid" value="<?php echo $item->id; ?>" />111 <input type="hidden" name="action" value="<?php echo esc_attr ($action); ?>" /> 112 <input type="hidden" name="menuid" value="<?php echo esc_attr ($menuid); ?>" /> 113 <input type="hidden" name="itemid" value="<?php echo esc_attr ($item->id); ?>" /> 112 114 <?php wp_nonce_field($nonce_action); ?> 113 115 -
menubar/tags/6.0/wpm-main.php
r3277427 r3812169 4 4 Plugin URI: https://dontdream.it/menubar/ 5 5 Description: Configurable menus with your choice of menu templates. 6 Version: 5.9.46 Version: 6.0 7 7 Author: Andrea Tarantini 8 8 Author URI: https://dontdream.it/ 9 License: GPL v2 or later 10 License URI: https://www.gnu.org/licenses/gpl-2.0.html 9 11 Text Domain: menubar 10 12 */ 13 14 if (!defined ('ABSPATH')) exit; 11 15 12 16 if (!defined ('MENUBAR_TEMPLATES')) … … 32 36 $wpm_options->function_name = 'wpm_display_'; 33 37 $wpm_options->menu_type = 'Menu'; 34 $wpm_options->wpm_version = ' 5.9.4';38 $wpm_options->wpm_version = '6.0'; 35 39 36 40 include_once ('wpm-db.php'); -
menubar/tags/6.0/wpm-menu.php
r1257428 r3812169 1 1 <?php 2 3 if (!defined ('ABSPATH')) exit; 2 4 3 5 function wpm_out41 ($node_id, $html, $css) -
menubar/tags/6.0/wpm-tree.php
r1916062 r3812169 1 1 <?php 2 3 if (!defined ('ABSPATH')) exit; 2 4 3 5 function wpm_init_tree () … … 59 61 if ($parent_id > 0) 60 62 $node = _wpm_link_child ($parent_id, $node); 61 63 62 64 return $node; 63 65 } -
menubar/trunk/readme.txt
r3670779 r3812169 5 5 Requires at least: 6.1 6 6 Tested up to: 7.1 7 Stable tag: 5.9.47 Stable tag: 6.0 8 8 9 9 Single and multi-level menus for your WordPress site, styled with customizable menu templates. … … 35 35 == Changelog == 36 36 37 = 6.0 = 38 * Removed vulnerability - thanks to *iczdblindman* via patchstack.com 37 39 = 5.9.4 = 38 40 * Fixed a few notices related to *load_plugin_textdomain* -
menubar/trunk/templates/Basic_46/wpm3.php
r632724 r3812169 4 4 PHP script for the Basic_46 template 5 5 */ 6 7 if (!defined ('ABSPATH')) exit; 6 8 7 9 global $wpm_html_b46; -
menubar/trunk/templates/CSSmb_46/wpm3.php
r632724 r3812169 9 9 http://www.cssmenubuilder.com/home 10 10 */ 11 12 if (!defined ('ABSPATH')) exit; 11 13 12 14 global $wpm_html_c46; -
menubar/trunk/templates/LC1_46/wpm3.php
r632724 r3812169 9 9 http://www.solucija.com/ 10 10 */ 11 12 if (!defined ('ABSPATH')) exit; 11 13 12 14 global $wpm_html_l46; -
menubar/trunk/templates/Suckerfish_45/wpm3.php
r632724 r3812169 9 9 http://www.htmldog.com/articles/suckerfish/dropdowns/ 10 10 */ 11 12 if (!defined ('ABSPATH')) exit; 11 13 12 14 global $wpm_html_S45; -
menubar/trunk/templates/Superfish/wpm3.php
r2411871 r3812169 9 9 https://superfish.joelbirch.design/ 10 10 */ 11 12 if (!defined ('ABSPATH')) exit; 11 13 12 14 global $wpm_html_ssf; -
menubar/trunk/wpm-admin.php
r3070196 r3812169 1 <?php 2 3 if (!defined ('ABSPATH')) exit; 4 5 ?> 1 6 2 7 <script type='text/javascript'> … … 116 121 '&action=delete&menuid=' . $menuid . '&itemid=' . $item->id; 117 122 118 $up = $prev_id? "<a href=' $url_up' class='edit' title='".__('move up','menubar')."'>123 $up = $prev_id? "<a href='" . wp_nonce_url ($url_up, 'swap_' . $prev_id) . "' class='edit' title='".__('move up','menubar')."'> 119 124 <img src='$url/up.gif' /></a>": ""; 120 125 121 $down = $next_id? "<a href=' $url_down' class='edit' title='".__('move down','menubar')."'>126 $down = $next_id? "<a href='" . wp_nonce_url ($url_down, 'swap_' . $item->id) . "' class='edit' title='".__('move down','menubar')."'> 122 127 <img src='$url/down.gif' /></a>": ""; 123 128 … … 265 270 } 266 271 267 function wpm_get_vars ($vars)268 {269 foreach ($vars as $var)270 $GLOBALS[$var] = isset ($_REQUEST[$var])? trim (stripslashes ($_REQUEST[$var])): '';271 }272 273 272 function wpm_get_fields () 274 273 { 275 $exclude = array ('_wp_http_referer', '_wpnonce'); 274 $exclude = array ('_wp_http_referer', '_wpnonce'); 276 275 277 276 $fields = new stdClass; … … 303 302 } 304 303 305 function wpm_check_item ($order, $orderid, $fields) 306 { 307 } 308 309 wpm_get_vars (array ('submit', 'action', 'itemid', 'order', 'orderid', 'menuid', 'menuname', 'template')); 310 311 $msg = 0; 304 $msg = 0; 305 $submit = isset ($_REQUEST['submit'])? trim (stripslashes ($_REQUEST['submit'])): ''; 306 $action = isset ($_REQUEST['action'])? trim (stripslashes ($_REQUEST['action'])): ''; 307 $itemid = isset ($_REQUEST['itemid'])? (int)$_REQUEST['itemid']: 0; 308 $order = isset ($_REQUEST['order'])? (int)$_REQUEST['order']: 0; 309 $orderid = isset ($_REQUEST['orderid'])? (int)$_REQUEST['orderid']: 0; 310 $menuid = isset ($_REQUEST['menuid'])? (int)$_REQUEST['menuid']: 0; 311 $menuname = isset ($_REQUEST['menuname'])? trim (stripslashes ($_REQUEST['menuname'])): ''; 312 $template = isset ($_REQUEST['template'])? trim (stripslashes ($_REQUEST['template'])): ''; 312 313 313 314 switch ($submit) 314 315 { 315 case __('Reset Menubar', 'menubar'): 316 case __('Reset Menubar', 'menubar'): 316 317 317 318 check_admin_referer ('reset'); … … 322 323 323 324 break; 324 case __('Select Menu', 'menubar'): 325 326 break; 327 case __('Delete Menu', 'menubar'): 328 325 case __('Select Menu', 'menubar'): 326 327 break; 328 case __('Delete Menu', 'menubar'): 329 330 if (wpm_read_node ($menuid) === null) break; 329 331 check_admin_referer ('deletemenu'); 330 332 … … 338 340 339 341 break; 340 case __('Edit Menu', 'menubar'): 342 case __('Edit Menu', 'menubar'): 343 344 if (wpm_read_node ($menuid) === null) break; 341 345 342 346 $action = 'editmenu'; … … 347 351 348 352 break; 349 case __('Update Menu', 'menubar'): 350 353 case __('Update Menu', 'menubar'): 354 355 if (wpm_read_node ($menuid) === null) break; 351 356 check_admin_referer ('updatemenu_' . $menuid); 352 357 … … 404 409 case 'swap': 405 410 411 if (wpm_read_node ($itemid) === null) break; 412 check_admin_referer ('swap_' . $itemid); 413 406 414 wpm_swap_node ($itemid); 407 415 … … 409 417 case 'add': 410 418 419 if (wpm_read_node ($menuid) === null) break; 411 420 check_admin_referer ('add'); 412 421 … … 437 446 case 'delete': 438 447 448 if (wpm_read_node ($itemid) === null) break; 439 449 check_admin_referer ('delete_' . $itemid); 440 450 … … 447 457 case 'edit': 448 458 459 if (wpm_read_node ($menuid) === null) break; 460 if (wpm_read_node ($itemid) === null) break; 461 449 462 $item = wpm_read_node ($itemid); 450 463 include_once ('wpm-edit.php'); … … 456 469 case 'update': 457 470 471 if (wpm_read_node ($itemid) === null) break; 458 472 check_admin_referer ('update_' . $itemid); 459 473 … … 527 541 wp_nonce_field ('deletemenu'); 528 542 wpm_menu_dropdown ($menuid); ?> 529 <input type="submit" name="submit" value="<?php _e('Select Menu', 'menubar'); ?>" class="button" /> 530 <input type="submit" name="submit" value="<?php _e('Edit Menu', 'menubar'); ?>" class="button" /> 543 <input type="submit" name="submit" value="<?php _e('Select Menu', 'menubar'); ?>" class="button" /> 544 <input type="submit" name="submit" value="<?php _e('Edit Menu', 'menubar'); ?>" class="button" /> 531 545 <input type="submit" name="submit" value="<?php _e('Delete Menu', 'menubar'); ?>" class="button delete" /> 532 546 <?php } ?> 533 547 534 <input type="submit" name="submit" value="<?php _e('Add New Menu', 'menubar'); ?>" class="button" /> 548 <input type="submit" name="submit" value="<?php _e('Add New Menu', 'menubar'); ?>" class="button" /> 535 549 </fieldset> 536 550 </form> -
menubar/trunk/wpm-db.php
r3277427 r3812169 1 1 <?php 2 3 if (!defined ('ABSPATH')) exit; 2 4 3 5 $wpm_type_fields = array ( -
menubar/trunk/wpm-edit-menu.php
r1257428 r3812169 1 1 <?php 2 3 if (!defined ('ABSPATH')) exit; 2 4 3 5 if ($action == 'editmenu') { -
menubar/trunk/wpm-edit.php
r3277427 r3812169 1 1 <?php 2 3 if (!defined ('ABSPATH')) exit; 2 4 3 5 function wpm_item_form ($action, $menuid, $item=null) … … 107 109 <h2><?php echo $heading; ?></h2> 108 110 <?php echo $form; ?> 109 <input type="hidden" name="action" value="<?php echo $action; ?>" />110 <input type="hidden" name="menuid" value="<?php echo $menuid; ?>" />111 <input type="hidden" name="itemid" value="<?php echo $item->id; ?>" />111 <input type="hidden" name="action" value="<?php echo esc_attr ($action); ?>" /> 112 <input type="hidden" name="menuid" value="<?php echo esc_attr ($menuid); ?>" /> 113 <input type="hidden" name="itemid" value="<?php echo esc_attr ($item->id); ?>" /> 112 114 <?php wp_nonce_field($nonce_action); ?> 113 115 -
menubar/trunk/wpm-main.php
r3277427 r3812169 4 4 Plugin URI: https://dontdream.it/menubar/ 5 5 Description: Configurable menus with your choice of menu templates. 6 Version: 5.9.46 Version: 6.0 7 7 Author: Andrea Tarantini 8 8 Author URI: https://dontdream.it/ 9 License: GPL v2 or later 10 License URI: https://www.gnu.org/licenses/gpl-2.0.html 9 11 Text Domain: menubar 10 12 */ 13 14 if (!defined ('ABSPATH')) exit; 11 15 12 16 if (!defined ('MENUBAR_TEMPLATES')) … … 32 36 $wpm_options->function_name = 'wpm_display_'; 33 37 $wpm_options->menu_type = 'Menu'; 34 $wpm_options->wpm_version = ' 5.9.4';38 $wpm_options->wpm_version = '6.0'; 35 39 36 40 include_once ('wpm-db.php'); -
menubar/trunk/wpm-menu.php
r1257428 r3812169 1 1 <?php 2 3 if (!defined ('ABSPATH')) exit; 2 4 3 5 function wpm_out41 ($node_id, $html, $css) -
menubar/trunk/wpm-tree.php
r1916062 r3812169 1 1 <?php 2 3 if (!defined ('ABSPATH')) exit; 2 4 3 5 function wpm_init_tree () … … 59 61 if ($parent_id > 0) 60 62 $node = _wpm_link_child ($parent_id, $node); 61 63 62 64 return $node; 63 65 }
Note:
See TracChangeset
for help on using the changeset viewer.