Skip to content

Commit

Permalink
Revert "Fix CS."
Browse files Browse the repository at this point in the history
This reverts commit de1dc28.
  • Loading branch information
Anton Vlasenko committed Nov 21, 2024
1 parent de1dc28 commit 3528076
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -690,9 +690,8 @@ public function prepare_item_for_response( $item, $request ) {
'instance' => null,
);

if (
'wp_inactive_widgets' !== $sidebar_id &&
rest_is_field_included( 'rendered', $fields )
if ( 'wp_inactive_widgets' !== $sidebar_id
&& rest_is_field_included( 'rendered', $fields )
) {
$prepared['rendered'] = trim( wp_render_widget( $widget_id, $sidebar_id ) );
}
Expand Down

0 comments on commit 3528076

Please sign in to comment.