diff --git a/plugins/woocommerce/changelog/fix-dashboard-setup-warning b/plugins/woocommerce/changelog/fix-dashboard-setup-warning new file mode 100644 index 00000000000..ff9a59156ec --- /dev/null +++ b/plugins/woocommerce/changelog/fix-dashboard-setup-warning @@ -0,0 +1,4 @@ +Significance: patch +Type: fix + +fix deprecated warning in dashboard setup diff --git a/plugins/woocommerce/includes/admin/class-wc-admin-dashboard-setup.php b/plugins/woocommerce/includes/admin/class-wc-admin-dashboard-setup.php index dcc2e7e8422..e58e283cfc2 100644 --- a/plugins/woocommerce/includes/admin/class-wc-admin-dashboard-setup.php +++ b/plugins/woocommerce/includes/admin/class-wc-admin-dashboard-setup.php @@ -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;