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