Ticket #9681: 9681.diff
File 9681.diff, 1.2 KB (added by , 15 years ago) |
---|
-
wp-includes/post-template.php
1300 1300 1301 1301 $class = $class ? '' : " class='alternate'"; 1302 1302 1303 $actions = array(); 1303 1304 if ( $post->ID != $revision->ID && $can_edit_post ) 1304 $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>'; 1305 else 1306 $actions = ''; 1305 $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>'; 1307 1306 1307 $actions = apply_filters('post_revision_actions', $actions, $revision, $post); 1308 $actions = implode(' | ', $actions); 1309 1308 1310 $rows .= "<tr$class>\n"; 1309 1311 $rows .= "\t<th style='white-space: nowrap' scope='row'><input type='radio' name='left' value='$revision->ID'$left_checked />\n"; 1310 1312 $rows .= "\t<th style='white-space: nowrap' scope='row'><input type='radio' name='right' value='$revision->ID'$right_checked /></th>\n";