fix deprecated warning in dashboard setup (#38776)

Co-authored-by: Ron Rennick <ronald.rennick@automattic.com>
This commit is contained in:
Ron Rennick 2023-06-19 15:05:07 -03:00 committed by GitHub
parent 3b038f3475
commit 08c0d0ac4c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 1 deletions

View File

@ -0,0 +1,4 @@
Significance: patch
Type: fix
fix deprecated warning in dashboard setup

View File

@ -91,7 +91,7 @@ if ( ! class_exists( 'WC_Admin_Dashboard_Setup', false ) ) :
* @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;