Changeset 13366
- Timestamp:
- 02/24/2010 08:06:36 AM (15 years ago)
- Location:
- trunk
- Files:
-
- 3 added
- 1 deleted
- 3 edited
- 1 moved
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/menu.php
r13339 r13366 109 109 $submenu['themes.php'][10] = array(_x('Editor', 'theme editor'), 'edit_themes', 'theme-editor.php'); 110 110 $submenu['themes.php'][15] = array(__('Add New Themes'), 'install_themes', 'theme-install.php'); 111 $submenu['themes.php'][20] = array(__('Menus'), 'switch_themes', ' custom-navigation.php');111 $submenu['themes.php'][20] = array(__('Menus'), 'switch_themes', 'nav-menus.php'); 112 112 113 113 $update_plugins = get_site_transient( 'update_plugins' ); -
trunk/wp-admin/nav-menus.php
r13363 r13366 28 28 29 29 require_once('admin-header.php'); 30 require_once (ABSPATH . WPINC . '/custom-navigation.php');30 require_once(ABSPATH . 'wp-admin/includes/nav-menu.php'); 31 31 32 32 function wp_reset_nav_menu() { … … 183 183 <li><?php echo esc_html( $menu->name ) . $sep; ?></li> 184 184 <?php } else { ?> 185 <li><a href=' custom-navigation.php?edit_menu=<?php echo esc_attr($menu->term_id); ?>'><?php echo esc_html( $menu->name ); ?></a><?php echo $sep; ?></li>185 <li><a href='nav-menus.php?edit_menu=<?php echo esc_attr($menu->term_id); ?>'><?php echo esc_html( $menu->name ); ?></a><?php echo $sep; ?></li> 186 186 <?php } 187 187 } … … 201 201 ?> 202 202 <?php echo $messagesdiv; ?> 203 <form onsubmit="updatepostdata()" action=" custom-navigation.php" method="post" enctype="multipart/form-data">203 <form onsubmit="updatepostdata()" action="nav-menus.php" method="post" enctype="multipart/form-data"> 204 204 205 205 <input type="hidden" name="licount" id="licount" value="0" /> … … 224 224 $output_type = "backend"; 225 225 // MAIN OUTPUT FUNCTION 226 wp_ custom_navigation_output( 'type='.$output_type.'&name='.$menu_title.'&id='.$menu_selected_id );226 wp_print_nav_menu( 'type='.$output_type.'&name='.$menu_title.'&id='.$menu_selected_id ); 227 227 } 228 228 ?> … … 383 383 $intCounter = 0; 384 384 //Get default Pages 385 $intCounter = wp_ custom_nav_get_pages($intCounter,'default');385 $intCounter = wp_nav_menu_get_pages($intCounter,'default'); 386 386 ?> 387 387 </ul> … … 463 463 <?php 464 464 // Get default Categories 465 $intCounter = wp_ custom_nav_get_categories($intCounter, 'default');465 $intCounter = wp_nav_menu_get_categories($intCounter, 'default'); 466 466 ?> 467 467 </ul> -
trunk/wp-includes/general-template.php
r13361 r13366 2216 2216 } 2217 2217 2218 /**2219 * Outputs a navigation menu.2220 *2221 * @since 3.0.02222 *2223 * @param array $args Arguments2224 */2225 function wp_nav_menu( $args = array() ) {2226 require_once (ABSPATH . WPINC . '/custom-navigation.php');2227 wp_custom_navigation_output($args);2228 }2229 2230 2218 ?> -
trunk/wp-settings.php
r13268 r13366 129 129 require( ABSPATH . WPINC . '/http.php' ); 130 130 require( ABSPATH . WPINC . '/widgets.php' ); 131 require( ABSPATH . WPINC . '/nav-menu.php' ); 132 require( ABSPATH . WPINC . '/nav-menu-template.php' ); 131 133 132 134 // Load multisite-specific files.
Note: See TracChangeset
for help on using the changeset viewer.