Closed sapayth closed 2 weeks ago
The pull request introduces minor CSS adjustments to the wpuf-eye
class, enhancing its horizontal positioning. Additionally, it modifies the is_submission_open
function in the Form.php
file to ensure a default post type is used when none is specified, improving robustness. Updates to the translation template file reflect changes in line references and timestamps without altering functionality. Overall, these changes maintain the existing layout while improving code reliability and translation management.
File | Change Summary |
---|---|
assets/css/frontend-forms.css | Adjusted right property of img.wpuf-eye from 0 to 1rem . |
assets/less/frontend-forms.less | Adjusted right property of img.wpuf-eye from 0 to 1rem . |
includes/Admin/Forms/Form.php | Added default value of 'post' for $post_type in is_submission_open function. |
languages/wp-user-frontend.pot | Updated timestamps and line references in the translation template file. |
Objective | Addressed | Explanation |
---|---|---|
Form id specific posts are not displaying on the dashboard (#508) | ❌ | The changes do not address the post display issue. |
bug
, needs: developer feedback
🐇 In fields of code, I hop and play,
With changes bright, I greet the day.
A little shift, a post type's grace,
Together we improve this space!
So let us cheer, for forms anew,
With CSS tweaks, our dreams come true! 🌼
includes/Admin/Forms/Form.php (2)
`185-185`: **Good use of null coalescing operator to assign default value.** Using the null coalescing operator here is a safe and concise way to ensure `$post_type` always has a valid value by assigning a default if `$form_settings['post_type']` is empty. This prevents potential issues that could arise from using an undefined or empty `$post_type` later in the code. --- `187-187`: **Using `$post_type` variable improves code readability and maintainability.** The change to use the `$post_type` variable here, instead of directly accessing `$form_settings['post_type']`, makes the code more readable and maintainable. It avoids duplication of the post type value and is consistent with the previous change that initializes `$post_type` with a default value.
fixes #508
related PR
What we have to do:
Add the asterisk for the required password and confirm the password (only missing on the form preview), live is okay. Move the password view/eye icon inside the password field.
Summary by CodeRabbit
wpuf-eye
image element in forms.