7c4907713c
git-svn-id: https://develop.svn.wordpress.org/trunk@2762 602fd350-edb4-49c9-b593-d223f7449a82
24 lines
536 B
PHP
24 lines
536 B
PHP
<?php
|
|
|
|
$wpvarstoreset = array('action','standalone', 'option_group_id');
|
|
for ($i=0; $i<count($wpvarstoreset); $i += 1) {
|
|
$wpvar = $wpvarstoreset[$i];
|
|
if (!isset($$wpvar)) {
|
|
if (empty($_POST["$wpvar"])) {
|
|
if (empty($_GET["$wpvar"])) {
|
|
$$wpvar = '';
|
|
} else {
|
|
$$wpvar = $_GET["$wpvar"];
|
|
}
|
|
} else {
|
|
$$wpvar = $_POST["$wpvar"];
|
|
}
|
|
}
|
|
}
|
|
?>
|
|
|
|
<br clear="all" />
|
|
|
|
<?php if (isset($_GET['updated'])) : ?>
|
|
<div id="message" class="updated fade"><p><strong><?php _e('Options saved.') ?></strong></p></div>
|
|
<?php endif; ?>
|