Skip to content

Commit

Permalink
Update class-posts-widget.php
Browse files Browse the repository at this point in the history
  • Loading branch information
ajaydsouza authored Oct 4, 2024
1 parent 43678b4 commit 4abb726
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion includes/frontend/widgets/class-posts-widget.php
Original file line number Diff line number Diff line change
Expand Up @@ -252,7 +252,7 @@ public function widget( $args, $instance ) {
global $post;

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

if ( Display::exclude_on( $post, $args ) ) {
Expand Down

0 comments on commit 4abb726

Please sign in to comment.