Make WordPress Core


Ignore:
Timestamp:
07/03/2006 07:03:37 PM (20 years ago)
Author:
ryan
Message:

wp_reset_vars() from Sewar. fixes #2888

File:
1 edited

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')); ?>
    192
    203<br clear="all" />
Note: See TracChangeset for help on using the changeset viewer.