• Resolved uniqcode

    (@uniqcode)


    Thanks for your plugin. The login and logout menu items work fine, but the Register one always appears disabled in the menu. To be clear, registration is enabled, and I can add a Register menu item, but on the front end it is greyed out and shows a “no entry” cursor when hovered. However, it actually works – it only *appears* disabled because it is being given class ‘disabled’. It seems the plugin does this always and I cannot for the life of me understand why it does it, but removing this line, and then removing and reinserting the menu item, fixes it.

    
    --- a/includes/classes/admin/menu-editor.php
    +++ b/includes/classes/admin/menu-editor.php
    @@ -74,7 +74,6 @@ class Menu_Editor {
                            array(
                                    'object'  => 'register',
                                    'title'   => __( 'Register', 'user-menus' ),
    -                               'classes' => array( 'disabled' ),
                            ),
                            array(
                                    'object' => 'logout',
    
    • This topic was modified 5 years, 11 months ago by uniqcode.
Viewing 1 replies (of 1 total)
  • Plugin Author Daniel Iser

    (@danieliser)

    @uniqcode – This likely means your theme is disabling all links with that class as its not something that should happen by default within WP. That said I see no reason we can’t remove it as all it does is pre-populate the “CSS Classes (optional)” field WP offers by default.

    Thanks for the report.

Viewing 1 replies (of 1 total)

The topic ‘Register link always appears disabled’ is closed to new replies.