Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Custom menu locations overridden when faustwp plugin is active #1925

Closed
1 task done
josephfusco opened this issue Aug 5, 2024 · 0 comments · Fixed by #1926
Closed
1 task done

Custom menu locations overridden when faustwp plugin is active #1925

josephfusco opened this issue Aug 5, 2024 · 0 comments · Fixed by #1926
Labels
type: bug Issue that causes incorrect or unexpected behavior

Comments

@josephfusco
Copy link
Member

Description

When the FaustWP plugin is active, any additional menu locations registered by other plugins or themes are ignored. This behavior is unexpected, as it prevents the registration and use of custom menu locations outside of those defined by a user inside of FaustWP.

Expected Behavior:

Custom menu locations registered by themes or other plugins should appear in the WordPress admin under Appearance > Menus, allowing them to be assigned and used normally.

Actual Behavior:

With FaustWP active, custom menu locations registered by themes or other plugins doo not appear in the admin interface and. cannot be assigned or used.

Steps to reproduce

  1. Install and activate the FaustWP plugin
  2. Register a custom menu location from another plugin or theme
    <?php
    /**
     * Plugin Name: Test Plugin
     */
    
    function register_my_menus() {
        register_nav_menu( 'test-primary', __( 'Test Primary Menu' ) );
    }
    add_action( 'after_setup_theme', 'register_my_menus' );
  3. Check Appearance > Menus and observe that the custom menu location (test-primary) is not listed
  4. Deactivate the FaustWP plugin and observe that the custom menu location now appears.

Additional context

No response

@faustwp/core Version

N/A

@faustwp/cli Version

N/A

FaustWP Plugin Version

1.3.2

WordPress Version

6.6.1

Additional environment details

No response

Please confirm that you have searched existing issues in the repo.

  • Yes
@github-project-automation github-project-automation bot moved this to 🆕 Backlog in Headless OSS Aug 5, 2024
@josephfusco josephfusco added the type: bug Issue that causes incorrect or unexpected behavior label Aug 5, 2024
@josephfusco josephfusco changed the title Custom Menu Locations Overidden When FaustWP Plugin is Active Custom menu locations overidden when FaustWP plugin is active Aug 5, 2024
@josephfusco josephfusco changed the title Custom menu locations overidden when FaustWP plugin is active Custom menu locations overidden when faustwp plugin is active Aug 5, 2024
@josephfusco josephfusco changed the title Custom menu locations overidden when faustwp plugin is active Custom menu locations overridden when faustwp plugin is active Aug 5, 2024
@github-project-automation github-project-automation bot moved this from 🆕 Backlog to ✅ Closed in Headless OSS Aug 8, 2024
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
type: bug Issue that causes incorrect or unexpected behavior
Projects
Archived in project
Development

Successfully merging a pull request may close this issue.

1 participant