| 181 | <?php endif; |
| 182 | |
| 183 | $the_revisions = wp_get_post_revisions( $post->ID ); |
| 184 | $revision_count = count( $the_revisions ); |
| 185 | if ( post_type_supports( $post_type, 'revisions' ) && 0 < $revision_count ) : |
| 186 | ?> |
| 187 | <div id="post-revisions-link" class="misc-pub-section" > |
| 188 | <span id="revisions-link"><?php printf( _n( '%d Revision', '%d Revisions', $revision_count ), $revision_count ); ?></span> |
| 189 | <a href="revision.php?revision=<?php echo key( $the_revisions ) ?>&action=edit" class="edit-revisions hide-if-no-js"><?php _e( 'View' ) ?></a> |
| 190 | </div> |