diff --git a/wp-admin/custom-navigation.php b/wp-admin/custom-navigation.php
index 8f61ebc62f..660d885e8a 100644
--- a/wp-admin/custom-navigation.php
+++ b/wp-admin/custom-navigation.php
@@ -176,22 +176,19 @@ function wp_custom_navigation() {
$messagesdiv = '
' . __('The Custom Menu has not been Enabled yet. Please enable it in order to use it -------->') . '
';
- }
-
?>
@@ -215,9 +212,9 @@ function wp_custom_navigation() {
0 ) {
- //SET output type
+ // SET output type
$output_type = "backend";
- //MAIN OUTPUT FUNCTION
+ // MAIN OUTPUT FUNCTION
wp_custom_navigation_output( 'type='.$output_type.'&name='.$menu_title.'&id='.$menu_selected_id );
}
?>
@@ -248,7 +245,7 @@ function wp_custom_navigation() {
term_id ) || ( $menu_selected_id == $menu->term_id ) )
@@ -314,16 +311,12 @@ function wp_custom_navigation() {
0 )
@@ -381,7 +374,7 @@ function wp_custom_navigation() {
$page_name .= htmlentities($post->post_title).'|';
}
} else {
- $page_name = "No pages available";
+ $page_name = __('No pages available');
}
?>
@@ -448,7 +441,7 @@ function wp_custom_navigation() {
$cat_name = '';
//CHECK for results
if ( $categories ) {
- foreach( $categories as $category ) {
+ foreach ( $categories as $category ) {
$cat_id = $category->term_id;
$cat_args = array(
@@ -507,8 +500,8 @@ function wp_custom_navigation() {
@@ -557,7 +550,6 @@ function wp_custom_navigation() {
0 ) {
@@ -57,110 +57,70 @@ function wp_custom_navigation_delete_menu( $menu_term_id ) {
}
}
-/*-----------------------------------------------------------------------------------*/
-/* Custom Navigation Functions */
-/* wp_custom_navigation_output() displays the menu in the back/frontend
-/* wp_custom_navigation_sub_items() is a recursive sub menu item function
-/* wp_custom_nav_get_pages()
-/* wp_custom_nav_get_categories()
-/* wp_custom_navigation_default_sub_items() is a recursive sub menu item function
-/*-----------------------------------------------------------------------------------*/
+function setup_menu_item($menu_item) {
+ global $parent_menu_order;
-/*-----------------------------------------------------------------------------------*/
-/* Main Output Function
-/* args list
-/* type - frontend or backend
-/* name - name of your menu
-/* id - id of menu in db
-/* desc - 1 = show descriptions, 2 = dont show descriptions
-/* before_title - html before title is outputted in