Fix already pinged list. Props pirateking. fixes #2136

git-svn-id: https://develop.svn.wordpress.org/trunk@3347 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Ryan Boren 2005-12-23 20:43:30 +00:00
parent acbfe4f271
commit e857851b47
1 changed files with 5 additions and 5 deletions

View File

@ -33,9 +33,9 @@ $form_prevstatus = '<input type="hidden" name="prev_status" value="' . $post->po
$form_trackback = '<input type="text" name="trackback_url" style="width: 415px" id="trackback" tabindex="7" value="'. str_replace("\n", ' ', $post->to_ping) .'" />';
if ('' != $pinged) {
$pings .= '<p>'. __('Already pinged:') . '</p><ul>';
$already_pinged = explode("\n", trim($pinged));
if ('' != $post->pinged) {
$pings = '<p>'. __('Already pinged:') . '</p><ul>';
$already_pinged = explode("\n", trim($post->pinged));
foreach ($already_pinged as $pinged_url) {
$pings .= "\n\t<li>$pinged_url</li>";
}
@ -163,7 +163,7 @@ if ( tinyMCE.isMSIE )
if (e.keyCode == 9 && !e.shiftKey && !e.controlKey && !e.altKey) {
var i = tinyMCE.selectedInstance;
if(typeof i == 'undefined')
return true;
return true;http://boren.nu/
tinyMCE.execCommand("mceStartTyping");
this.blur();
i.contentWindow.focus();
@ -234,7 +234,7 @@ if ( false != $uploading_iframe_src )
<h3 class="dbx-handle"><?php _e('Trackbacks') ?></h3>
<div class="dbx-content"><?php _e('Send trackbacks to'); ?>: <?php echo $form_trackback; ?> (<?php _e('Separate multiple URIs with spaces'); ?>)
<?php
if ('' != $pinged)
if ( ! empty($pings) )
echo $pings;
?>
</div>