fix deprecated warning in dashboard setup (#38776)
Co-authored-by: Ron Rennick <ronald.rennick@automattic.com>
This commit is contained in:
parent
3b038f3475
commit
08c0d0ac4c
|
@ -0,0 +1,4 @@
|
|||
Significance: patch
|
||||
Type: fix
|
||||
|
||||
fix deprecated warning in dashboard setup
|
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue