post Defaults implemented.

git-svn-id: http://svn.automattic.com/wordpress/trunk@220 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
mikelittle 2003-06-12 22:47:21 +00:00
parent 4d1d2c278d
commit 3d2929adb9
2 changed files with 11 additions and 4 deletions

View File

@ -12,7 +12,9 @@ switch($action) {
$form_action = 'post';
$form_extra = '';
if ($use_pingback) {
$form_pingback = '<input type="checkbox" class="checkbox" name="post_pingback" value="1" checked="checked" tabindex="7" id="pingback" /> <label for="pingback">PingBack the URLs in this post</label><br />';
$form_pingback = '<input type="checkbox" class="checkbox" name="post_pingback" value="1" ';
if ($post_pingback) $form_pingback .= 'checked="checked" ';
$form_pingback .= 'tabindex="7" id="pingback" /> <label for="pingback">PingBack the URLs in this post</label><br />';
} else {
$form_pingback = '';
}
@ -69,7 +71,7 @@ window.onload = focusit;
</td>
<td>
<label for="category">Category:</label><br />
<?php dropdown_categories(); ?>
<?php dropdown_categories($blog_ID, $default_post_cat); ?>
</td>
<td>
<label for="post_status">Post Status:</label><br />
@ -90,7 +92,7 @@ window.onload = focusit;
<label for="ping_status">Pings:</label><br />
<select name="ping_status" id="ping_status">
<option value="open"<?php selected($ping_status, 'open'); ?>>Open</option>
<option value="closed"<?php selected($ping_status, 'open'); ?>>Closed</option>
<option value="closed"<?php selected($ping_status, 'closed'); ?>>Closed</option>
</select>
</td>
<td>

View File

@ -387,9 +387,14 @@ switch($action) {
</div>
<?php
}
//set defaults
$post_status = get_settings('default_post_status');
$comment_status = get_settings('default_comment_status');
$ping_status = get_settings('default_ping_status');
$post_pingback = get_settings('default_pingback_flag');
$default_post_cat = get_settings('default_post_category');
include('b2edit.form.php');
echo '<br /><br />';
}
} else {