CoreFiles by mySites.guru
options-head.php24 lines, 518 bytes, from wordpress-1.5.2.zip
Raw History Compare with 1.5.1.3
md5
2f6000c353d97c79c380a19d38e7762d
sha1
2a3be35a1fb816de0f3c7bb4e0d0d25971bb8366
sha256
dcc5e5328ff63bd958782f6be19c78cbf8a52ac1c65c34e229b0ecd120c42383
<?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; ?>

The same content is in 6 releases, WordPress 1.5-strayhorn to 1.5.2. See them all, or every version of this file.