Changeset 3946 for trunk/wp-admin/options-head.php
- Timestamp:
- 07/03/2006 07:03:37 PM (20 years ago)
- File:
-
- 1 edited
-
trunk/wp-admin/options-head.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/options-head.php
r2762 r3946 1 <?php 2 3 $wpvarstoreset = array('action','standalone', 'option_group_id'); 4 for ($i=0; $i<count($wpvarstoreset); $i += 1) { 5 $wpvar = $wpvarstoreset[$i]; 6 if (!isset($$wpvar)) { 7 if (empty($_POST["$wpvar"])) { 8 if (empty($_GET["$wpvar"])) { 9 $$wpvar = ''; 10 } else { 11 $$wpvar = $_GET["$wpvar"]; 12 } 13 } else { 14 $$wpvar = $_POST["$wpvar"]; 15 } 16 } 17 } 18 ?> 1 <?php wp_reset_vars(array('action', 'standalone', 'option_group_id')); ?> 19 2 20 3 <br clear="all" />
Note: See TracChangeset
for help on using the changeset viewer.