You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Using the shortcode [pmpro_member_directory layout="table"] into an Elementor modal, all page footer declared styles and scripts are applied only when the modal is open. The WpAdmin Bar is also hidden until modal is open.
Coding bug description :
All html tags usually placed after the modal div tags are encapsulated into it.
Possible cause :
directory.php:596 - The closing bracket '}' at this line seems to close the layout else statement opened at line 458.
Because the closing bracket is after the directory div closing tag, when layout is set to table the directory div tag is not closed nor do_action executed.
Fix: Change the following code into directory.php:
I tested the fix and it resolve the bug on my side but I am not sure if moving this closing bracket was the right way to fix. Convert the shortcode function to a class and separate HTML and PHP into different method could prevent this kind of bugs and facilitate debugging.
The text was updated successfully, but these errors were encountered:
Visual symptoms :
Using the shortcode
[pmpro_member_directory layout="table"]
into an Elementor modal, all page footer declared styles and scripts are applied only when the modal is open. The WpAdmin Bar is also hidden until modal is open.Coding bug description :
All html tags usually placed after the modal div tags are encapsulated into it.
Possible cause :
directory.php:596 - The closing bracket '}' at this line seems to close the layout else statement opened at line 458.
Because the closing bracket is after the directory div closing tag, when layout is set to table the directory div tag is not closed nor do_action executed.
Fix: Change the following code into directory.php:
To:
I tested the fix and it resolve the bug on my side but I am not sure if moving this closing bracket was the right way to fix. Convert the shortcode function to a class and separate HTML and PHP into different method could prevent this kind of bugs and facilitate debugging.
The text was updated successfully, but these errors were encountered: