WordPress.org

Ready to get started?Download WordPress

Forums

WP Sliding Login/Dashboard Panel
An easily fixed bug - missing an else (1 post)

  1. Sean Donovan
    Member
    Posted 2 years ago #

    On line 144 of wp-sliding-login-dashboard-panel.php there is a missing "else" before the "_e('Close');". If the user is logged in and the admin has specified custom HTML, it echos a "Close" anyway. Here is what it should be:

    <a id="close" style="display: none;" class="close" href="#"><?php if ($wp_sliding_panel_replace_default) echo $wp_sliding_panel_li_close_label; else _e('Close');?></a>

    The one below it for logged in users on line 206 works correctly.
    Cheers, Sean.

    http://wordpress.org/extend/plugins/wp-sliding-logindashboard-panel/

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic