Install pages action should return array instead of string.

Fixes #13256.
This commit is contained in:
Akeda Bagus 2017-02-21 12:01:27 +07:00
parent 376c069f47
commit 43a63985c6
No known key found for this signature in database
GPG Key ID: 5536B6FE55A7F4B2
1 changed files with 1 additions and 1 deletions

View File

@ -427,7 +427,7 @@ class WC_REST_System_Status_Tools_Controller extends WC_REST_Controller {
break;
case 'install_pages' :
WC_Install::create_pages();
return __( 'All missing WooCommerce pages was installed successfully.', 'woocommerce' );
$message = __( 'All missing WooCommerce pages was installed successfully.', 'woocommerce' );
break;
case 'delete_taxes' :