WordPress.org

Ready to get started?Download WordPress

Forums

Plugin Login-Logout crashes WordPress (2 posts)

  1. webvitaly
    Member
    Posted 2 years ago #

    Plugin Login-Logout crashes WordPress 3.1.3 when you install it.
    It is very small plugin. It shows one widget with "login-logout" link instead of WordPress default widget.
    It uses such code to register widget:

    function login_logout_widget_init() {
    	register_widget('WP_Widget_Login_Logout');
    	do_action('widgets_init');
    }
    add_action('init', 'login_logout_widget_init', 1);

    Full code of the plugin.

    Maybe somebody could help or advise what is wrong in the code of the plugin?

  2. webvitaly
    Member
    Posted 2 years ago #

    I think, the problem is in this line:
    $this->WP_Widget('meta', __('Login-logout'), $widget_ops);
    and it conflicts with the default meta widget.

Topic Closed

This topic has been closed to new replies.

About this Topic