Skip to content

Commit

Permalink
Proper fetching of clone history data in CloneCredits widget.
Browse files Browse the repository at this point in the history
  • Loading branch information
boonebgorges committed Jul 22, 2024
1 parent 3babc1e commit cdc212a
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions classes/Widget/CloneCredits.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,7 @@ public function __construct() {
public function widget( $args, $instance ) {
$group_id = openlab_get_group_id_by_blog_id( get_current_blog_id() );
$group = groups_get_group( $group_id );
$history = openlab_get_group_clone_history_data( $group_id );
$history = openlab_get_group_clone_history_list( $history );
$history = openlab_get_group_clone_history_list( $group_id, $group->creator_id );

// phpcs:ignore WordPress.Security.EscapeOutput
echo $args['before_widget'];
Expand Down

0 comments on commit cdc212a

Please sign in to comment.