Plugin Directory

Changeset 2790468


Ignore:
Timestamp:
09/26/2022 08:12:56 PM (4 years ago)
Author:
saifulananda
Message:

Update plugin version 2.3.1

Location:
cf7-form-submission-limit-wpappsdev/trunk
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • cf7-form-submission-limit-wpappsdev/trunk/includes/Frontend.php

    r2576753 r2790468  
    107107        }
    108108
    109         do_action( 'wpadcf7sl-submission-limit-validation', $form_id, $limit_type );
     109        do_action( 'wpadcf7sl-submission-limit-validation', $form_id, $limit_type, $user_id );
    110110    }
    111111
  • cf7-form-submission-limit-wpappsdev/trunk/languages/wpappsdev-submission-limit-cf7.pot

    r2576753 r2790468  
    55"Form Submission Limit - "
    66"WPAppsDev\n"
     7"Report-Msgid-Bugs-To: "
     8"Translator Name "
     9"<translations@example."
     10"com>\n"
    711"POT-Creation-Date: "
    8 "2021-08-01 03:11+0600\n"
     12"2022-09-27 00:18+0600\n"
    913"PO-Revision-Date: \n"
    1014"Last-Translator: Your "
     
    1216"Language-Team: WPAppsDev "
    1317"<anandacsebd@gmail.com>\n"
    14 "Report-Msgid-Bugs-To: "
    15 "Translator Name "
    16 "<translations@example."
    17 "com>\n"
     18"Language: en_US\n"
    1819"MIME-Version: 1.0\n"
    1920"Content-Type: text/"
     
    4243"_nc:4c,1,2\n"
    4344"X-Poedit-Basepath: ..\n"
    44 "Language: en_US\n"
    45 "X-Generator: Poedit 3.0\n"
     45"X-Generator: Poedit "
     46"3.1.1\n"
    4647"X-Poedit-"
    4748"SearchPath-0: .\n"
     
    212213
    213214#: templates/counter-tag/formsubmit.php:8
    214 #, php-format
    215215msgid ""
    216216"This form can be "
    217 "submitted up to %s times."
     217"submitted up to"
     218msgstr ""
     219
     220#: templates/counter-tag/formsubmit.php:8
     221msgid "times"
    218222msgstr ""
    219223
     
    226230
    227231#: templates/counter-tag/userformsubmit.php:11
    228 #, php-format
    229 msgid ""
    230 "You can submit this form "
    231 "%s time."
     232msgid ""
     233"You can submit this form"
     234msgstr ""
     235
     236#: templates/counter-tag/userformsubmit.php:11
     237msgid "time"
    232238msgstr ""
    233239
  • cf7-form-submission-limit-wpappsdev/trunk/readme.txt

    r2576753 r2790468  
    66Author:            Saiful Islam Ananda
    77Requires at least: 5.0
    8 Tested up to:      5.8
    9 Version:           2.3.0
     8Tested up to:      6.0
     9Version:           2.3.1
    1010Stable tag:        trunk
    1111License:           GPLv2 or later
     
    7272
    7373= 2.3.0 =
     74* Fixed: Some string translation issue.
     75
     76= 2.3.0 =
    7477* Added: Disable reset submission limit setting.
    7578* Added: Disable displaying the remaining message setting.
     
    8790
    8891= 2.0.0 =
    89 * **New Feature:** Total submission limit for a form base on user total submission.
     92* New: Total submission limit for a form base on user total submission.
    9093* Fixed: Issue of displaying form error message has been fixed.
    9194* Updated: Counter tag message.
  • cf7-form-submission-limit-wpappsdev/trunk/templates/counter-tag/formsubmit.php

    r2576753 r2790468  
    66    <?php if ( $remaining > 0 ) { ?>
    77        <?php if ( $is_message_disable != 1 ) { ?>
    8             <?php echo sprintf( __( 'This form can be submitted up to %s times.', 'wpappsdev-submission-limit-cf7' ), esc_attr( $remaining ) ); ?>
     8            <?php echo sprintf( '%s %s %s.', __( 'This form can be submitted up to', 'wpappsdev-submission-limit-cf7' ), esc_attr( $remaining ), __( 'times', 'wpappsdev-submission-limit-cf7' ) ); ?>
    99        <?php } ?>
    1010    <?php } else { ?>
  • cf7-form-submission-limit-wpappsdev/trunk/templates/counter-tag/userformsubmit.php

    r2576753 r2790468  
    99        <?php if ( $remaining > 0 ) { ?>
    1010            <?php if ( $is_message_disable != 1 ) { ?>
    11                 <?php echo sprintf( __( 'You can submit this form %s time.', 'wpappsdev-submission-limit-cf7' ), esc_attr( $remaining ) ); ?>
     11                <?php echo sprintf( '%s %s $s.', __( 'You can submit this form', 'wpappsdev-submission-limit-cf7' ), esc_attr( $remaining ), __( 'time', 'wpappsdev-submission-limit-cf7' ) ); ?>
    1212            <?php } ?>
    1313        <?php } else { ?>
  • cf7-form-submission-limit-wpappsdev/trunk/wpappsdev-submission-limit-cf7.php

    r2576753 r2790468  
    33 * Plugin Name:       WPAppsDev - CF7 Form Submission Limit
    44 * Description:       Contact Form 7 form submission limit control plugin.
    5  * Version:           2.3.0
     5 * Version:           2.3.1
    66 * Author:            Saiful Islam Ananda
    77 * Author URI:        https://saifulananda.me/
    88 * License:           GNU General Public License v2 or later
    99 * Text Domain:       wpappsdev-submission-limit-cf7
    10  * Domain Path:       /languages.
     10 * Domain Path:       /languages
    1111 */
    1212
     
    2929     * @var string
    3030     */
    31     public $version = '2.3.0';
     31    public $version = '2.3.1';
    3232
    3333    /**
     
    154154     */
    155155    public static function check_cf7_exist() {
    156         if ( in_array( 'contact-form-7/wp-contact-form-7.php', (array) get_option( 'active_plugins', [] ) ) ) {
    157             return true;
    158         } else {
    159             return false;
    160         }
     156        $required_install = false;
     157
     158        if ( ! function_exists( 'is_plugin_active_for_network' ) || ! function_exists( 'is_plugin_active' ) ) {
     159            require_once ABSPATH . '/wp-admin/includes/plugin.php';
     160        }
     161
     162        if ( is_plugin_active( 'contact-form-7/wp-contact-form-7.php' ) ) {
     163            $required_install = true;
     164        }
     165
     166        if ( is_multisite() ) {
     167            if ( is_plugin_active_for_network( 'contact-form-7/wp-contact-form-7.php' ) ) {
     168                $required_install = true;
     169            }
     170        }
     171
     172        return $required_install;
    161173    }
    162174
Note: See TracChangeset for help on using the changeset viewer.