Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Wrong settings option assign #1277

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from
Open

Conversation

mmarj
Copy link
Contributor

@mmarj mmarj commented May 20, 2022

This form should come from the WPUF > My Account > Submission Form

This form should come from the My Account > Submission Form (https://prnt.sc/gkQd5KNKziMq)
Copy link
Contributor

@zamandevs zamandevs left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should be a fallback. seems the default fallback won't work. so we need to handle both scenario:
$selected_form = wpuf_get_option( 'post_submission_form', 'wpuf_my_account' ); $selected_form = empty( $selected_form ) || 'publish' !== get_post_status ( intval( $selected_form ) ) ? wpuf_get_option( 'default_post_form', 'wpuf_frontend_posting' ) : $selected_form ;

@zamandevs zamandevs added the needs: developer feedback This PR needs developer feedback or code changes label Jun 6, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
needs: developer feedback This PR needs developer feedback or code changes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants