Edit Comment screen: remove the "View Comment" button (actually a link) from the publish meta box. Mimic the "Edit URL/Permalink" UI from the Edit Post screen to show the comment link below the screen title, but make it an actual link, not a button.
Props ocean90, DrewAPicture, wonderboymusic. Fixes #19168. Built from https://develop.svn.wordpress.org/trunk@34072 git-svn-id: http://core.svn.wordpress.org/trunk@34040 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
1cbda0e1eb
commit
4dbaf63b67
|
@ -89,7 +89,8 @@ input#link_url {
|
||||||
margin-top: -1px;
|
margin-top: -1px;
|
||||||
}
|
}
|
||||||
|
|
||||||
#edit-slug-box {
|
#edit-slug-box,
|
||||||
|
#comment-link-box {
|
||||||
line-height: 24px;
|
line-height: 24px;
|
||||||
min-height: 25px; /* Yes, line-height + 1 */
|
min-height: 25px; /* Yes, line-height + 1 */
|
||||||
margin-top: 5px;
|
margin-top: 5px;
|
||||||
|
@ -102,6 +103,11 @@ input#link_url {
|
||||||
font-size: 11px;
|
font-size: 11px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#comment-link-box {
|
||||||
|
margin: 5px 0;
|
||||||
|
padding: 0 5px;
|
||||||
|
}
|
||||||
|
|
||||||
#editable-post-name-full {
|
#editable-post-name-full {
|
||||||
display: none;
|
display: none;
|
||||||
}
|
}
|
||||||
|
|
|
@ -89,7 +89,8 @@ input#link_url {
|
||||||
margin-top: -1px;
|
margin-top: -1px;
|
||||||
}
|
}
|
||||||
|
|
||||||
#edit-slug-box {
|
#edit-slug-box,
|
||||||
|
#comment-link-box {
|
||||||
line-height: 24px;
|
line-height: 24px;
|
||||||
min-height: 25px; /* Yes, line-height + 1 */
|
min-height: 25px; /* Yes, line-height + 1 */
|
||||||
margin-top: 5px;
|
margin-top: 5px;
|
||||||
|
@ -102,6 +103,11 @@ input#link_url {
|
||||||
font-size: 11px;
|
font-size: 11px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#comment-link-box {
|
||||||
|
margin: 5px 0;
|
||||||
|
padding: 0 5px;
|
||||||
|
}
|
||||||
|
|
||||||
#editable-post-name-full {
|
#editable-post-name-full {
|
||||||
display: none;
|
display: none;
|
||||||
}
|
}
|
||||||
|
|
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
|
@ -22,6 +22,17 @@ if ( !defined('ABSPATH') )
|
||||||
|
|
||||||
<div id="post-body" class="metabox-holder columns-2">
|
<div id="post-body" class="metabox-holder columns-2">
|
||||||
<div id="post-body-content" class="edit-form-section edit-comment-section">
|
<div id="post-body-content" class="edit-form-section edit-comment-section">
|
||||||
|
<?php
|
||||||
|
if ( $comment->comment_post_ID > 0 ):
|
||||||
|
$comment_link = get_comment_link( $comment );
|
||||||
|
?>
|
||||||
|
<div class="inside">
|
||||||
|
<div id="comment-link-box">
|
||||||
|
<strong><?php _ex( 'Permalink:', 'comment' ); ?></strong>
|
||||||
|
<span id="sample-permalink"><a href="<?php echo $comment_link; ?>"><?php echo $comment_link; ?></a></span>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<?php endif; ?>
|
||||||
<div id="namediv" class="stuffbox">
|
<div id="namediv" class="stuffbox">
|
||||||
<div class="inside">
|
<div class="inside">
|
||||||
<fieldset>
|
<fieldset>
|
||||||
|
@ -67,13 +78,6 @@ if ( !defined('ABSPATH') )
|
||||||
<div class="submitbox" id="submitcomment">
|
<div class="submitbox" id="submitcomment">
|
||||||
<div id="minor-publishing">
|
<div id="minor-publishing">
|
||||||
|
|
||||||
<div id="minor-publishing-actions">
|
|
||||||
<div id="preview-action">
|
|
||||||
<a class="preview button" href="<?php echo get_comment_link( $comment ); ?>" target="_blank"><?php _e('View Comment'); ?></a>
|
|
||||||
</div>
|
|
||||||
<div class="clear"></div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div id="misc-publishing-actions">
|
<div id="misc-publishing-actions">
|
||||||
|
|
||||||
<fieldset class="misc-pub-section misc-pub-comment-status" id="comment-status-radio">
|
<fieldset class="misc-pub-section misc-pub-comment-status" id="comment-status-radio">
|
||||||
|
@ -120,7 +124,7 @@ if ( current_user_can( 'edit_post', $post_id ) ) {
|
||||||
if ( $comment->comment_parent ) :
|
if ( $comment->comment_parent ) :
|
||||||
$parent = get_comment( $comment->comment_parent );
|
$parent = get_comment( $comment->comment_parent );
|
||||||
if ( $parent ) :
|
if ( $parent ) :
|
||||||
$parent_link = esc_url( get_comment_link( $comment ) );
|
$parent_link = esc_url( get_comment_link( $parent ) );
|
||||||
$name = get_comment_author( $parent );
|
$name = get_comment_author( $parent );
|
||||||
?>
|
?>
|
||||||
<div class="misc-pub-section misc-pub-reply-to">
|
<div class="misc-pub-section misc-pub-reply-to">
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
*
|
*
|
||||||
* @global string $wp_version
|
* @global string $wp_version
|
||||||
*/
|
*/
|
||||||
$wp_version = '4.4-alpha-34071';
|
$wp_version = '4.4-alpha-34072';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||||
|
|
Loading…
Reference in New Issue