mirror of
https://github.com/WordPress/WordPress.git
synced 2024-11-13 22:26:06 +01:00
65546ba7a5
git-svn-id: http://svn.automattic.com/wordpress/trunk@2762 1a063a9b-81f0-0310-95a4-ce76da25c4cd
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; ?>
|