WordPress.org

Forums

Erident Custom Login and Dashboard
[resolved] [Minor bugs+fixes] Undefined variables messages (4 posts)

  1. jrf
    Member
    Posted 2 years ago #

    Hiya,

    Just now testing your plugin and I run into a few errors.

    Please accept the fixes below as a compliment to your plugin.

    Bug fixes:

    Line 261-262 - to allow HTML input to be displayed properly:

    <input class="er-textfield" name="wp_erident_dashboard_data_left" type="text" id="wp_erident_dashboard_data_left"
    value="<?php echo get_option('wp_erident_dashboard_data_left'); ?>" placeholder="Text for dashboard left side footer" />

    replace with:

    <input class="er-textfield" name="wp_erident_dashboard_data_left" type="text" id="wp_erident_dashboard_data_left"
    value="<?php echo esc_html( get_option('wp_erident_dashboard_data_left') ); ?>" placeholder="Text for dashboard left side footer" />

    Line 269-270 - to allow HTML input to be displayed properly:

    <td><input class="er-textfield" name="wp_erident_dashboard_data_right" type="text" id="wp_erident_dashboard_data_right"
    value="<?php echo get_option('wp_erident_dashboard_data_right'); ?>" placeholder="Text for dashboard left right footer"  />

    replace with:

    <td><input class="er-textfield" name="wp_erident_dashboard_data_right" type="text" id="wp_erident_dashboard_data_right"
    value="<?php echo esc_html( get_option('wp_erident_dashboard_data_right') ); ?>" placeholder="Text for dashboard left right footer"  />

    Line 330-331:

    default:
    			break;

    Replace with:

    default:
    			$er_screen_a=$er_screen_b=$er_screen_c=$er_screen_d="";
    			break;

    Line 442-443:

    default:
    			break;

    replace with:

    default:
    			$er_a=$er_b=$er_c=$er_d=$er_e="";
    			break;

    Line 519-520:

    default:
    			break;

    replace with:

    default:
    			$er_login_a=$er_login_b=$er_login_c=$er_login_d="";
    			break;

    Line 570:

    if($check_sh == 'Yes') { $sx = "checked"; } else { $sy = "checked"; } ?>

    replace with:

    if($check_sh == 'Yes') { $sx = "checked"; $sy = ''; } else { $sy = "checked"; $sx = ''; } ?>

    Line 608:

    if($check == 'Yes') { $x = "checked"; } else { $y = "checked"; } ?>

    replace with:

    if($check == 'Yes') { $x = "checked"; $y = ''; } else { $y = "checked"; $x = ''; } ?>

    Hope this helps!

    Smile,
    Juliette

  2. Libin
    Member
    Plugin Author

    Posted 2 years ago #

    Oh thank you so much dude. You are awesome.

    I will fix these minor errors in next release.

  3. jrf
    Member
    Posted 2 years ago #

    Glad to hear you'll include them in the next release. I'll forgive you the 'dude'...

  4. Libin
    Member
    Plugin Author

    Posted 2 years ago #

    Hey, I had fixed those bugs and released the new version.

    Once again thanks for the support.

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Erident Custom Login and Dashboard
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic