Use settings_fields()
git-svn-id: https://develop.svn.wordpress.org/trunk@9954 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
503d6a67df
commit
f922c423ae
@ -20,9 +20,7 @@ include('admin-header.php');
|
|||||||
<h2><?php echo wp_specialchars( $title ); ?></h2>
|
<h2><?php echo wp_specialchars( $title ); ?></h2>
|
||||||
|
|
||||||
<form method="post" action="options.php">
|
<form method="post" action="options.php">
|
||||||
<input type='hidden' name='option_page' value='discussion' />
|
<?php settings_fields('discussion'); ?>
|
||||||
<input type="hidden" name="action" value="update" />
|
|
||||||
<?php wp_nonce_field('discussion-options') ?>
|
|
||||||
|
|
||||||
<table class="form-table">
|
<table class="form-table">
|
||||||
<tr valign="top">
|
<tr valign="top">
|
||||||
|
@ -21,10 +21,7 @@ include('admin-header.php');
|
|||||||
<h2><?php echo wp_specialchars( $title ); ?></h2>
|
<h2><?php echo wp_specialchars( $title ); ?></h2>
|
||||||
|
|
||||||
<form action="options.php" method="post">
|
<form action="options.php" method="post">
|
||||||
<input type="hidden" name="action" value="update" />
|
<?php settings_fields('media'); ?>
|
||||||
<?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 -->
|
|
||||||
|
|
||||||
<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>
|
<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>
|
||||||
|
|
||||||
|
@ -21,9 +21,7 @@ include('admin-header.php');
|
|||||||
<h2><?php echo wp_specialchars( $title ); ?></h2>
|
<h2><?php echo wp_specialchars( $title ); ?></h2>
|
||||||
|
|
||||||
<form method="post" action="options.php">
|
<form method="post" action="options.php">
|
||||||
<input type='hidden' name='option_page' value='misc' />
|
<?php settings_fields('misc'); ?>
|
||||||
<input type="hidden" name="action" value="update" />
|
|
||||||
<?php wp_nonce_field('misc-options') ?>
|
|
||||||
|
|
||||||
<h3><?php _e('Uploading Files'); ?></h3>
|
<h3><?php _e('Uploading Files'); ?></h3>
|
||||||
<table class="form-table">
|
<table class="form-table">
|
||||||
|
@ -20,9 +20,7 @@ include('./admin-header.php');
|
|||||||
<h2><?php echo wp_specialchars( $title ); ?></h2>
|
<h2><?php echo wp_specialchars( $title ); ?></h2>
|
||||||
|
|
||||||
<form method="post" action="options.php">
|
<form method="post" action="options.php">
|
||||||
<?php wp_nonce_field('privacy-options') ?>
|
<?php settings_fields('privacy'); ?>
|
||||||
<input type='hidden' name='option_page' value='privacy' />
|
|
||||||
<input type="hidden" name="action" value="update" />
|
|
||||||
|
|
||||||
<table class="form-table">
|
<table class="form-table">
|
||||||
<tr valign="top">
|
<tr valign="top">
|
||||||
|
@ -20,9 +20,7 @@ include('admin-header.php');
|
|||||||
<h2><?php echo wp_specialchars( $title ); ?></h2>
|
<h2><?php echo wp_specialchars( $title ); ?></h2>
|
||||||
|
|
||||||
<form name="form1" method="post" action="options.php">
|
<form name="form1" method="post" action="options.php">
|
||||||
<?php wp_nonce_field('reading-options') ?>
|
<?php settings_fields('reading'); ?>
|
||||||
<input type='hidden' name='option_page' value='reading' />
|
|
||||||
<input type="hidden" name="action" value="update" />
|
|
||||||
|
|
||||||
<table class="form-table">
|
<table class="form-table">
|
||||||
<?php if ( get_pages() ): ?>
|
<?php if ( get_pages() ): ?>
|
||||||
|
@ -20,9 +20,7 @@ include('admin-header.php');
|
|||||||
<h2><?php echo wp_specialchars( $title ); ?></h2>
|
<h2><?php echo wp_specialchars( $title ); ?></h2>
|
||||||
|
|
||||||
<form method="post" action="options.php">
|
<form method="post" action="options.php">
|
||||||
<?php wp_nonce_field('writing-options') ?>
|
<?php settings_fields('writing'); ?>
|
||||||
<input type='hidden' name='option_page' value='writing' />
|
|
||||||
<input type="hidden" name="action" value="update" />
|
|
||||||
|
|
||||||
<table class="form-table">
|
<table class="form-table">
|
||||||
<tr valign="top">
|
<tr valign="top">
|
||||||
|
Loading…
Reference in New Issue
Block a user