Plugin Directory

Changeset 3220400


Ignore:
Timestamp:
01/10/2025 06:46:16 PM (14 months ago)
Author:
tockengineering
Message:

missed updating last change in tags folder

File:
1 edited

Legend:

Unmodified
Added
Removed
  • tock-widget/tags/1.2/trunk/includes/tock-admin-page.php

    r3219189 r3220400  
    11<?php
    22  if (isset($_POST['BtnSubmit'])) {
     3    $retrieved_nonce = $_REQUEST['tock_domain'];
     4    if (!current_user_can('manage_options') || !wp_verify_nonce($retrieved_nonce, 'add_tock_domain')) {
     5      wp_die('Failed security check');
     6    }
    37    $domainName = !empty($_POST['tock-domain']) ? sanitize_text_field($_POST['tock-domain']) : '';
    48
     
    2024
    2125  <form action="" method="POST">
    22 
     26  <?php wp_nonce_field( 'add_tock_domain', 'tock_domain' ); ?>
    2327  <label for="tock-domain">Enter Tock business name: <input id="tock-domain" type="text" name="tock-domain" placeholder="domain" value='<?php echo esc_attr(get_option('tock_domain_name')) ?>' /> </label>
    24   <input type="hidden" name="action" value="add_tock_domain">
    2528  <input type="submit" name="BtnSubmit" value="Save" />
    2629
Note: See TracChangeset for help on using the changeset viewer.