Skip to content

Commit

Permalink
Update class-posts-widget.php
Browse files Browse the repository at this point in the history
Fixes #171
  • Loading branch information
ajaydsouza authored Oct 4, 2024
1 parent d096e59 commit 5beec9d
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions includes/frontend/widgets/class-posts-widget.php
Original file line number Diff line number Diff line change
Expand Up @@ -251,6 +251,10 @@ public function update( $new_instance, $old_instance ) {
public function widget( $args, $instance ) {
global $post;

if ( ! isset( $args['widget_id'] ) ) {
$args['widget_id'] = (int) $this->id;
}

Check failure on line 257 in includes/frontend/widgets/class-posts-widget.php

View workflow job for this annotation

GitHub Actions / PHPCS check

Whitespace found at end of line
if ( Display::exclude_on( $post, $args ) ) {
return;
}
Expand Down

0 comments on commit 5beec9d

Please sign in to comment.