Skip to content

Commit

Permalink
Merge pull request #1481 from sapayth/fix/required_asterisk_on_passwo…
Browse files Browse the repository at this point in the history
…rd_label

fix: required asterisk on password label
  • Loading branch information
sapayth authored Sep 19, 2024
2 parents e3f2bf8 + 091f418 commit 9466787
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 9 deletions.
2 changes: 1 addition & 1 deletion assets/css/frontend-forms.css
Original file line number Diff line number Diff line change
Expand Up @@ -1828,7 +1828,7 @@ body .wpuf-attachment-upload-filelist + .moxie-shim {
}
img.wpuf-eye {
position: absolute;
right: 0;
right: 1rem;
top: 50%;
transform: translateY(-50%) translateX(-6%);
}
2 changes: 1 addition & 1 deletion assets/less/frontend-forms.less
Original file line number Diff line number Diff line change
Expand Up @@ -2116,7 +2116,7 @@ ul.wpuf-form{

img.wpuf-eye {
position: absolute;
right: 0;
right: 1rem;
top: 50%;
transform: translateY(-50%) translateX(-6%);
}
4 changes: 3 additions & 1 deletion includes/Admin/Forms/Form.php
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,9 @@ public function is_submission_open( $form, $form_settings ) {
return [ $user_can_post, $info ];
}

$has_post_count = $current_user->subscription()->has_post_count( $form_settings['post_type'] );
$post_type = ! empty( $form_settings['post_type'] ) ? $form_settings['post_type'] : 'post';

$has_post_count = $current_user->subscription()->has_post_count( $post_type );

if ( $current_user->subscription()->current_pack_id() && ! $has_post_count ) {
$user_can_post = 'no';
Expand Down
12 changes: 6 additions & 6 deletions languages/wp-user-frontend.pot
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ msgid ""
msgstr ""
"Project-Id-Version: WP User Frontend 4.0.11\n"
"Report-Msgid-Bugs-To: https://wedevs.com/contact/\n"
"POT-Creation-Date: 2024-09-17 06:55:34+00:00\n"
"POT-Creation-Date: 2024-09-17 09:28:09+00:00\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=utf-8\n"
"Content-Transfer-Encoding: 8bit\n"
Expand Down Expand Up @@ -1332,7 +1332,7 @@ msgstr ""
#: admin/template.php:185 includes/Admin/Forms/Admin_Template.php:212
#: includes/Fields/Field_Contract.php:687
#: includes/Fields/Form_Field_Textarea.php:12
#: includes/Fields/Form_Field_Textarea.php:125
#: includes/Fields/Form_Field_Textarea.php:132
msgid "Textarea"
msgstr ""

Expand Down Expand Up @@ -2596,19 +2596,19 @@ msgstr ""
msgid "Others"
msgstr ""

#: includes/Admin/Forms/Form.php:189 includes/Admin/Forms/Form.php:239
#: includes/Admin/Forms/Form.php:191 includes/Admin/Forms/Form.php:241
msgid "Post Limit Exceeded for your purchased subscription pack."
msgstr ""

#: includes/Admin/Forms/Form.php:212
#: includes/Admin/Forms/Form.php:214
#. translators: %s: Pack page link
msgid ""
"You need to <a href=\"%s\">purchase a subscription package</a> to post in "
"this form"
msgstr ""

#: includes/Admin/Forms/Form.php:219 includes/Admin/Forms/Form.php:252
#: includes/Admin/Forms/Form.php:259
#: includes/Admin/Forms/Form.php:221 includes/Admin/Forms/Form.php:254
#: includes/Admin/Forms/Form.php:261
msgid "Payment type not selected for this form. Please contact admin."
msgstr ""

Expand Down

0 comments on commit 9466787

Please sign in to comment.