Implemented, only ping weblogs, pingback and trackback when creating a published (not draft) post

OR when editing a post from draft to published


git-svn-id: https://develop.svn.wordpress.org/trunk@178 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Mike Little
2003-06-06 23:21:45 +00:00
parent 170a41cb0f
commit 676d4da628
3 changed files with 44 additions and 19 deletions

View File

@@ -30,6 +30,7 @@ switch($action) {
$form_extra = "' />\n<input type='hidden' name='post_ID' value='$post";
$colspan = 2;
$form_pingback = '<input type="hidden" name="post_pingback" value="0" />';
$form_prevstatus = '<input type="hidden" name="prev_status" value="'.$post_status.'" />';
$form_trackback = '';
break;
case "editcomment":
@@ -143,6 +144,7 @@ if ($action != 'editcomment') {
<textarea rows="9" cols="40" style="width:100%" name="content" tabindex="4" wrap="virtual" id="content"><?php echo $content ?></textarea><br />
<?php echo $form_pingback ?>
<?php echo $form_prevstatus ?>
<p><input type="submit" name="submit" value="<?php echo $submitbutton_text ?>" class="search" style="font-weight: bold;" tabindex="5" /></p>