Forums

[resolved] Replace standard WordPress 3 Appearance Menus Screen (4 posts)

  1. ummi69
    Member
    Posted 10 months ago #

    Hi,

    I have wp 3.4, 6 menus, 53 menu items. I change via drag-drop an menu item postion and click "save" . function "wp_setup_nav_menu_item" calls 2862! times and wpdb sends 1399! queries. admin menu page loads > 10 sec ???
    are there plugins for admin menu screen to completely replace?

    very thanks

  2. esmi
    Theme Diva & Forum Moderator
    Posted 10 months ago #

    Have you tried:

    - deactivating all plugins to see if this resolves the problem. If this works, re-activate the plugins one by one until you find the problematic plugin(s).

    - switching to the Twenty Eleven theme to rule out any theme-specific problems.

    - resetting the plugins folder by FTP or PhpMyAdmin. Sometimes, an apparently inactive plugin can still cause problems.

    - re-uploading all files & folders - except the wp-content folder - from a fresh download of WordPress.

  3. ummi69
    Member
    Posted 10 months ago #

    Hi,

    i setup new empty wp 3.4.1.
    i have menu width 53 items.
    on update.
    in wp-admin\nav-menus.php calls for each item
    ..
    foreach( (array) $_POST['menu-item-db-id'] as $_key => $k )
    ...
    $menu_item_db_id = wp_update_nav_menu_item( $nav_menu_selected_id, ( $_POST['menu-item-db-id'][$_key] != $_key ? 0 : $_key ), $args );

    in wp-includes\nav-menu.php
    function wp_update_nav_menu_item( $menu_id = 0, $menu_item_db_id = 0, $menu_item_data = array() )
    call
    $menu_items = 0 == $menu_id ? array() : (array) wp_get_nav_menu_items( $menu_id, array( 'post_status' => 'publish,draft' ) );
    function wp_get_nav_menu_items( $menu, $args = array() ) {
    call
    $items always all this same menu items (53 )
    $items = array_map( 'wp_setup_nav_menu_item', $items );

    "wp_setup_nav_menu_item" calls 53x53 times!!

    is this correct???

    thanks

  4. ummi69
    Member
    Posted 10 months ago #

    hi,

    WP PHP programmer, you can all my post delete!

    i correct!
    "wp_setup_nav_menu_item" calls (53+1)x53 times!!

Reply

You must log in to post.

About this Topic