post Defaults implemented.
git-svn-id: http://svn.automattic.com/wordpress/trunk@220 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
4d1d2c278d
commit
3d2929adb9
|
@ -12,7 +12,9 @@ switch($action) {
|
||||||
$form_action = 'post';
|
$form_action = 'post';
|
||||||
$form_extra = '';
|
$form_extra = '';
|
||||||
if ($use_pingback) {
|
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 {
|
} else {
|
||||||
$form_pingback = '';
|
$form_pingback = '';
|
||||||
}
|
}
|
||||||
|
@ -69,7 +71,7 @@ window.onload = focusit;
|
||||||
</td>
|
</td>
|
||||||
<td>
|
<td>
|
||||||
<label for="category">Category:</label><br />
|
<label for="category">Category:</label><br />
|
||||||
<?php dropdown_categories(); ?>
|
<?php dropdown_categories($blog_ID, $default_post_cat); ?>
|
||||||
</td>
|
</td>
|
||||||
<td>
|
<td>
|
||||||
<label for="post_status">Post Status:</label><br />
|
<label for="post_status">Post Status:</label><br />
|
||||||
|
@ -90,7 +92,7 @@ window.onload = focusit;
|
||||||
<label for="ping_status">Pings:</label><br />
|
<label for="ping_status">Pings:</label><br />
|
||||||
<select name="ping_status" id="ping_status">
|
<select name="ping_status" id="ping_status">
|
||||||
<option value="open"<?php selected($ping_status, 'open'); ?>>Open</option>
|
<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>
|
</select>
|
||||||
</td>
|
</td>
|
||||||
<td>
|
<td>
|
||||||
|
|
|
@ -387,9 +387,14 @@ switch($action) {
|
||||||
</div>
|
</div>
|
||||||
<?php
|
<?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');
|
include('b2edit.form.php');
|
||||||
echo '<br /><br />';
|
echo '<br /><br />';
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in New Issue