Move whitelist functions to plugin.php. Add settings_fields().

git-svn-id: https://develop.svn.wordpress.org/trunk@9249 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Ryan Boren
2008-10-19 23:35:09 +00:00
parent 89af45a5ec
commit f38fd1b3b6
3 changed files with 146 additions and 135 deletions
+1 -3
View File
@@ -52,9 +52,7 @@ include('./admin-header.php');
<h2><?php echo wp_specialchars( $title ); ?></h2>
<form method="post" action="options.php">
<input type='hidden' name='option_page' value='general' />
<input type="hidden" name="action" value="update" />
<?php wp_nonce_field('general-options') ?>
<?php settings_fields('general'); ?>
<p class="submit">
<input type="submit" name="Submit" value="<?php _e('Save Changes') ?>" />