Plugin Directory

Changeset 3417590


Ignore:
Timestamp:
12/11/2025 04:40:20 PM (3 days ago)
Author:
themefic
Message:

Update 3.3.34

Location:
ultimate-addons-for-contact-form-7
Files:
1174 added
3 edited

Legend:

Unmodified
Added
Removed
  • ultimate-addons-for-contact-form-7/trunk/addons/pdf-generator/pdf-generator.php

    r3313698 r3417590  
    5151     */
    5252
    53     public function wp_enqueue_admin_script() {
    54 
    55         wp_enqueue_script( 'pdf-generator-admin', UACF7_ADDONS . '/pdf-generator/assets/js/pdf-generator-admin.js', array( 'jquery' ), true );
     53    public function wp_enqueue_admin_script( $hook ) {
     54
     55        // Only enqueue on Database page
     56        if ( $hook !== 'cf7-addons_page_ultimate-addons-db' ) {
     57            return;
     58        }
     59
     60        wp_enqueue_script(
     61            'pdf-generator-admin',
     62            UACF7_ADDONS . '/pdf-generator/assets/js/pdf-generator-admin.js',
     63            array( 'jquery' ),
     64            '1.0.0',
     65            true
     66        );
     67
     68        $pdf_settings = array();
    5669        $pdf_settings['codeEditor'] = wp_enqueue_code_editor( array( 'type' => 'text/css' ) );
    57         $pdf_settings['ajaxurl'] = admin_url( 'admin-ajax.php' );
    58         $pdf_settings['nonce'] = wp_create_nonce( 'uacf7-pdf-generator' );
    59         wp_localize_script( 'jquery', 'pdf_settings', $pdf_settings );
    60 
    61         // require UACF7_PATH . 'third-party/vendor/autoload.php';
    62 
     70        $pdf_settings['ajaxurl']    = admin_url( 'admin-ajax.php' );
     71        $pdf_settings['nonce']      = wp_create_nonce( 'uacf7-pdf-generator' );
     72
     73        wp_localize_script( 'pdf-generator-admin', 'pdf_settings', $pdf_settings );
    6374    }
     75
    6476
    6577    public function uacf7_post_meta_options_pdf_generator( $value, $post_id ) {
     
    317329        if ( ! isset( $_POST ) || empty( $_POST ) ) {
    318330            return;
     331        }
     332
     333        // Capability check
     334        if ( ! current_user_can( 'manage_options' ) ) {
     335            wp_send_json_error( 'Unauthorized', 403 );
    319336        }
    320337
  • ultimate-addons-for-contact-form-7/trunk/readme.txt

    r3413925 r3417590  
    55Tested up to: 6.9
    66Requires PHP: 7.4
    7 Stable tag: 3.5.33
     7Stable tag: 3.5.34
    88License: GPL-2.0+
    99License URI: http://www.gnu.org/licenses/gpl-2.0.txt
     
    482482== Changelog ==
    483483
     484= 3.5.34 - 11/12/2025 =
     485
     486- Fixed: Authorization vulnerability in PDF Generator.
     487
    484488= 3.5.33 - 08/12/2025 =
    485489
  • ultimate-addons-for-contact-form-7/trunk/ultimate-addons-for-contact-form-7.php

    r3413925 r3417590  
    44 * Plugin URI: https://cf7addons.com/
    55 * Description: 50+ Essential Addons for Contact Form 7 - Conditional Fields, Multi Step Forms, Redirection, Form Templates, Columns, WooCommerce, Mailchimp and more, all in one.
    6  * Version: 3.5.33
     6 * Version: 3.5.34
    77 * Author: Themefic
    88 * Author URI: https://themefic.com/
     
    3131        define( 'UACF7_PATH', plugin_dir_path( __FILE__ ) );
    3232
    33         define( 'UACF7_VERSION', '3.5.33' );
     33        define( 'UACF7_VERSION', '3.5.34' );
    3434
    3535        if ( ! class_exists( 'Appsero\Client' ) ) {
Note: See TracChangeset for help on using the changeset viewer.