Plugin Directory

Changeset 2068989


Ignore:
Timestamp:
04/15/2019 06:03:58 PM (7 years ago)
Author:
rabbii
Message:

deploy from git

Location:
wp-user-frontend
Files:
12 edited
89 copied

Legend:

Unmodified
Added
Removed
  • wp-user-frontend/tags/3.1.3/assets/js/wpuf-form-builder-components.js

    r2060958 r2068989  
    781781 * Field template: Column Field
    782782 */
     783const mixins = [
     784    wpuf_mixins.form_field_mixin
     785];
     786
     787if (window.wpuf_forms_mixin_builder_stage) {
     788    mixins.push(window.wpuf_forms_mixin_builder_stage);
     789}
     790
     791if (window.weforms_mixin_builder_stage) {
     792    mixins.push(window.weforms_mixin_builder_stage);
     793}
     794
    783795Vue.component('form-column_field', {
    784796    template: '#tmpl-wpuf-form-column_field',
    785797
    786     mixins: [
    787         wpuf_mixins.form_field_mixin,
    788         window.wpuf_forms_mixin_builder_stage
    789     ],
     798    mixins: mixins,
    790799
    791800    data() {
  • wp-user-frontend/tags/3.1.3/class/payment.php

    r1910827 r2068989  
    216216
    217217                                $current_pack = $current_user->subscription()->current_pack();
    218                                 if ( $force_pack && is_wp_error( $current_pack ) && $fallback_enabled ) {
     218                                if ( $force_pack && !is_wp_error( $current_pack ) && $fallback_enabled ) {
    219219                                    $post_cost = $fallback_cost;
    220220                                    $billing_amount = apply_filters( 'wpuf_payment_amount', $fallback_cost );
  • wp-user-frontend/tags/3.1.3/class/subscription.php

    r1967652 r2068989  
    451451        $has_post         = $current_user->subscription()->has_post_count( $form_settings['post_type'] );
    452452
    453         if ( $payment_options && $force_pack && is_wp_error( $current_pack ) && $fallback_cost && !$has_post )  {
     453
     454        if ( $payment_options && $force_pack && !is_wp_error( $current_pack ) && $fallback_cost && !$has_post )  {
    454455            $postdata['post_status'] = 'pending';
    455456        }
     
    496497            $old_status = $post->post_status;
    497498            wp_transition_post_status( $post_status, $old_status, $post );
    498             // wp_update_post( array( 'ID' => $post_id , 'post_status' => $post_status) );
    499 
    500             // decrease the post count, if not umlimited
     499
     500            // decrease the post count, if not unlimited
    501501            $wpuf_post_status = get_post_meta( $post_id, 'wpuf_post_status', true );
    502502
     
    507507                }
    508508            }
     509
    509510            //meta added to make post have flag if post is published
    510511            update_post_meta( $post_id, 'wpuf_post_status', 'published' );
    511512
    512513
    513         } elseif ( !$force_pack && ( $pay_per_post || ( $fallback_cost && !$has_post ) ) ) {
     514        } elseif ( $force_pack && $fallback_cost && !$has_post ) {
    514515            //there is some error and it needs payment
    515516            //add a uniqid to track the post easily
  • wp-user-frontend/tags/3.1.3/includes/countries-formated.php

    r1833388 r2068989  
    7575    ),
    7676    array(
    77         'name' => 'Bangladesh',
     77        'name' => __('Bangladesh', 'wp-user-frontend'),
    7878        'code' => 'BD',
    7979    ),
  • wp-user-frontend/tags/3.1.3/includes/fields/class-field-checkbox.php

    r2060958 r2068989  
    3434                        $selected = $value;
    3535                    } else {
    36                         $selected = explode( "|", $value );
     36                        $selected = array();
     37                        $selected_options = explode( "|", $value );
     38
     39                        foreach ($selected_options as $option) {
     40                            array_push($selected, trim($option));
     41                        }
    3742                    }
    3843                } else {
     
    4651    ?>
    4752
    48         <div class="wpuf-fields" data-required="<?php echo $field_settings['required'] ?>" data-type="checkbox">
     53        <div class="wpuf-fields" data-required="<?php echo $field_settings['required'] ?>" data-type="radio">
    4954
    5055            <?php
  • wp-user-frontend/tags/3.1.3/languages/wp-user-frontend.pot

    r2060958 r2068989  
    33msgid ""
    44msgstr ""
    5 "Project-Id-Version: WP User Frontend 3.1.2\n"
     5"Project-Id-Version: WP User Frontend 3.1.3\n"
    66"Report-Msgid-Bugs-To: https://wedevs.com/contact/\n"
    7 "POT-Creation-Date: 2019-04-01 11:49:50+00:00\n"
     7"POT-Creation-Date: 2019-04-15 17:54:24+00:00\n"
    88"MIME-Version: 1.0\n"
    99"Content-Type: text/plain; charset=utf-8\n"
     
    143143#: admin/class-admin-subscription.php:216
    144144#: admin/class-admin-subscription.php:570 class/frontend-account.php:244
    145 #: class/subscription.php:866 includes/class-user-subscription.php:307
     145#: class/subscription.php:867 includes/class-user-subscription.php:307
    146146#: templates/subscriptions/pack-details.php:25
    147147msgid "Free"
     
    157157#: includes/fields/class-abstract-fields.php:358
    158158#: includes/fields/class-abstract-fields.php:426
    159 #: includes/fields/class-field-checkbox.php:90
     159#: includes/fields/class-field-checkbox.php:95
    160160#: includes/fields/class-field-radio.php:89 includes/free/form-element.php:477
    161161#: wpuf.php:706
     
    172172#: includes/fields/class-abstract-fields.php:359
    173173#: includes/fields/class-abstract-fields.php:427
    174 #: includes/fields/class-field-checkbox.php:91
     174#: includes/fields/class-field-checkbox.php:96
    175175#: includes/fields/class-field-radio.php:90 includes/free/form-element.php:478
    176176#: wpuf.php:707
     
    305305#: admin/class-admin-subscription.php:754
    306306#: admin/form-builder/class-wpuf-admin-form-builder.php:265
    307 #: class/payment.php:199 class/subscription.php:779
     307#: class/payment.php:199 class/subscription.php:780
    308308#: includes/class-list-table-subscribers.php:128
    309309#: lib/class-wedevs-insights.php:667 templates/dashboard/subscription.php:61
     
    582582
    583583#: admin/form-builder/class-wpuf-admin-form-builder.php:268
    584 #: includes/fields/class-field-checkbox.php:119
     584#: includes/fields/class-field-checkbox.php:124
    585585#: includes/fields/class-field-dropdown.php:101
    586586#: includes/fields/class-field-multidropdown.php:93
     
    38443844msgstr ""
    38453845
    3846 #: class/subscription.php:747
     3846#: class/subscription.php:748
    38473847msgid "Payment is complete"
    38483848msgstr ""
    38493849
    3850 #: class/subscription.php:747
     3850#: class/subscription.php:748
    38513851msgid "Congratulations, your payment has been completed!"
    38523852msgstr ""
    38533853
    3854 #: class/subscription.php:751 class/subscription.php:755
     3854#: class/subscription.php:752 class/subscription.php:756
    38553855msgid "Please buy a subscription pack to post"
    38563856msgstr ""
    38573857
    3858 #: class/subscription.php:769
     3858#: class/subscription.php:770
    38593859msgid "<p><i>You have a subscription pack activated. </i></p>"
    38603860msgstr ""
    38613861
    3862 #: class/subscription.php:770
     3862#: class/subscription.php:771
    38633863msgid "<p><i>Pack name: %s </i></p>"
    38643864msgstr ""
    38653865
    3866 #: class/subscription.php:772
     3866#: class/subscription.php:773
    38673867msgid "<p><i>To cancel the pack, press the following cancel button</i></p>"
    38683868msgstr ""
    38693869
    3870 #: class/subscription.php:816
     3870#: class/subscription.php:817
    38713871msgid "Day"
    38723872msgid_plural "Days"
     
    38743874msgstr[1] ""
    38753875
    3876 #: class/subscription.php:817
     3876#: class/subscription.php:818
    38773877msgid "Week"
    38783878msgid_plural "Weeks"
     
    38803880msgstr[1] ""
    38813881
    3882 #: class/subscription.php:818
     3882#: class/subscription.php:819
    38833883msgid "Month"
    38843884msgid_plural "Months"
     
    38863886msgstr[1] ""
    38873887
    3888 #: class/subscription.php:819
     3888#: class/subscription.php:820
    38893889msgid "Year"
    38903890msgid_plural "Years"
     
    38923892msgstr[1] ""
    38933893
    3894 #: class/subscription.php:841
     3894#: class/subscription.php:842
    38953895msgid "One time payment"
    38963896msgstr ""
    38973897
    3898 #: class/subscription.php:848
     3898#: class/subscription.php:849
    38993899msgid "Every"
    39003900msgstr ""
    39013901
    3902 #: class/subscription.php:849
     3902#: class/subscription.php:850
    39033903msgid "for"
    39043904msgstr ""
    39053905
    3906 #: class/subscription.php:849
     3906#: class/subscription.php:850
    39073907msgid "installments"
    39083908msgstr ""
    39093909
    3910 #: class/subscription.php:855
     3910#: class/subscription.php:856
    39113911msgid "Trial available for first %s %s"
    39123912msgstr ""
    39133913
    3914 #: class/subscription.php:859
     3914#: class/subscription.php:860
    39153915msgid "Buy Now"
    39163916msgstr ""
    39173917
    3918 #: class/subscription.php:863
     3918#: class/subscription.php:864
    39193919msgid "Sign Up"
    39203920msgstr ""
    39213921
    3922 #: class/subscription.php:926
     3922#: class/subscription.php:927
    39233923msgid "There is a <strong>%s</strong> charge to add a new post."
    39243924msgstr ""
    39253925
    3926 #: class/subscription.php:943
     3926#: class/subscription.php:944
    39273927msgid ""
    39283928"Your Subscription pack exhausted. There is a <strong>%s</strong> charge to "
     
    39303930msgstr ""
    39313931
    3932 #: class/subscription.php:988
     3932#: class/subscription.php:989
    39333933msgid "You must <a href=\"%s\">purchase a pack</a> before posting"
    39343934msgstr ""
     
    47214721msgstr ""
    47224722
     4723#: includes/countries-formated.php:77
     4724msgid "Bangladesh"
     4725msgstr ""
     4726
    47234727#: includes/fields/class-abstract-fields.php:267
    47244728msgid ""
     
    47844788
    47854789#: includes/fields/class-abstract-fields.php:423
    4786 #: includes/fields/class-field-checkbox.php:87
     4790#: includes/fields/class-field-checkbox.php:92
    47874791#: includes/fields/class-field-radio.php:86
    47884792msgid "Show in inline list"
     
    47904794
    47914795#: includes/fields/class-abstract-fields.php:433
    4792 #: includes/fields/class-field-checkbox.php:97
     4796#: includes/fields/class-field-checkbox.php:102
    47934797#: includes/fields/class-field-radio.php:96
    47944798msgid "Show this option in an inline list"
  • wp-user-frontend/tags/3.1.3/readme.txt

    r2060958 r2068989  
    66Tested up to: 5.1.1
    77Requires PHP: 5.4
    8 Stable tag: 3.1.2
     8Stable tag: 3.1.3
    99License: GPLv2
    1010License URI: https://www.gnu.org/licenses/gpl-2.0.html
     
    257257
    258258== Changelog ==
     259
     260= v3.1.3 (15 April, 2019) =
     261
     262* **Fix:** Required option of checkbox field was not validating on the frontend.
     263* **Fix:** Select mulitple options in checkbox field doesn't save the data.
     264* **Fix:** Fallback pay per post was not respecting the payment procedure & fallback cost was not correct on the payment page.
    259265
    260266= v3.1.2 (01 April, 2019) =
  • wp-user-frontend/tags/3.1.3/templates/dashboard.php

    r1967652 r2068989  
    244244                                }
    245245
    246                                 if ( $post->post_status =='draft' && ( !empty( $payment_status ) && $payment_status != 'completed' ) ) {
     246                                if ( ($post->post_status =='draft' || $post->post_status =='pending') && ( !empty( $payment_status ) && $payment_status != 'completed' ) ) {
    247247                                    $show_edit  = false;
    248248                                }
  • wp-user-frontend/tags/3.1.3/templates/dashboard/posts.php

    r1925768 r2068989  
    153153                            }
    154154
    155                             if ( $post->post_status =='draft' && ( !empty( $payment_status ) && $payment_status != 'completed' ) ) {
     155                            if ( ($post->post_status =='draft' || $post->post_status =='pending') && ( !empty( $payment_status ) && $payment_status != 'completed' ) ) {
    156156                                $show_edit  = false;
    157157                            }
  • wp-user-frontend/tags/3.1.3/wpuf.php

    r2060958 r2068989  
    55Description: Create, edit, delete, manages your post, pages or custom post types from frontend. Create registration forms, frontend profile and more...
    66Author: Tareq Hasan
    7 Version: 3.1.2
     7Version: 3.1.3
    88Author URI: https://tareq.co
    99License: GPL2 or later
     
    1313*/
    1414
    15 define( 'WPUF_VERSION', '3.1.2' );
     15define( 'WPUF_VERSION', '3.1.3' );
    1616define( 'WPUF_FILE', __FILE__ );
    1717define( 'WPUF_ROOT', dirname( __FILE__ ) );
  • wp-user-frontend/trunk/assets/js/wpuf-form-builder-components.js

    r2060958 r2068989  
    781781 * Field template: Column Field
    782782 */
     783const mixins = [
     784    wpuf_mixins.form_field_mixin
     785];
     786
     787if (window.wpuf_forms_mixin_builder_stage) {
     788    mixins.push(window.wpuf_forms_mixin_builder_stage);
     789}
     790
     791if (window.weforms_mixin_builder_stage) {
     792    mixins.push(window.weforms_mixin_builder_stage);
     793}
     794
    783795Vue.component('form-column_field', {
    784796    template: '#tmpl-wpuf-form-column_field',
    785797
    786     mixins: [
    787         wpuf_mixins.form_field_mixin,
    788         window.wpuf_forms_mixin_builder_stage
    789     ],
     798    mixins: mixins,
    790799
    791800    data() {
  • wp-user-frontend/trunk/class/payment.php

    r1910827 r2068989  
    216216
    217217                                $current_pack = $current_user->subscription()->current_pack();
    218                                 if ( $force_pack && is_wp_error( $current_pack ) && $fallback_enabled ) {
     218                                if ( $force_pack && !is_wp_error( $current_pack ) && $fallback_enabled ) {
    219219                                    $post_cost = $fallback_cost;
    220220                                    $billing_amount = apply_filters( 'wpuf_payment_amount', $fallback_cost );
  • wp-user-frontend/trunk/class/subscription.php

    r1967652 r2068989  
    451451        $has_post         = $current_user->subscription()->has_post_count( $form_settings['post_type'] );
    452452
    453         if ( $payment_options && $force_pack && is_wp_error( $current_pack ) && $fallback_cost && !$has_post )  {
     453
     454        if ( $payment_options && $force_pack && !is_wp_error( $current_pack ) && $fallback_cost && !$has_post )  {
    454455            $postdata['post_status'] = 'pending';
    455456        }
     
    496497            $old_status = $post->post_status;
    497498            wp_transition_post_status( $post_status, $old_status, $post );
    498             // wp_update_post( array( 'ID' => $post_id , 'post_status' => $post_status) );
    499 
    500             // decrease the post count, if not umlimited
     499
     500            // decrease the post count, if not unlimited
    501501            $wpuf_post_status = get_post_meta( $post_id, 'wpuf_post_status', true );
    502502
     
    507507                }
    508508            }
     509
    509510            //meta added to make post have flag if post is published
    510511            update_post_meta( $post_id, 'wpuf_post_status', 'published' );
    511512
    512513
    513         } elseif ( !$force_pack && ( $pay_per_post || ( $fallback_cost && !$has_post ) ) ) {
     514        } elseif ( $force_pack && $fallback_cost && !$has_post ) {
    514515            //there is some error and it needs payment
    515516            //add a uniqid to track the post easily
  • wp-user-frontend/trunk/includes/countries-formated.php

    r1833388 r2068989  
    7575    ),
    7676    array(
    77         'name' => 'Bangladesh',
     77        'name' => __('Bangladesh', 'wp-user-frontend'),
    7878        'code' => 'BD',
    7979    ),
  • wp-user-frontend/trunk/includes/fields/class-field-checkbox.php

    r2060958 r2068989  
    3434                        $selected = $value;
    3535                    } else {
    36                         $selected = explode( "|", $value );
     36                        $selected = array();
     37                        $selected_options = explode( "|", $value );
     38
     39                        foreach ($selected_options as $option) {
     40                            array_push($selected, trim($option));
     41                        }
    3742                    }
    3843                } else {
     
    4651    ?>
    4752
    48         <div class="wpuf-fields" data-required="<?php echo $field_settings['required'] ?>" data-type="checkbox">
     53        <div class="wpuf-fields" data-required="<?php echo $field_settings['required'] ?>" data-type="radio">
    4954
    5055            <?php
  • wp-user-frontend/trunk/languages/wp-user-frontend.pot

    r2060958 r2068989  
    33msgid ""
    44msgstr ""
    5 "Project-Id-Version: WP User Frontend 3.1.2\n"
     5"Project-Id-Version: WP User Frontend 3.1.3\n"
    66"Report-Msgid-Bugs-To: https://wedevs.com/contact/\n"
    7 "POT-Creation-Date: 2019-04-01 11:49:50+00:00\n"
     7"POT-Creation-Date: 2019-04-15 17:54:24+00:00\n"
    88"MIME-Version: 1.0\n"
    99"Content-Type: text/plain; charset=utf-8\n"
     
    143143#: admin/class-admin-subscription.php:216
    144144#: admin/class-admin-subscription.php:570 class/frontend-account.php:244
    145 #: class/subscription.php:866 includes/class-user-subscription.php:307
     145#: class/subscription.php:867 includes/class-user-subscription.php:307
    146146#: templates/subscriptions/pack-details.php:25
    147147msgid "Free"
     
    157157#: includes/fields/class-abstract-fields.php:358
    158158#: includes/fields/class-abstract-fields.php:426
    159 #: includes/fields/class-field-checkbox.php:90
     159#: includes/fields/class-field-checkbox.php:95
    160160#: includes/fields/class-field-radio.php:89 includes/free/form-element.php:477
    161161#: wpuf.php:706
     
    172172#: includes/fields/class-abstract-fields.php:359
    173173#: includes/fields/class-abstract-fields.php:427
    174 #: includes/fields/class-field-checkbox.php:91
     174#: includes/fields/class-field-checkbox.php:96
    175175#: includes/fields/class-field-radio.php:90 includes/free/form-element.php:478
    176176#: wpuf.php:707
     
    305305#: admin/class-admin-subscription.php:754
    306306#: admin/form-builder/class-wpuf-admin-form-builder.php:265
    307 #: class/payment.php:199 class/subscription.php:779
     307#: class/payment.php:199 class/subscription.php:780
    308308#: includes/class-list-table-subscribers.php:128
    309309#: lib/class-wedevs-insights.php:667 templates/dashboard/subscription.php:61
     
    582582
    583583#: admin/form-builder/class-wpuf-admin-form-builder.php:268
    584 #: includes/fields/class-field-checkbox.php:119
     584#: includes/fields/class-field-checkbox.php:124
    585585#: includes/fields/class-field-dropdown.php:101
    586586#: includes/fields/class-field-multidropdown.php:93
     
    38443844msgstr ""
    38453845
    3846 #: class/subscription.php:747
     3846#: class/subscription.php:748
    38473847msgid "Payment is complete"
    38483848msgstr ""
    38493849
    3850 #: class/subscription.php:747
     3850#: class/subscription.php:748
    38513851msgid "Congratulations, your payment has been completed!"
    38523852msgstr ""
    38533853
    3854 #: class/subscription.php:751 class/subscription.php:755
     3854#: class/subscription.php:752 class/subscription.php:756
    38553855msgid "Please buy a subscription pack to post"
    38563856msgstr ""
    38573857
    3858 #: class/subscription.php:769
     3858#: class/subscription.php:770
    38593859msgid "<p><i>You have a subscription pack activated. </i></p>"
    38603860msgstr ""
    38613861
    3862 #: class/subscription.php:770
     3862#: class/subscription.php:771
    38633863msgid "<p><i>Pack name: %s </i></p>"
    38643864msgstr ""
    38653865
    3866 #: class/subscription.php:772
     3866#: class/subscription.php:773
    38673867msgid "<p><i>To cancel the pack, press the following cancel button</i></p>"
    38683868msgstr ""
    38693869
    3870 #: class/subscription.php:816
     3870#: class/subscription.php:817
    38713871msgid "Day"
    38723872msgid_plural "Days"
     
    38743874msgstr[1] ""
    38753875
    3876 #: class/subscription.php:817
     3876#: class/subscription.php:818
    38773877msgid "Week"
    38783878msgid_plural "Weeks"
     
    38803880msgstr[1] ""
    38813881
    3882 #: class/subscription.php:818
     3882#: class/subscription.php:819
    38833883msgid "Month"
    38843884msgid_plural "Months"
     
    38863886msgstr[1] ""
    38873887
    3888 #: class/subscription.php:819
     3888#: class/subscription.php:820
    38893889msgid "Year"
    38903890msgid_plural "Years"
     
    38923892msgstr[1] ""
    38933893
    3894 #: class/subscription.php:841
     3894#: class/subscription.php:842
    38953895msgid "One time payment"
    38963896msgstr ""
    38973897
    3898 #: class/subscription.php:848
     3898#: class/subscription.php:849
    38993899msgid "Every"
    39003900msgstr ""
    39013901
    3902 #: class/subscription.php:849
     3902#: class/subscription.php:850
    39033903msgid "for"
    39043904msgstr ""
    39053905
    3906 #: class/subscription.php:849
     3906#: class/subscription.php:850
    39073907msgid "installments"
    39083908msgstr ""
    39093909
    3910 #: class/subscription.php:855
     3910#: class/subscription.php:856
    39113911msgid "Trial available for first %s %s"
    39123912msgstr ""
    39133913
    3914 #: class/subscription.php:859
     3914#: class/subscription.php:860
    39153915msgid "Buy Now"
    39163916msgstr ""
    39173917
    3918 #: class/subscription.php:863
     3918#: class/subscription.php:864
    39193919msgid "Sign Up"
    39203920msgstr ""
    39213921
    3922 #: class/subscription.php:926
     3922#: class/subscription.php:927
    39233923msgid "There is a <strong>%s</strong> charge to add a new post."
    39243924msgstr ""
    39253925
    3926 #: class/subscription.php:943
     3926#: class/subscription.php:944
    39273927msgid ""
    39283928"Your Subscription pack exhausted. There is a <strong>%s</strong> charge to "
     
    39303930msgstr ""
    39313931
    3932 #: class/subscription.php:988
     3932#: class/subscription.php:989
    39333933msgid "You must <a href=\"%s\">purchase a pack</a> before posting"
    39343934msgstr ""
     
    47214721msgstr ""
    47224722
     4723#: includes/countries-formated.php:77
     4724msgid "Bangladesh"
     4725msgstr ""
     4726
    47234727#: includes/fields/class-abstract-fields.php:267
    47244728msgid ""
     
    47844788
    47854789#: includes/fields/class-abstract-fields.php:423
    4786 #: includes/fields/class-field-checkbox.php:87
     4790#: includes/fields/class-field-checkbox.php:92
    47874791#: includes/fields/class-field-radio.php:86
    47884792msgid "Show in inline list"
     
    47904794
    47914795#: includes/fields/class-abstract-fields.php:433
    4792 #: includes/fields/class-field-checkbox.php:97
     4796#: includes/fields/class-field-checkbox.php:102
    47934797#: includes/fields/class-field-radio.php:96
    47944798msgid "Show this option in an inline list"
  • wp-user-frontend/trunk/readme.txt

    r2060958 r2068989  
    66Tested up to: 5.1.1
    77Requires PHP: 5.4
    8 Stable tag: 3.1.2
     8Stable tag: 3.1.3
    99License: GPLv2
    1010License URI: https://www.gnu.org/licenses/gpl-2.0.html
     
    257257
    258258== Changelog ==
     259
     260= v3.1.3 (15 April, 2019) =
     261
     262* **Fix:** Required option of checkbox field was not validating on the frontend.
     263* **Fix:** Select mulitple options in checkbox field doesn't save the data.
     264* **Fix:** Fallback pay per post was not respecting the payment procedure & fallback cost was not correct on the payment page.
    259265
    260266= v3.1.2 (01 April, 2019) =
  • wp-user-frontend/trunk/templates/dashboard.php

    r1967652 r2068989  
    244244                                }
    245245
    246                                 if ( $post->post_status =='draft' && ( !empty( $payment_status ) && $payment_status != 'completed' ) ) {
     246                                if ( ($post->post_status =='draft' || $post->post_status =='pending') && ( !empty( $payment_status ) && $payment_status != 'completed' ) ) {
    247247                                    $show_edit  = false;
    248248                                }
  • wp-user-frontend/trunk/templates/dashboard/posts.php

    r1925768 r2068989  
    153153                            }
    154154
    155                             if ( $post->post_status =='draft' && ( !empty( $payment_status ) && $payment_status != 'completed' ) ) {
     155                            if ( ($post->post_status =='draft' || $post->post_status =='pending') && ( !empty( $payment_status ) && $payment_status != 'completed' ) ) {
    156156                                $show_edit  = false;
    157157                            }
  • wp-user-frontend/trunk/wpuf.php

    r2060958 r2068989  
    55Description: Create, edit, delete, manages your post, pages or custom post types from frontend. Create registration forms, frontend profile and more...
    66Author: Tareq Hasan
    7 Version: 3.1.2
     7Version: 3.1.3
    88Author URI: https://tareq.co
    99License: GPL2 or later
     
    1313*/
    1414
    15 define( 'WPUF_VERSION', '3.1.2' );
     15define( 'WPUF_VERSION', '3.1.3' );
    1616define( 'WPUF_FILE', __FILE__ );
    1717define( 'WPUF_ROOT', dirname( __FILE__ ) );
Note: See TracChangeset for help on using the changeset viewer.