mirror of
https://github.com/WordPress/WordPress.git
synced 2024-11-05 10:22:23 +01:00
04786f267d
git-svn-id: http://svn.automattic.com/wordpress/trunk@1818 1a063a9b-81f0-0310-95a4-ce76da25c4cd
24 lines
518 B
PHP
24 lines
518 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 class="updated"><p><strong><?php _e('Options saved.') ?></strong></p></div>
|
|
<?php endif; ?>
|