Skip to content

Commit

Permalink
Merge pull request #7680 from Automattic/fix/view-results-block-depre…
Browse files Browse the repository at this point in the history
…cated-notice

Fix PHP deprecation notice in View Results block
  • Loading branch information
donnapep committed Sep 6, 2024
2 parents bc95e04 + 4db01b7 commit ac2ab6b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
4 changes: 4 additions & 0 deletions changelog/fix-view-results-block-deprecated-notice
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
Significance: patch
Type: fixed

Fix PHP deprecation notice in View Results block
3 changes: 2 additions & 1 deletion includes/blocks/class-sensei-block-view-results.php
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,8 @@ public function render( $attributes, $content ): string {
}

$results_link = Sensei_Course::get_view_results_link( $course_id );
parse_str( wp_parse_url( $results_link, PHP_URL_QUERY ), $results_link_query_params );

parse_str( (string) wp_parse_url( $results_link, PHP_URL_QUERY ), $results_link_query_params );

$form_inputs = '';
foreach ( $results_link_query_params as $name => $value ) {
Expand Down

0 comments on commit ac2ab6b

Please sign in to comment.