Ticket #23396: revisions-revisions-php-box-1.diff
File revisions-revisions-php-box-1.diff, 3.1 KB (added by , 12 years ago) |
---|
-
wp-includes/post-template.php
1371 1371 } 1372 1372 1373 1373 /* translators: post revision: 1: when, 2: author name */ 1374 $titlef = _x( ' %1$s by%2$s', 'post revision' );1374 $titlef = _x( '<strong>%1$s:</strong> %2$s', 'post revision' ); 1375 1375 1376 1376 if ( $parent ) 1377 1377 array_unshift( $revisions, $post ); … … 1387 1387 1388 1388 $date = wp_post_revision_title( $revision ); 1389 1389 $name = get_the_author_meta( 'display_name', $revision->post_author ); 1390 1390 1391 1391 1392 if ( 'form-table' == $format ) { 1392 1393 if ( $left ) … … 1402 1403 else 1403 1404 $actions = ''; 1404 1405 1406 $avatar = get_avatar( $revision->post_author, 24 ); 1405 1407 $rows .= "<tr$class>\n"; 1406 1408 $rows .= "\t<th style='white-space: nowrap' scope='row'><input type='radio' name='left' value='$revision->ID'$left_checked /></th>\n"; 1407 1409 $rows .= "\t<th style='white-space: nowrap' scope='row'><input type='radio' name='right' value='$revision->ID'$right_checked /></th>\n"; 1408 $rows .= "\t<td>$date</td>\n"; 1409 $rows .= "\t<td>$name</td>\n"; 1410 $rows .= "\t<td class='revision-details'>$avatar <strong>$name:</strong> $date</td>\n"; 1410 1411 $rows .= "\t<td class='action-links'>$actions</td>\n"; 1411 1412 $rows .= "</tr>\n"; 1412 1413 } else { 1413 $title = sprintf( $titlef, $date, $name ); 1414 $rows .= "\t<li>$title</li>\n"; 1414 $avatar = get_avatar( $revision->post_author, 18 ); 1415 $title = sprintf( $titlef, $name, $date ); 1416 $rows .= "\t<li>$avatar $title</li>\n"; 1415 1417 } 1416 1418 } 1417 1419 … … 1432 1434 <table class="widefat post-revisions" cellspacing="0" id="post-revisions"> 1433 1435 <col /> 1434 1436 <col /> 1437 <col style="width: 53%" /> 1435 1438 <col style="width: 33%" /> 1436 <col style="width: 33%" />1437 <col style="width: 33%" />1438 1439 <thead> 1439 1440 <tr> 1440 1441 <th scope="col"><?php /* translators: column name in revisions */ _ex( 'Old', 'revisions column name' ); ?></th> 1441 1442 <th scope="col"><?php /* translators: column name in revisions */ _ex( 'New', 'revisions column name' ); ?></th> 1442 <th scope="col"><?php /* translators: column name in revisions */ _ex( 'Date Created', 'revisions column name' ); ?></th> 1443 <th scope="col"><?php _e( 'Author' ); ?></th> 1443 <th scope="col"><?php /* translators: column name in revisions */ _ex( 'Revision Details', 'revisions column name' ); ?></th> 1444 1444 <th scope="col" class="action-links"><?php _e( 'Actions' ); ?></th> 1445 1445 </tr> 1446 1446 </thead> -
wp-admin/css/wp-admin.css
8585 8585 .locale-lt-lt .inline-edit-row fieldset label span.input-text-wrap { 8586 8586 margin-left: 8em; 8587 8587 } 8588 ul.post-revisions img { 8589 float: left; 8590 margin: 2px; 8591 } 8592 ul.post-revisions li { 8593 border-bottom: 1px solid #FFF; 8594 } 8595 ul.post-revisions li a { 8596 line-height: 24px; 8597 } 8598 table#post-revisions tr td.revision-details { 8599 line-height: 30px; 8600 padding: 0; 8601 vertical-align: middle;; 8602 } 8603 table#post-revisions tr td img { 8604 float: left; 8605 margin: 4px; 8606 } 8607 No newline at end of file