Plugin Directory

Changeset 3318579


Ignore:
Timestamp:
06/27/2025 04:59:27 AM (8 months ago)
Author:
pinpointe
Message:

Added version 1.7.1 updating plugin to WordPress version 6.8.1

Location:
pinpointe-form-integration/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • pinpointe-form-integration/trunk/pinpointe-signup-form.php

    r3078552 r3318579  
    44 * Plugin URI: https://help.pinpointe.com/support/solutions/articles/5000664320-wordpress-plugin-download
    55 * Description: Add Pinpointe forms to your WordPress site
    6  * Version: 1.7
     6 * Version: 1.7.1
    77 * Author: Pinpointe
    88 * Author URI: http://www.pinpointe.com/
    9  * Requires at least: 3.5
    10  * Tested up to: 6.5.2
     9 * Requires at least: 6.5
     10 * Tested up to: 6.8.1
    1111 *
    1212 * Text Domain: pinpointe
    1313 * Domain Path: /languages
    14  * 
     14 *
    1515 * License:     GPL-3.0+
    1616 * License URI: https://www.gnu.org/licenses/gpl-3.0.html
     
    4646        private $last_rendered_form = 0;
    4747        private $popup_page_capping_in_effect = false;
    48        
     48
    4949        private $register_scripts_args = [
    5050            // determines where the script is loaded(header/footer)
     
    185185
    186186        }
    187        
     187
    188188         /**
    189189         * Validate all shortcodes and display warnings for missing ones.
    190          * 
     190         *
    191191         * @return void
    192192         */
     
    564564
    565565            $current_tab = $this->get_current_tab(true);
    566            
    567            
     566
     567
    568568            ?>
    569569                <div class="wrap pinpointe">
     
    646646                    'pinpointe_forms_send_confirmation'        => '<p>'. esc_html('Whether or not to send a confirmation email to subscribers when they submit a subscription form. If selected, subscriptions will be recorded, but subscribers will be marked as Unconfirmed until they receive and choose to confirm their subscription via email.', 'pinpointe').'</p>',
    647647                );
    648            
     648
    649649            // sanitize $pinpointe_selected_lists
    650650            array_walk_recursive($pinpointe_selected_lists, function (&$value, $key) {
     
    673673                }
    674674            });
    675            
     675
    676676            // sanitize $pinpointe_selected_tags
    677677            array_walk_recursive($pinpointe_selected_tags, static function (&$value, $key) {
     
    680680                    return;
    681681                }
    682                
     682
    683683                if ($key === 'tags') {
    684684                    $value = is_array($value) ? $value : [$value];
     
    686686                    return;
    687687                }
    688                
     688
    689689                $value = sanitize_text_field($value);
    690690            });
     
    10681068                                            <td scope="row" colspan="2" id="forms_confirmation_email_td_<?php echo esc_attr($form_key) ?>"><strong><?php esc_html_e('Confirmation email', 'pinpointe'); ?></strong>
    10691069                                            <br/>
    1070                                             <?php 
     1070                                            <?php
    10711071                                                        wp_enqueue_editor();
    10721072                                                        $editor_key = 'pinpointe_forms_html_confirmation_email_' . $form_key;
     
    10781078
    10791079                                                        echo '<textarea class="pinpointe-field pinpointe_forms_html_confirmation_email" name="' .  esc_attr($textarea_name) . '" id="' . esc_attr($editor_key) . '" rows="25" style="width:100%">' .  esc_textarea($content) . '</textarea>';
    1080                                                        
     1080
    10811081                                                        ?>
    10821082                                            </td>
     
    10901090                                        <?php esc_html_e('Connecting to Pinpointe...', 'pinpointe'); ?>
    10911091                                    </p>
    1092                                  
     1092
    10931093                                    <div class="pinpointe_forms_section">List</div>
    10941094                                    <?php wp_nonce_field('ajax_get_tags_groups_fields', 'pinpointe_get_tags_with_multiple_groups_and_fields'); ?>
     
    10981098                                    </p>
    10991099                                    <?php wp_nonce_field('ajax_get_lists', 'pinpointe_get_lists'); ?>
    1100                                    
     1100
    11011101                                    <table class="form-table">
    11021102                                          <tbody>
     
    11091109                                               </td>
    11101110                                            </tr>
    1111                                         </tbody>                 
     1111                                        </tbody>
    11121112                                    </table>
    11131113
     
    11161116                                    <p id="pinpointe_fields_table_<?php echo esc_attr($form_key); ?>" class="pinpointe_loading_list pinpointe_forms_field_fields">
    11171117                                        <span class="pinpointe_loading_icon"></span>
    1118                                        
     1118
    11191119                                        <?php esc_html_e('Connecting to Pinpointe...', 'pinpointe'); ?>
    11201120                                    </p>
     
    18191819                $message = (!isset($error['custom']) ? $messages[$error['code']] : $error['custom']) . '. ' . __('Reverted to a previous state.', 'pinpointe');
    18201820                $setting = $error['setting'];
    1821                
     1821
    18221822                if (array_key_exists($error['setting'], $this->titles) && isset($this->titles[$error['setting']])) {
    18231823                    $setting = $this->titles[$error['setting']];
    18241824                }
    1825                
    1826                
     1825
     1826
    18271827                $code = array_key_exists('code', $error) && isset($error['code'])
    18281828                    ? $error['code']
    18291829                    : $error['custom'];
    1830                
     1830
    18311831                add_settings_error(
    18321832                    'pinpointe_settings_updated',
     
    18461846         * @param bool $show_mailing_list Whether to show the mailing list for the form.
    18471847         *
    1848          * @throws \Exception If options cannot be saved || tag_ids is empty 
     1848         * @throws \Exception If options cannot be saved || tag_ids is empty
    18491849         */
    18501850        public function saveTagMetadata($form_id, $show_mailing_list, $tag_ids = [])
     
    18621862            // get the saved tag_metatada
    18631863            $existing_metadata = $this->get_tag_metadata();
    1864            
     1864
    18651865            if (empty($existing_metadata)) {
    18661866                $existing_metadata[] = [
     
    18721872            } else {
    18731873                $is_form_id_found = false;
    1874                
     1874
    18751875                // loop through $existing_metadata to update or add new entry
    18761876                // take note we are modifying the &$existing_metadata if form_id has been is_form_id_found
     
    18801880                        $metadata['show_mailing_list'] = $show_mailing_list;
    18811881                        $metadata['hash'] = md5(time());
    1882                        
     1882
    18831883                        $is_form_id_found = true;
    18841884                        break; // exit the loop once we've modified the form_id's metadata
    18851885                    }
    18861886                }
    1887                
     1887
    18881888                unset($metadata); // unset the reference - cause we were modifying it and we are done
    1889                
     1889
    18901890                // If metadata for the form_id doesn't exist, create a new entry
    18911891                if (!$is_form_id_found) {
     
    18991899                }
    19001900            }
    1901            
     1901
    19021902            $status = update_option('pinpointe_tags_metadata', $existing_metadata);
    19031903
     
    19211921            if ($form_id !== null && isset($results[$form_id])) {
    19221922              return $results[$form_id];
    1923             } 
     1923            }
    19241924
    19251925            return $results ? $results : [];
     
    20112011            // Font awesome (icons)
    20122012            wp_register_style('pinpointe-font-awesome', PINPOINTE_PLUGIN_URL . '/assets/css/font-awesome/css/font-awesome.min.css', array(), '6.5.2');
    2013            
     2013
    20142014            // register tom select
    20152015            wp_register_style('pinpointe-tom-select-styles', PINPOINTE_PLUGIN_URL . '/assets/css/tom-select/tom-select.css', array(), '2.3.1');
    20162016            wp_register_script('pinpointe-tom-select-scripts', PINPOINTE_PLUGIN_URL . '/assets/js/tom-select.js',
    20172017                array(), '2.3.1',$this->register_scripts_args);
    2018            
     2018
    20192019            // Our own scripts and styles
    20202020            wp_register_script('pinpointe-admin-scripts', PINPOINTE_PLUGIN_URL . '/assets/js/pinpointe-admin.js',
     
    20222022            wp_register_style('pinpointe-admin-styles', PINPOINTE_PLUGIN_URL . '/assets/css/style-admin.css', array(), PINPOINTE_VERSION);
    20232023            wp_register_style('pinpointe-jquery-ui-styles', PINPOINTE_PLUGIN_URL . '/assets/css/jquery-ui.theme.css', array(), PINPOINTE_VERSION);
    2024            
     2024
    20252025            // Scripts
    20262026            wp_enqueue_script('jquery');
     
    21922192                $value = is_string($value) ? sanitize_text_field($value) : $value;
    21932193            });
    2194            
     2194
    21952195            echo wp_json_encode(array('message' => array('tags' => $tags)));
    21962196            die();
     
    22062206        {
    22072207            check_ajax_referer(__FUNCTION__, '_wpnonce');
    2208            
     2208
    22092209            if (isset($_POST['data'])) {
    22102210                // Sanitize input data
     
    22462246                    $lists_to_get[] = $form['list'];
    22472247                }
    2248                
     2248
    22492249                // Get merge vars
    22502250                // only fetch merge_vars with lists in lists_to_get instead of every list.
     
    23442344                        'description' => isset($tag['description']) || !empty($tag['description']) ? $tag['description'] : 'Default description for ' . $tag['name']
    23452345                    );
    2346                    
     2346
    23472347                    if (isset($tag['tagid'])) { // for xml api
    23482348                        $results[$tag['tagid']] = $tagInfo;
     
    23502350                        $results[$tag['id']] = $tagInfo;
    23512351                    }
    2352                
     2352
    23532353                }
    23542354
     
    27382738
    27392739                        break;
    2740                        
     2740
    27412741                    /**
    27422742                     * POSTS NOT
     
    42894289                $currentPageHits = intval(sanitize_text_field($_COOKIE['pinpointe_p']));
    42904290                $maxAllowedHits = intval($this->opt['pinpointe_popup_page_limit']);
    4291                
     4291
    42924292                if ($currentPageHits < $maxAllowedHits) {
    42934293                    setcookie('pinpointe_p', ($currentPageHits + 1), (time()+60*60*24*30), '/');
     
    46654665        {
    46664666            $ip_address = '0.0.0.0';
    4667            
     4667
    46684668            if (array_key_exists('HTTP_X_FORWARDED_FOR', $_SERVER) && !empty($_SERVER['HTTP_X_FORWARDED_FOR'])) {
    46694669                if (strpos($_SERVER['HTTP_X_FORWARDED_FOR'], ',') > 0) {
     
    46784678                $ip_address = sanitize_text_field($_SERVER['REMOTE_ADDR']);
    46794679            }
    4680            
     4680
    46814681            if (!filter_var($ip_address, FILTER_VALIDATE_IP)) {
    46824682                error_log("Invalid IP address detected: {$ip_address}");
    46834683                return '0.0.0.0'; // Return invalid IP when invalid input received
    46844684            }
    4685            
     4685
    46864686            return $ip_address;
    46874687        }
  • pinpointe-form-integration/trunk/readme.txt

    r3078552 r3318579  
    22Contributors: pinpointe
    33Tags: email marketing, forms, opt-in, mailing list, subscription
    4 Requires at least: 3.5
    5 Tested up to: 6.5.2
    6 Stable tag: 1.7
    7 Requires PHP: 5.4
     4Requires at least: 6.5
     5Tested up to: 6.8.1
     6Stable tag: 1.7.1
     7Requires PHP: 7.0
    88License: GPLv3 or later
    99License URI: https://www.gnu.org/licenses/gpl-3.0.html
     
    1616The Pinpointe Form Integration plugin for WordPress lets you easily add dynamic forms to your site or blog. Advanced features include:
    1717
    18 * Display forms on home page, pages, posts and in other WordPress content 
     18* Display forms on home page, pages, posts and in other WordPress content
    1919* Show popups and customize how often they appear
    2020* Users can submit their info without ever leaving your pages (AJAX)
Note: See TracChangeset for help on using the changeset viewer.