Skip to content

Commit

Permalink
fix: widget offset
Browse files Browse the repository at this point in the history
  • Loading branch information
Soare-Robert-Daniel committed May 24, 2023
1 parent 79dbf7f commit 874e738
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions inc/class-registration.php
Original file line number Diff line number Diff line change
Expand Up @@ -979,8 +979,11 @@ public static function get_active_widgets_content() {
$sidebar = is_active_widget( $widget['callback'], $widget['id'] );

if ( $sidebar && 'wp_inactive_widgets' !== $sidebar ) {
$key = $widget['params'][0]['number'];
$valid_widgets[] = (object) $widget_data[ $key ];
$key = $widget['params'][0]['number'];

if ( isset( $widget_data[ $key ] ) ) {
$valid_widgets[] = (object) $widget_data[ $key ];
}
}
}

Expand Down

0 comments on commit 874e738

Please sign in to comment.