Skip to content
This repository has been archived by the owner on Dec 27, 2022. It is now read-only.

Commit

Permalink
Ensure hiding of published UI only applies to snapshot post type
Browse files Browse the repository at this point in the history
  • Loading branch information
westonruter committed Jul 29, 2016
1 parent 68e8f34 commit a928d18
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions php/class-post-type.php
Original file line number Diff line number Diff line change
Expand Up @@ -638,7 +638,7 @@ public function show_publish_error_admin_notice() {
* Disable the revision revert UI for published posts.
*/
public function disable_revision_ui_for_published_posts() {
if ( 'publish' !== get_post_status() ) {
if ( 'publish' !== get_post_status() || self::SLUG !== get_post_type() ) {
return;
}
?>
Expand All @@ -656,7 +656,7 @@ public function disable_revision_ui_for_published_posts() {
* @param \WP_Post $post Current post.
*/
public function hide_disabled_publishing_actions( $post ) {
if ( 'publish' !== $post->post_status ) {
if ( 'publish' !== $post->post_status || self::SLUG !== $post->post_type ) {
return;
}
?>
Expand Down

0 comments on commit a928d18

Please sign in to comment.