Skip to content

Commit

Permalink
fix deprecated warning in dashboard setup (#38776)
Browse files Browse the repository at this point in the history
Co-authored-by: Ron Rennick <ronald.rennick@automattic.com>
  • Loading branch information
rrennick and Ron Rennick committed Jun 19, 2023
1 parent 3b038f3 commit 08c0d0a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions plugins/woocommerce/changelog/fix-dashboard-setup-warning
@@ -0,0 +1,4 @@
Significance: patch
Type: fix

fix deprecated warning in dashboard setup
Expand Up @@ -91,7 +91,7 @@ public function render() {
* @return string
*/
public function get_button_link( $task ) {
$url = $task->get_json()['actionUrl'];
$url = (string) $task->get_json()['actionUrl'];

if ( substr( $url, 0, 4 ) === 'http' ) {
return $url;
Expand Down

0 comments on commit 08c0d0a

Please sign in to comment.