Use settings_fields()

git-svn-id: http://svn.automattic.com/wordpress/trunk@9954 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
ryan 2008-11-28 21:57:58 +00:00
parent 856397b8fd
commit bd78058d90
6 changed files with 6 additions and 19 deletions

View File

@ -20,9 +20,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='discussion' />
<input type="hidden" name="action" value="update" />
<?php wp_nonce_field('discussion-options') ?>
<?php settings_fields('discussion'); ?>
<table class="form-table">
<tr valign="top">

View File

@ -21,10 +21,7 @@ include('admin-header.php');
<h2><?php echo wp_specialchars( $title ); ?></h2>
<form action="options.php" method="post">
<input type="hidden" name="action" value="update" />
<?php wp_nonce_field( 'media-options' ); ?>
<input type='hidden' name='option_page' value='media' />
<input type="hidden" name="page_options" value="thumbnail_size_w,thumbnail_size_h,thumbnail_crop,medium_size_w,medium_size_h,image_default_size,image_default_align,image_default_link_type,large_size_w,large_size_h" /> <!-- is this needed anymore TODO -->
<?php settings_fields('media'); ?>
<p><?php _e('The setting below determines where images, documents, and other media files will be linked to when inserted into the body of a post.'); ?></p>

View File

@ -21,9 +21,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='misc' />
<input type="hidden" name="action" value="update" />
<?php wp_nonce_field('misc-options') ?>
<?php settings_fields('misc'); ?>
<h3><?php _e('Uploading Files'); ?></h3>
<table class="form-table">

View File

@ -20,9 +20,7 @@ include('./admin-header.php');
<h2><?php echo wp_specialchars( $title ); ?></h2>
<form method="post" action="options.php">
<?php wp_nonce_field('privacy-options') ?>
<input type='hidden' name='option_page' value='privacy' />
<input type="hidden" name="action" value="update" />
<?php settings_fields('privacy'); ?>
<table class="form-table">
<tr valign="top">

View File

@ -20,9 +20,7 @@ include('admin-header.php');
<h2><?php echo wp_specialchars( $title ); ?></h2>
<form name="form1" method="post" action="options.php">
<?php wp_nonce_field('reading-options') ?>
<input type='hidden' name='option_page' value='reading' />
<input type="hidden" name="action" value="update" />
<?php settings_fields('reading'); ?>
<table class="form-table">
<?php if ( get_pages() ): ?>

View File

@ -20,9 +20,7 @@ include('admin-header.php');
<h2><?php echo wp_specialchars( $title ); ?></h2>
<form method="post" action="options.php">
<?php wp_nonce_field('writing-options') ?>
<input type='hidden' name='option_page' value='writing' />
<input type="hidden" name="action" value="update" />
<?php settings_fields('writing'); ?>
<table class="form-table">
<tr valign="top">