diff --git a/includes/Ajax/Frontend_Form_Ajax.php b/includes/Ajax/Frontend_Form_Ajax.php index 630617651..673eeb619 100644 --- a/includes/Ajax/Frontend_Form_Ajax.php +++ b/includes/Ajax/Frontend_Form_Ajax.php @@ -19,6 +19,10 @@ class Frontend_Form_Ajax { private $expired_post_status = 'wpuf-expired_post_status'; private $post_expiration_message = 'wpuf-post_expiration_message'; + /** + * @var array + */ + private $form_fields; /** * New/Edit post submit handler diff --git a/includes/Frontend.php b/includes/Frontend.php index 21b10b4fd..7567656aa 100644 --- a/includes/Frontend.php +++ b/includes/Frontend.php @@ -180,12 +180,9 @@ public function enqueue_scripts() { private function dokan_is_seller_dashboard() { return class_exists( 'WeDevs_Dokan' ) && function_exists( 'dokan_is_seller_dashboard' ) - && dokan_is_seller_dashboard() - && ! empty( $wp->query_vars['posts'] ); + && dokan_is_seller_dashboard(); } - - /** * Show/hide admin bar to the permitted user level * diff --git a/includes/Frontend_Render_Form.php b/includes/Frontend_Render_Form.php index a3d49e3b9..12407ac1a 100644 --- a/includes/Frontend_Render_Form.php +++ b/includes/Frontend_Render_Form.php @@ -224,7 +224,6 @@ public function render_form( $form_id, $post_id = null, $atts = [], $form = null