Plugin Directory

Changeset 2995105


Ignore:
Timestamp:
11/13/2023 11:31:09 AM (2 years ago)
Author:
plerdy
Message:

Updating plugin to 1.3.6 with settings security fix and error messages

Location:
plerdy-heatmap/trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • plerdy-heatmap/trunk/plerdy_heatmap_tracking.php

    r2995091 r2995105  
    44Plugin URI: https://www.plerdy.com
    55Description: The easiest way to add the Plerdy tracking script to your WordPress site!
    6 Version: 1.3.5
     6Version: 1.3.6
    77Author: Plerdy
    88Author URI: https://www.plerdy.com
     
    111111        } else {
    112112            // If validation fails, return the default value
    113             add_settings_error( 'plerdy_tracking_script', 'invalid_tracking_script', 'Invalid tracking script format' );
     113            add_settings_error( 'plerdy_tracking_script', 'invalid_tracking_script', 'Please check: the Plerdy tracking code was added incorrectly.' );
    114114            return get_option( 'plerdy_tracking_script' );
    115115        }
     
    133133        } else {
    134134            // If validation fails, return the default value
    135             add_settings_error( 'plerdy_abtracking_script', 'invalid_abtracking_script', 'Invalid A/B testing script format' );
     135            add_settings_error( 'plerdy_abtracking_script', 'invalid_abtracking_script', 'Please check: the Plerdy A/B testing tracking code was added incorrectly.
     136
     137' );
    136138            return get_option( 'plerdy_abtracking_script' );
    137139        }
  • plerdy-heatmap/trunk/readme.txt

    r2995091 r2995105  
    44Requires at least: 1.0
    55Tested up to: 6.3
    6 Stable Tag: 1.3.5
     6Stable Tag: 1.3.6
    77License: GPLv2
    88License URI: https://www.gnu.org/licenses/gpl-2.0.html
  • plerdy-heatmap/trunk/views/options.php

    r2975666 r2995105  
    11<div class="wrap">
    2     <h1><img src="<?php echo plugins_url('/../images/icon.png', __FILE__);?>">Plerdy for WordPress</h1>
    3     <p>Create an account or log in to Plerdy <a href="https://a.plerdy.com/auth/login" target="_blank">https://a.plerdy.com/auth/login</a></p>
    4     <form action="options.php" method="post">
    5         <?php
    6             settings_fields( 'plerdy-options' );
    7             do_settings_sections( 'plerdy' );
    8          ?>
    9          
    10          <table class="form-table form-plerdy">
    11                 <tr valign="top">
    12                 <td>
    13                 <strong>Add a tracking code</strong>
    14                 <br>
    15                     <textarea name="plerdy_tracking_script" rows="8" cols="80"><?php echo esc_attr( get_option('plerdy_tracking_script') ); ?></textarea>
    16                 </td>
    17                 </tr>
    18                
    19                 <tr valign="top">
    20                 <td>
    21                 <strong>Add A/B testing tracking code</strong>
    22                 <br>
    23                     <textarea name="plerdy_abtracking_script" rows="8" cols="80"><?php echo esc_attr( get_option('plerdy_abtracking_script') ); ?></textarea>
    24                 </td>
    25                 </tr>
    26                 <tr>
    27                     <td style="display: flex;">
    28                         <p style="display: flex; align-items: center;">
    29                             <input type="checkbox" value="checked"  <?php echo esc_attr( get_option('checkbox') ); ?> id="checkbox" name="checkbox">Collect e-commerce data "Sales performance"</p>
    30                         <span class="waper">&#x3f; <img class="imgplerdynone" style="width: 629px; margin-left: 22px;" src="<?php echo plugins_url('/../images/plerdy.png', __FILE__);?>"></span>
    31                     </td>
    32                 </tr>
    33         </table>
    34          <?php submit_button(); ?>
    35     </form>
     2    <h1><img src="<?php echo plugins_url('/../images/icon.png', __FILE__);?>">Plerdy for WordPress</h1>
     3    <p>Create an account or log in to Plerdy <a href="https://a.plerdy.com/auth/login" target="_blank">https://a.plerdy.com/auth/login</a></p>
     4
     5    <?php
     6    settings_errors();
     7    ?>
     8
     9    <form action="options.php" method="post">
     10        <?php
     11        settings_fields( 'plerdy-options' );
     12        do_settings_sections( 'plerdy' );
     13        ?>
     14
     15        <table class="form-table form-plerdy">
     16            <tr valign="top">
     17                <td>
     18                    <strong>Add a tracking code</strong>
     19                    <br>
     20                    <textarea name="plerdy_tracking_script" rows="8" cols="80"><?php echo esc_attr( get_option('plerdy_tracking_script') ); ?></textarea>
     21                </td>
     22            </tr>
     23
     24            <tr valign="top">
     25                <td>
     26                    <strong>Add A/B testing tracking code</strong>
     27                    <br>
     28                    <textarea name="plerdy_abtracking_script" rows="8" cols="80"><?php echo esc_attr( get_option('plerdy_abtracking_script') ); ?></textarea>
     29                </td>
     30            </tr>
     31            <tr>
     32                <td style="display: flex;">
     33                    <p style="display: flex; align-items: center;">
     34                        <input type="checkbox" value="checked"  <?php echo esc_attr( get_option('checkbox') ); ?> id="checkbox" name="checkbox">Collect e-commerce data "Sales performance"</p>
     35                    <span class="waper">&#x3f; <img class="imgplerdynone" style="width: 629px; margin-left: 22px;" src="<?php echo plugins_url('/../images/plerdy.png', __FILE__);?>"></span>
     36                </td>
     37            </tr>
     38        </table>
     39        <?php submit_button(); ?>
     40    </form>
    3641</div>
Note: See TracChangeset for help on using the changeset viewer.