[Plugin: Erident Custom Login and Dashboard] [Minor bugs fixes] Undefined variables messages
-
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
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘[Plugin: Erident Custom Login and Dashboard] [Minor bugs fixes] Undefined variables messages’ is closed to new replies.