diff --git a/includes/class-gravityview-admin-bar.php b/includes/class-gravityview-admin-bar.php index 85f9689dc..d5004c5cd 100644 --- a/includes/class-gravityview-admin-bar.php +++ b/includes/class-gravityview-admin-bar.php @@ -131,7 +131,7 @@ function add_edit_view_and_form_link() { if ( ! GVCommon::has_cap( [ 'edit_gravityviews', 'edit_gravityview', 'gravityforms_edit_forms' ], - $post->ID + isset( $post ) ? $post->ID : null ) ) { return; }