Support » Plugin: WPFront User Role Editor » Infinite loop in the WP Customizer

  • I am using ‘User Restrictions’ in my mobile-only navigation menu. If I set it to ‘Guest Users’ for a (custom link) menu item, the WP Customizer gets into an infinite refresh loop.

    This is probably related to this old bug:

    But a workaround would be appreciated. Nav menu users restrictions could be disabled if is_customize_preview() is true.

    The page I need help with: [log in to see the link]

Viewing 1 replies (of 1 total)
  • Thread Starter therealgilles


    Here is a possible fix in wpfront-user-role-editor/classes/class-wpfront-user-role-editor-nav-menu.php:

            public function override_nav_menu_items($items, $menu, $args) {
                // if (is_admin()) {
                if (is_admin() || is_customize_preview()) {
                    return $items;

    Please advise (and hopefully fix).

Viewing 1 replies (of 1 total)
  • The topic ‘Infinite loop in the WP Customizer’ is closed to new replies.