Make WordPress Core

Changeset 24150


Ignore:
Timestamp:
05/01/2013 03:11:44 AM (12 years ago)
Author:
SergeyBiryukov
Message:

Don't translate a single placeholder. Remove unused variables. props settle, DrewAPicture. fixes #24229.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/post-template.php

    r24129 r24150  
    14011401 *
    14021402 * @uses wp_get_post_revisions()
    1403  * @uses wp_post_revision_title()
     1403 * @uses wp_post_revision_title_expanded()
    14041404 * @uses get_edit_post_link()
    14051405 * @uses get_the_author_meta()
     
    14211421        return;
    14221422
    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 = '';
    14291424    foreach ( $revisions as $revision ) {
    14301425        if ( !current_user_can( 'read_post', $revision->ID ) )
     
    14351430            continue;
    14361431
    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";
    14421433    }
    14431434
Note: See TracChangeset for help on using the changeset viewer.