Make WordPress Core


Ignore:
Timestamp:
05/19/2010 06:36:52 PM (15 years ago)
Author:
ryan
Message:

Fix viewing autosave revision for custom post types. Props duck_. fixes #13110

File:
1 edited

Legend:

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

    r14687 r14749  
    11701170
    11711171            if ( $post->ID != $revision->ID && $can_edit_post )
    1172                 $actions = '<a href="' . wp_nonce_url( add_query_arg( array( 'revision' => $revision->ID, 'diff' => false, 'action' => 'restore' ) ), "restore-post_$post->ID|$revision->ID" ) . '">' . __( 'Restore' ) . '</a>';
     1172                $actions = '<a href="' . wp_nonce_url( add_query_arg( array( 'revision' => $revision->ID, 'action' => 'restore' ) ), "restore-post_$post->ID|$revision->ID" ) . '">' . __( 'Restore' ) . '</a>';
    11731173            else
    11741174                $actions = '';
    11751175
    11761176            $rows .= "<tr$class>\n";
    1177             $rows .= "\t<th style='white-space: nowrap' scope='row'><input type='radio' name='left' value='$revision->ID'$left_checked />\n";
     1177            $rows .= "\t<th style='white-space: nowrap' scope='row'><input type='radio' name='left' value='$revision->ID'$left_checked /></th>\n";
    11781178            $rows .= "\t<th style='white-space: nowrap' scope='row'><input type='radio' name='right' value='$revision->ID'$right_checked /></th>\n";
    11791179            $rows .= "\t<td>$date</td>\n";
Note: See TracChangeset for help on using the changeset viewer.