Plugin Directory

Changeset 2909904


Ignore:
Timestamp:
05/09/2023 05:00:34 AM (3 years ago)
Author:
ohmance
Message:

Make options patch instead of put

Location:
patch-customer-retention/trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • patch-customer-retention/trunk/class.patch-retention-admin.php

    r2885045 r2909904  
    4949        $value = substr($value, 0, 80);
    5050        update_option($option, $value);
     51      } else if (isset($_REQUEST['action']) && $_REQUEST['action'] === 'update' && isset($_REQUEST[$option])) {
     52        $value = sanitize_text_field($_REQUEST[$option]);
     53        // All values should be 80 characters or less
     54        $value = substr($value, 0, 80);
     55        update_option($option, $value);
    5156      }
    5257    }
     
    9398?>
    9499  <h2>WooCommerce Settings</h2>
    95   <form method="post" action="options.php">
     100  <form method="post">
    96101    <?php settings_fields( 'patch-general' ); ?>
    97102    <?php do_settings_sections( 'patch-general' ); ?>
     
    174179    <h2>Advanced Settings</h2>
    175180    <p>If you follow the connect process using the above button these fields will be automatically populated.</p>
    176     <form method="post" action="options.php">
     181    <form method="post">
    177182      <?php settings_fields( 'patch-general' ); ?>
    178183      <?php do_settings_sections( 'patch-general' ); ?>
  • patch-customer-retention/trunk/patch-customer-retention.php

    r2885045 r2909904  
    66 * Description: Patch provides eCommerce brands with EVERY tool they need to boost customer retention, maximize lifetime value, and keep customers coming back, for life!
    77 * Author: Patch Customer Retention, Ben Oman
    8  * Version: 1.0.1
     8 * Version: 1.0.2
    99 * License: GPL v2 or later
    1010 * License URI: https://www.gnu.org/licenses/gpl-2.0.html
  • patch-customer-retention/trunk/readme.txt

    r2885045 r2909904  
    55Requires PHP: 7.0
    66License: GPL v2 or later
    7 Stable tag: 1.0.1
     7Stable tag: 1.0.2
    88Tested up to: 6.1.1
    99
Note: See TracChangeset for help on using the changeset viewer.