Changeset 3220400
- Timestamp:
- 01/10/2025 06:46:16 PM (14 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
tock-widget/tags/1.2/trunk/includes/tock-admin-page.php
r3219189 r3220400 1 1 <?php 2 2 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 } 3 7 $domainName = !empty($_POST['tock-domain']) ? sanitize_text_field($_POST['tock-domain']) : ''; 4 8 … … 20 24 21 25 <form action="" method="POST"> 22 26 <?php wp_nonce_field( 'add_tock_domain', 'tock_domain' ); ?> 23 27 <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">25 28 <input type="submit" name="BtnSubmit" value="Save" /> 26 29
Note: See TracChangeset
for help on using the changeset viewer.