Media: Don't indent action links if there is no media icon.

See #32254.


Built from https://develop.svn.wordpress.org/trunk@33269


git-svn-id: http://core.svn.wordpress.org/trunk@33241 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Konstantin Obenland 2015-07-14 17:46:24 +00:00
parent 2a0ddf8523
commit 4f94d3a969
6 changed files with 8 additions and 6 deletions

View File

@ -364,7 +364,7 @@ table.media .column-title .media-icon img {
vertical-align: top; /* Remove descender white-space. */
}
table.media .column-title .row-actions {
table.media .column-title .has-media-icon ~ .row-actions {
margin-right: 70px; /* 60px image + margin */
}

View File

@ -364,7 +364,7 @@ table.media .column-title .media-icon img {
vertical-align: top; /* Remove descender white-space. */
}
table.media .column-title .row-actions {
table.media .column-title .has-media-icon ~ .row-actions {
margin-left: 70px; /* 60px image + margin */
}

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -347,8 +347,10 @@ class WP_Media_List_Table extends WP_List_Table {
$link_end = '</a>';
}
$class = $thumb ? ' class="has-media-icon"' : '';
?>
<strong>
<strong<?php echo $class; ?>>
<?php echo $link_start; ?>
<?php if ( $thumb ) : ?>
<span class="media-icon <?php echo sanitize_html_class( $mime . '-icon' ); ?>"><?php echo $thumb; ?></span>

View File

@ -4,7 +4,7 @@
*
* @global string $wp_version
*/
$wp_version = '4.3-beta2-33268';
$wp_version = '4.3-beta2-33269';
/**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.