Changeset 24150
- Timestamp:
- 05/01/2013 03:11:44 AM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/post-template.php
r24129 r24150 1401 1401 * 1402 1402 * @uses wp_get_post_revisions() 1403 * @uses wp_post_revision_title ()1403 * @uses wp_post_revision_title_expanded() 1404 1404 * @uses get_edit_post_link() 1405 1405 * @uses get_the_author_meta() … … 1421 1421 return; 1422 1422 1423 /* translators: post revision: 1: when, 2: author name */ 1424 $titlef = _x( '%1$s', 'post revision' ); 1425 1426 $rows = $right_checked = ''; 1427 $class = false; 1428 $can_edit_post = current_user_can( 'edit_post', $post->ID ); 1423 $rows = ''; 1429 1424 foreach ( $revisions as $revision ) { 1430 1425 if ( !current_user_can( 'read_post', $revision->ID ) ) … … 1435 1430 continue; 1436 1431 1437 $date = wp_post_revision_title_expanded( $revision ); 1438 1439 $title = sprintf( $titlef, $date ); 1440 $rows .= "\t<li>$title</li>\n"; 1441 1432 $rows .= "\t<li>" . wp_post_revision_title_expanded( $revision ) . "</li>\n"; 1442 1433 } 1443 1434
Note: See TracChangeset
for help on using the changeset viewer.