Move pingback to hidden field. Fix trackback wording.
git-svn-id: http://svn.automattic.com/wordpress/trunk@1505 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
de3c513676
commit
c0c5955b8d
|
@ -19,9 +19,7 @@ if (0 == $post_ID) {
|
||||||
}
|
}
|
||||||
|
|
||||||
if (get_settings('use_pingback')) {
|
if (get_settings('use_pingback')) {
|
||||||
$form_pingback = '<input type="checkbox" class="checkbox" name="post_pingback" value="1" ';
|
$form_pingback = '<input type="hidden" name="post_pingback" value="1" id="post_pingback" />';
|
||||||
if ( get_settings('default_pingback_flag') ) $form_pingback .= 'checked="checked" ';
|
|
||||||
$form_pingback .= 'tabindex="7" id="pingback" /> <label for="pingback">' . __('<strong>PingBack</strong> the <abbr title="Universal Resource Identifier">URI</abbr>s in this post') . '</label> <a href="http://wordpress.org/docs/reference/post/#pingback" title="' . __('Help on Pingbacks') . '">?</a><br />';
|
|
||||||
} else {
|
} else {
|
||||||
$form_pingback = '';
|
$form_pingback = '';
|
||||||
}
|
}
|
||||||
|
@ -29,7 +27,7 @@ if (get_settings('use_pingback')) {
|
||||||
$form_prevstatus = '<input type="hidden" name="prev_status" value="'.$post_status.'" />';
|
$form_prevstatus = '<input type="hidden" name="prev_status" value="'.$post_status.'" />';
|
||||||
|
|
||||||
if (get_settings('use_trackback')) {
|
if (get_settings('use_trackback')) {
|
||||||
$form_trackback = '<p><label for="trackback"><a href="http://wordpress.org/docs/reference/post/#trackback" title="' . __('Help on trackbacks') . '">' . __('<strong>TrackBack</strong> an <abbr title="Universal Resource Identifier">URI</abbr></a>') . '</label> ' . __('(Separate multiple <abbr title="Universal Resource Identifier">URI</abbr>s with spaces.)') . '<br />
|
$form_trackback = '<p><label for="trackback"><a href="http://wordpress.org/docs/reference/post/#trackback" title="' . __('Help on trackbacks') . '">' . __('<strong>TrackBack</strong> a <abbr title="Universal Resource Identifier">URI</abbr></a>') . '</label> ' . __('(Separate multiple <abbr title="Universal Resource Identifier">URI</abbr>s with spaces.)') . '<br />
|
||||||
<input type="text" name="trackback_url" style="width: 415px" id="trackback" tabindex="7" value="'. str_replace("\n", ' ', $to_ping) .'" /></p>';
|
<input type="text" name="trackback_url" style="width: 415px" id="trackback" tabindex="7" value="'. str_replace("\n", ' ', $to_ping) .'" /></p>';
|
||||||
if ('' != $pinged) {
|
if ('' != $pinged) {
|
||||||
$pings .= '<p>'. __('Already pinged:') . '</p><ul>';
|
$pings .= '<p>'. __('Already pinged:') . '</p><ul>';
|
||||||
|
|
|
@ -8,15 +8,13 @@ $form_action = 'post';
|
||||||
$form_extra = '';
|
$form_extra = '';
|
||||||
|
|
||||||
if (get_settings('use_pingback')) {
|
if (get_settings('use_pingback')) {
|
||||||
$form_pingback = '<input type="checkbox" class="checkbox" name="post_pingback" value="1" ';
|
$form_pingback = '<input type="hidden" name="post_pingback" value="1" id="post_pingback" />';
|
||||||
if ($post_pingback) $form_pingback .= 'checked="checked" ';
|
|
||||||
$form_pingback .= 'tabindex="7" id="pingback" /> <label for="pingback">' . sprintf(__('<strong>PingBack</strong> the <abbr title="Universal Resource Identifier">URI</abbr>s in this post</label> <a href="%s" title="Help on Pingbacks">?</a><br />'), 'http://wordpress.org/docs/reference/post/#pingback');
|
|
||||||
} else {
|
} else {
|
||||||
$form_pingback = '';
|
$form_pingback = '';
|
||||||
}
|
}
|
||||||
|
|
||||||
if (get_settings('use_trackback')) {
|
if (get_settings('use_trackback')) {
|
||||||
$form_trackback = '<p><label for="trackback">' . sprintf(__('<a href="%s" title="Help on trackbacks"><strong>TrackBack</strong> a <acronym title="Uniform Resource Locator">URL</acronym></a>:</label> (Separate multiple <abbr title="Universal Resource Identifier">URI</abbr>s with spaces.)<br />'), 'http://wordpress.org/docs/reference/post/#trackback') .
|
$form_trackback = '<p><label for="trackback">' . sprintf(__('<a href="%s" title="Help on trackbacks"><strong>TrackBack</strong> a <abbr title="Universal Resource Identifier">URI</abbr></a>:</label> (Separate multiple <abbr title="Universal Resource Identifier">URI</abbr>s with spaces.)<br />'), 'http://wordpress.org/docs/reference/post/#trackback') .
|
||||||
'<input type="text" name="trackback_url" style="width: 360px" id="trackback" tabindex="7" /></p>';
|
'<input type="text" name="trackback_url" style="width: 360px" id="trackback" tabindex="7" /></p>';
|
||||||
} else {
|
} else {
|
||||||
$form_trackback = '';
|
$form_trackback = '';
|
||||||
|
|
Loading…
Reference in New Issue