Changeset 3411552
- Timestamp:
- 12/05/2025 12:31:15 AM (4 months ago)
- Location:
- page-navigation-by-menu/trunk
- Files:
-
- 2 edited
-
index.php (modified) (2 diffs)
-
readme.txt (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
page-navigation-by-menu/trunk/index.php
r3202461 r3411552 12 12 * Plugin URI: 13 13 * Description: Output navigation 14 * Version: 1.1. 014 * Version: 1.1.1 15 15 * Requires at least: 4.9 16 16 * Requires PHP: 5.6 … … 40 40 * @return string resulting HTML 41 41 */ 42 $ primary_menu = get_nav_menu_locations()['primary'];42 $mie_primary_menu = isset(get_nav_menu_locations()['primary']) ? get_nav_menu_locations()['primary'] : null; 43 43 44 44 function get_the_pages_navigation( $menu = -1, $start_position = 0, $end_position = 0 ) { 45 global $mie_primary_menu; 46 45 47 if ( $menu === -1 ) { 46 $menu = $primary_menu; 48 if (is_null($mie_primary_menu)) { 49 return ''; 50 } 51 $menu = $mie_primary_menu; 47 52 }; 48 53 if ( $menu ) { -
page-navigation-by-menu/trunk/readme.txt
r3411547 r3411552 5 5 Tested up to: 6.9 6 6 Requires PHP: 5.6 7 Stable tag: 1.1. 07 Stable tag: 1.1.1 8 8 License: Mozilla Public License Version 2.0 9 9 License URI: https://www.mozilla.org/en-US/MPL/2.0
Note: See TracChangeset
for help on using the changeset viewer.