This commit is contained in:
Elizabeth Pizzuti 2021-02-10 17:57:51 -06:00 committed by GitHub
parent d61cb9faf3
commit bc5c6a700b
26 changed files with 267 additions and 254 deletions

View File

@ -93,7 +93,7 @@ export class ProductStockCard extends Component {
'success',
sprintf(
/* translators: %s = name of the product having stock updated */
__( '%s stock updated.', 'woocommerce-admin' ),
__( '%s stock updated', 'woocommerce-admin' ),
product.name
),
{
@ -117,7 +117,7 @@ export class ProductStockCard extends Component {
'error',
sprintf(
/* translators: %s = name of the product having stock updated */
__( '%s stock could not be updated.', 'woocommerce-admin' ),
__( '%s stock could not be updated', 'woocommerce-admin' ),
product.name
)
);

View File

@ -21,7 +21,7 @@ const page = {
content: (
<PageContent
title={ __(
'Welcome to your new store management experience.',
'Welcome to your new store management experience',
'woocommerce-admin'
) }
body={ interpolateComponents( {

View File

@ -36,7 +36,7 @@ const pages = [
content: (
<PageContent
title={ __(
'A personalized inbox full of relevant advice.',
'A personalized inbox full of relevant advice',
'woocommerce-admin'
) }
body={ __(
@ -51,7 +51,7 @@ const pages = [
content: (
<PageContent
title={ __(
'Good data leads to smart business decisions.',
'Good data leads to smart business decisions',
'woocommerce-admin'
) }
body={

View File

@ -48,7 +48,7 @@ class InboxNoteAction extends Component {
.then( () => {
createNotice(
'success',
__( 'Message dismissed.', 'woocommerce-admin' ),
__( 'Message dismissed', 'woocommerce-admin' ),
{
actions: [
{
@ -70,7 +70,7 @@ class InboxNoteAction extends Component {
createNotice(
'error',
__(
'Message could not be dismissed.',
'Message could not be dismissed',
'woocommerce-admin'
)
);
@ -80,10 +80,7 @@ class InboxNoteAction extends Component {
.then( ( notes ) => {
createNotice(
'success',
__(
'All messages dismissed.',
'woocommerce-admin'
),
__( 'All messages dismissed', 'woocommerce-admin' ),
{
actions: [
{
@ -110,7 +107,7 @@ class InboxNoteAction extends Component {
createNotice(
'error',
__(
'Message could not be dismissed.',
'Message could not be dismissed',
'woocommerce-admin'
)
);

View File

@ -58,7 +58,7 @@ class ProfileWizard extends Component {
createNotice(
'error',
__(
'There was a problem finishing the profile wizard.',
'There was a problem finishing the setup wizard',
'woocommerce-admin'
)
);
@ -269,7 +269,7 @@ class ProfileWizard extends Component {
createNotice(
'error',
__(
'There was a problem skipping the setup wizard.',
'There was a problem skipping the setup wizard',
'woocommerce-admin'
)
);

View File

@ -67,7 +67,7 @@ class Benefits extends Component {
createNotice(
'error',
__(
'There was a problem updating your preferences.',
'There was a problem updating your preferences',
'woocommerce-admin'
)
);
@ -112,7 +112,7 @@ class Benefits extends Component {
createNotice(
'error',
__(
'There was a problem updating your preferences.',
'There was a problem updating your preferences',
'woocommerce-admin'
)
);

View File

@ -221,7 +221,7 @@ class BusinessDetails extends Component {
createNotice(
'error',
__(
'There was a problem updating your business details.',
'There was a problem updating your business details',
'woocommerce-admin'
)
);

View File

@ -148,7 +148,7 @@ class BusinessDetails extends Component {
createNotice(
'error',
__(
'There was a problem updating your business details.',
'There was a problem updating your business details',
'woocommerce-admin'
)
);

View File

@ -102,7 +102,7 @@ class Industry extends Component {
createNotice(
'error',
__(
'There was a problem updating your industries.',
'There was a problem updating your industries',
'woocommerce-admin'
)
);

View File

@ -73,7 +73,7 @@ export class ProductTypes extends Component {
createNotice(
'error',
__(
'There was a problem updating your product types.',
'There was a problem updating your product types',
'woocommerce-admin'
)
)

View File

@ -177,7 +177,7 @@ class StoreDetails extends Component {
createNotice(
'error',
__(
'There was a problem saving your store details.',
'There was a problem saving your store details',
'woocommerce-admin'
)
);

View File

@ -74,7 +74,7 @@ class Theme extends Component {
createNotice(
'error',
__(
'There was a problem selecting your store theme.',
'There was a problem selecting your store theme',
'woocommerce-admin'
)
);
@ -115,7 +115,7 @@ class Theme extends Component {
'success',
sprintf(
__(
'%s was installed on your site.',
'%s was installed on your site',
'woocommerce-admin'
),
response.name
@ -141,7 +141,7 @@ class Theme extends Component {
'success',
sprintf(
__(
'%s was activated on your site.',
'%s was activated on your site',
'woocommerce-admin'
),
response.name

View File

@ -51,7 +51,7 @@ class UsageModal extends Component {
createNotice(
'error',
__(
'There was a problem updating your preferences.',
'There was a problem updating your preferences',
'woocommerce-admin'
)
);

View File

@ -135,7 +135,10 @@ export class TaskDashboard extends Component {
isComplete={ isTaskListComplete }
query={ query }
tasks={ setupTasks }
title={ __( 'Finish setup', 'woocommerce-admin' ) }
title={ __(
'Get ready to start selling',
'woocommerce-admin'
) }
trackedCompletedTasks={ trackedCompletedTasks || [] }
/>
) }

View File

@ -86,14 +86,14 @@ export function getAllTasks( {
} = profileItems;
let purchaseAndInstallText = __(
'Add paid extensions to my store',
'Add paid extensions to your store',
'woocommerce-admin'
);
if ( uniqueItemsList.length === 1 ) {
const { name: itemName } = uniqueItemsList[ 0 ];
const purchaseAndInstallFormat = __(
'Add %s to my store',
'Add %s to your store',
'woocommerce-admin'
);
purchaseAndInstallText = sprintf( purchaseAndInstallFormat, itemName );
@ -129,7 +129,7 @@ export function getAllTasks( {
},
{
key: 'products',
title: __( 'Add my products', 'woocommerce-admin' ),
title: __( 'Add products', 'woocommerce-admin' ),
container: <Products />,
onClick: () => {
onTaskSelect( 'products' );
@ -183,7 +183,7 @@ export function getAllTasks( {
},
{
key: 'payments',
title: __( 'Set up payments', 'woocommerce-admin' ),
title: __( 'Choose payment methods', 'woocommerce-admin' ),
container: <Payments />,
completed: hasPaymentGateway,
onClick: () => {
@ -196,7 +196,7 @@ export function getAllTasks( {
},
{
key: 'tax',
title: __( 'Set up tax', 'woocommerce-admin' ),
title: __( 'Add tax rates', 'woocommerce-admin' ),
container: <Tax />,
onClick: () => {
onTaskSelect( 'tax' );
@ -209,7 +209,7 @@ export function getAllTasks( {
},
{
key: 'shipping',
title: __( 'Set up shipping', 'woocommerce-admin' ),
title: __( 'Set up shipping costs', 'woocommerce-admin' ),
container: <Shipping />,
onClick: () => {
onTaskSelect( 'shipping' );
@ -224,7 +224,7 @@ export function getAllTasks( {
},
{
key: 'appearance',
title: __( 'Personalize my store', 'woocommerce-admin' ),
title: __( 'Personalize your store', 'woocommerce-admin' ),
container: <Appearance />,
onClick: () => {
onTaskSelect( 'appearance' );

View File

@ -116,7 +116,7 @@ class Appearance extends Component {
createNotice(
'error',
__(
'There was an error importing some of the sample products.',
'There was an error importing some of the sample products',
'woocommerce-admin'
)
);
@ -124,7 +124,7 @@ class Appearance extends Component {
createNotice(
'success',
__(
'All sample products have been imported.',
'All sample products have been imported',
'woocommerce-admin'
)
);
@ -210,7 +210,7 @@ class Appearance extends Component {
this.setState( { isUpdatingLogo: false } );
createNotice(
'success',
__( 'Store logo updated sucessfully.', 'woocommerce-admin' )
__( 'Store logo updated sucessfully', 'woocommerce-admin' )
);
this.completeStep();
} else {
@ -244,7 +244,7 @@ class Appearance extends Component {
createNotice(
'success',
__(
"🎨 Your store is looking great! Don't forget to continue personalizing it.",
"🎨 Your store is looking great! Don't forget to continue personalizing it",
'woocommerce-admin'
)
);

View File

@ -18,7 +18,7 @@ class Connect extends Component {
if ( query.deny === '1' ) {
this.errorMessage(
__(
'You must click approve to install your extensions and connect to WooCommerce.com.',
'You must click approve to install your extensions and connect to WooCommerce.com',
'woocommerce-admin'
)
);
@ -45,7 +45,7 @@ class Connect extends Component {
errorMessage(
message = __(
'There was an error connecting to WooCommerce.com. Please try again.',
'There was an error connecting to WooCommerce.com. Please try again',
'woocommerce-admin'
)
) {
@ -88,7 +88,7 @@ class Connect extends Component {
this.props.createNotice(
'success',
__(
'Store connected to WooCommerce.com and extensions are being installed.',
'Store connected to WooCommerce.com and extensions are being installed',
'woocommerce-admin'
)
);

View File

@ -51,7 +51,7 @@ const subTasks = [
},
{
key: 'importProducts',
title: __( 'Import', 'woocommerce-admin' ),
title: __( 'Import via CSV', 'woocommerce-admin' ),
content: __(
'For larger stores we recommend importing all products at once via CSV file',
'woocommerce-admin'
@ -66,7 +66,7 @@ const subTasks = [
},
{
key: 'migrateProducts',
title: __( 'Migrate', 'woocommerce-admin' ),
title: __( 'Import from another service', 'woocommerce-admin' ),
content: __(
'For stores currently selling elsewhere we suggest using a product migration service',
'woocommerce-admin'

View File

@ -147,7 +147,7 @@ export class Shipping extends Component {
createNotice(
'success',
__(
"📦 Shipping is done! Don't worry, you can always change it later.",
"📦 Shipping is done! Don't worry, you can always change it later",
'woocommerce-admin'
)
);

View File

@ -121,7 +121,7 @@ class ShippingRates extends Component {
createNotice(
'success',
__( 'Your shipping rates have been updated.', 'woocommerce-admin' )
__( 'Your shipping rates have been updated', 'woocommerce-admin' )
);
this.props.onComplete();

View File

@ -46,7 +46,7 @@ export default class StoreLocation extends Component {
createNotice(
'error',
__(
'There was a problem saving your store location.',
'There was a problem saving your store location',
'woocommerce-admin'
)
);

View File

@ -155,7 +155,7 @@ class Tax extends Component {
createNotice(
'error',
__(
'There was a problem updating your tax settings.',
'There was a problem updating your tax settings',
'woocommerce-admin'
)
);

View File

@ -104,7 +104,7 @@ describe( 'TaskDashboard and TaskList', () => {
isDismissable: true,
};
it( 'renders the "Finish setup" and "Extensions setup" tasks lists', async () => {
it( 'renders the "Get ready to start selling" and "Extensions setup" tasks lists', async () => {
apiFetch.mockResolvedValue( {} );
getAllTasks.mockReturnValue( tasks );
const { container } = render(
@ -117,7 +117,9 @@ describe( 'TaskDashboard and TaskList', () => {
);
// Wait for the setup task list to render.
expect( await findByText( container, 'Finish setup' ) ).toBeDefined();
expect(
await findByText( container, 'Get ready to start selling' )
).toBeDefined();
// Wait for the extension task list to render.
expect(
@ -183,7 +185,7 @@ describe( 'TaskDashboard and TaskList', () => {
/>
);
expect( queryByText( 'Finish setup' ) ).toBeNull();
expect( queryByText( 'Get ready to start selling' ) ).toBeNull();
expect( queryByText( 'Extensions setup' ) ).not.toBeNull();
} );
@ -249,7 +251,7 @@ describe( 'TaskDashboard and TaskList', () => {
/>
);
expect( queryByText( 'Finish setup' ) ).toBeNull();
expect( queryByText( 'Get ready to start selling' ) ).toBeNull();
} );
it( 'hides the extended task list if there are no visible tasks', () => {

View File

@ -20,8 +20,12 @@ describe( 'products', () => {
screen.queryByText( 'Start with a template' )
).toBeInTheDocument();
expect( screen.queryByText( 'Add manually' ) ).toBeInTheDocument();
expect( screen.queryByText( 'Import' ) ).toBeInTheDocument();
expect( screen.queryByText( 'Migrate' ) ).toBeInTheDocument();
expect(
screen.queryByText( 'Import via CSV' )
).toBeInTheDocument();
expect(
screen.queryByText( 'Import from another service' )
).toBeInTheDocument();
} );
it( 'should not render the product template modal right away', () => {

View File

@ -50,16 +50,16 @@
},
{
"name": "composer/installers",
"version": "v1.9.0",
"version": "v1.10.0",
"source": {
"type": "git",
"url": "https://github.com/composer/installers.git",
"reference": "b93bcf0fa1fccb0b7d176b0967d969691cd74cca"
"reference": "1a0357fccad9d1cc1ea0c9a05b8847fbccccb78d"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/composer/installers/zipball/b93bcf0fa1fccb0b7d176b0967d969691cd74cca",
"reference": "b93bcf0fa1fccb0b7d176b0967d969691cd74cca",
"url": "https://api.github.com/repos/composer/installers/zipball/1a0357fccad9d1cc1ea0c9a05b8847fbccccb78d",
"reference": "1a0357fccad9d1cc1ea0c9a05b8847fbccccb78d",
"shasum": ""
},
"require": {
@ -70,17 +70,18 @@
"shama/baton": "*"
},
"require-dev": {
"composer/composer": "1.6.* || 2.0.*@dev",
"composer/semver": "1.0.* || 2.0.*@dev",
"phpunit/phpunit": "^4.8.36",
"sebastian/comparator": "^1.2.4",
"composer/composer": "1.6.* || ^2.0",
"composer/semver": "^1 || ^3",
"phpstan/phpstan": "^0.12.55",
"phpstan/phpstan-phpunit": "^0.12.16",
"symfony/phpunit-bridge": "^4.2 || ^5",
"symfony/process": "^2.3"
},
"type": "composer-plugin",
"extra": {
"class": "Composer\\Installers\\Plugin",
"branch-alias": {
"dev-master": "1.0-dev"
"dev-main": "1.x-dev"
}
},
"autoload": {
@ -118,6 +119,7 @@
"Porto",
"RadPHP",
"SMF",
"Starbug",
"Thelia",
"Whmcs",
"WolfCMS",
@ -158,6 +160,7 @@
"phpbb",
"piwik",
"ppi",
"processwire",
"puppet",
"pxcms",
"reindex",
@ -173,21 +176,21 @@
"zend",
"zikula"
],
"support": {
"issues": "https://github.com/composer/installers/issues",
"source": "https://github.com/composer/installers/tree/v1.9.0"
},
"funding": [
{
"url": "https://packagist.com",
"type": "custom"
},
{
"url": "https://github.com/composer",
"type": "github"
},
{
"url": "https://tidelift.com/funding/github/packagist/composer/composer",
"type": "tidelift"
}
],
"time": "2020-04-07T06:57:05+00:00"
"time": "2021-01-14T11:07:16+00:00"
}
],
"packages-dev": [
@ -263,36 +266,31 @@
},
{
"name": "doctrine/instantiator",
"version": "1.3.1",
"version": "1.4.0",
"source": {
"type": "git",
"url": "https://github.com/doctrine/instantiator.git",
"reference": "f350df0268e904597e3bd9c4685c53e0e333feea"
"reference": "d56bf6102915de5702778fe20f2de3b2fe570b5b"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/doctrine/instantiator/zipball/f350df0268e904597e3bd9c4685c53e0e333feea",
"reference": "f350df0268e904597e3bd9c4685c53e0e333feea",
"url": "https://api.github.com/repos/doctrine/instantiator/zipball/d56bf6102915de5702778fe20f2de3b2fe570b5b",
"reference": "d56bf6102915de5702778fe20f2de3b2fe570b5b",
"shasum": ""
},
"require": {
"php": "^7.1 || ^8.0"
},
"require-dev": {
"doctrine/coding-standard": "^6.0",
"doctrine/coding-standard": "^8.0",
"ext-pdo": "*",
"ext-phar": "*",
"phpbench/phpbench": "^0.13",
"phpstan/phpstan-phpunit": "^0.11",
"phpstan/phpstan-shim": "^0.11",
"phpunit/phpunit": "^7.0"
"phpbench/phpbench": "^0.13 || 1.0.0-alpha2",
"phpstan/phpstan": "^0.12",
"phpstan/phpstan-phpunit": "^0.12",
"phpunit/phpunit": "^7.0 || ^8.0 || ^9.0"
},
"type": "library",
"extra": {
"branch-alias": {
"dev-master": "1.2.x-dev"
}
},
"autoload": {
"psr-4": {
"Doctrine\\Instantiator\\": "src/Doctrine/Instantiator/"
@ -306,7 +304,7 @@
{
"name": "Marco Pivetta",
"email": "ocramius@gmail.com",
"homepage": "http://ocramius.github.com/"
"homepage": "https://ocramius.github.io/"
}
],
"description": "A small, lightweight utility to instantiate objects in PHP without invoking their constructors",
@ -315,10 +313,6 @@
"constructor",
"instantiate"
],
"support": {
"issues": "https://github.com/doctrine/instantiator/issues",
"source": "https://github.com/doctrine/instantiator/tree/1.3.x"
},
"funding": [
{
"url": "https://www.doctrine-project.org/sponsorship.html",
@ -333,20 +327,20 @@
"type": "tidelift"
}
],
"time": "2020-05-29T17:27:14+00:00"
"time": "2020-11-10T18:47:58+00:00"
},
{
"name": "myclabs/deep-copy",
"version": "1.10.1",
"version": "1.10.2",
"source": {
"type": "git",
"url": "https://github.com/myclabs/DeepCopy.git",
"reference": "969b211f9a51aa1f6c01d1d2aef56d3bd91598e5"
"reference": "776f831124e9c62e1a2c601ecc52e776d8bb7220"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/myclabs/DeepCopy/zipball/969b211f9a51aa1f6c01d1d2aef56d3bd91598e5",
"reference": "969b211f9a51aa1f6c01d1d2aef56d3bd91598e5",
"url": "https://api.github.com/repos/myclabs/DeepCopy/zipball/776f831124e9c62e1a2c601ecc52e776d8bb7220",
"reference": "776f831124e9c62e1a2c601ecc52e776d8bb7220",
"shasum": ""
},
"require": {
@ -381,17 +375,13 @@
"object",
"object graph"
],
"support": {
"issues": "https://github.com/myclabs/DeepCopy/issues",
"source": "https://github.com/myclabs/DeepCopy/tree/1.x"
},
"funding": [
{
"url": "https://tidelift.com/funding/github/packagist/myclabs/deep-copy",
"type": "tidelift"
}
],
"time": "2020-06-29T13:22:24+00:00"
"time": "2020-11-13T09:40:50+00:00"
},
{
"name": "phar-io/manifest",
@ -971,23 +961,23 @@
},
{
"name": "phpunit/php-file-iterator",
"version": "2.0.2",
"version": "2.0.3",
"source": {
"type": "git",
"url": "https://github.com/sebastianbergmann/php-file-iterator.git",
"reference": "050bedf145a257b1ff02746c31894800e5122946"
"reference": "4b49fb70f067272b659ef0174ff9ca40fdaa6357"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/sebastianbergmann/php-file-iterator/zipball/050bedf145a257b1ff02746c31894800e5122946",
"reference": "050bedf145a257b1ff02746c31894800e5122946",
"url": "https://api.github.com/repos/sebastianbergmann/php-file-iterator/zipball/4b49fb70f067272b659ef0174ff9ca40fdaa6357",
"reference": "4b49fb70f067272b659ef0174ff9ca40fdaa6357",
"shasum": ""
},
"require": {
"php": "^7.1"
"php": ">=7.1"
},
"require-dev": {
"phpunit/phpunit": "^7.1"
"phpunit/phpunit": "^8.5"
},
"type": "library",
"extra": {
@ -1017,11 +1007,13 @@
"filesystem",
"iterator"
],
"support": {
"issues": "https://github.com/sebastianbergmann/php-file-iterator/issues",
"source": "https://github.com/sebastianbergmann/php-file-iterator/tree/2.0.2"
},
"time": "2018-09-13T20:33:42+00:00"
"funding": [
{
"url": "https://github.com/sebastianbergmann",
"type": "github"
}
],
"time": "2020-11-30T08:25:21+00:00"
},
{
"name": "phpunit/php-text-template",
@ -1070,23 +1062,23 @@
},
{
"name": "phpunit/php-timer",
"version": "2.1.2",
"version": "2.1.3",
"source": {
"type": "git",
"url": "https://github.com/sebastianbergmann/php-timer.git",
"reference": "1038454804406b0b5f5f520358e78c1c2f71501e"
"reference": "2454ae1765516d20c4ffe103d85a58a9a3bd5662"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/sebastianbergmann/php-timer/zipball/1038454804406b0b5f5f520358e78c1c2f71501e",
"reference": "1038454804406b0b5f5f520358e78c1c2f71501e",
"url": "https://api.github.com/repos/sebastianbergmann/php-timer/zipball/2454ae1765516d20c4ffe103d85a58a9a3bd5662",
"reference": "2454ae1765516d20c4ffe103d85a58a9a3bd5662",
"shasum": ""
},
"require": {
"php": "^7.1"
"php": ">=7.1"
},
"require-dev": {
"phpunit/phpunit": "^7.0"
"phpunit/phpunit": "^8.5"
},
"type": "library",
"extra": {
@ -1115,29 +1107,31 @@
"keywords": [
"timer"
],
"support": {
"issues": "https://github.com/sebastianbergmann/php-timer/issues",
"source": "https://github.com/sebastianbergmann/php-timer/tree/master"
},
"time": "2019-06-07T04:22:29+00:00"
"funding": [
{
"url": "https://github.com/sebastianbergmann",
"type": "github"
}
],
"time": "2020-11-30T08:20:02+00:00"
},
{
"name": "phpunit/php-token-stream",
"version": "3.1.1",
"version": "3.1.2",
"source": {
"type": "git",
"url": "https://github.com/sebastianbergmann/php-token-stream.git",
"reference": "995192df77f63a59e47f025390d2d1fdf8f425ff"
"reference": "472b687829041c24b25f475e14c2f38a09edf1c2"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/sebastianbergmann/php-token-stream/zipball/995192df77f63a59e47f025390d2d1fdf8f425ff",
"reference": "995192df77f63a59e47f025390d2d1fdf8f425ff",
"url": "https://api.github.com/repos/sebastianbergmann/php-token-stream/zipball/472b687829041c24b25f475e14c2f38a09edf1c2",
"reference": "472b687829041c24b25f475e14c2f38a09edf1c2",
"shasum": ""
},
"require": {
"ext-tokenizer": "*",
"php": "^7.1"
"php": ">=7.1"
},
"require-dev": {
"phpunit/phpunit": "^7.0"
@ -1168,12 +1162,14 @@
"keywords": [
"tokenizer"
],
"support": {
"issues": "https://github.com/sebastianbergmann/php-token-stream/issues",
"source": "https://github.com/sebastianbergmann/php-token-stream/tree/3.1.1"
},
"funding": [
{
"url": "https://github.com/sebastianbergmann",
"type": "github"
}
],
"abandoned": true,
"time": "2019-09-17T06:23:10+00:00"
"time": "2020-11-30T08:38:46+00:00"
},
{
"name": "phpunit/phpunit",
@ -1265,23 +1261,23 @@
},
{
"name": "sebastian/code-unit-reverse-lookup",
"version": "1.0.1",
"version": "1.0.2",
"source": {
"type": "git",
"url": "https://github.com/sebastianbergmann/code-unit-reverse-lookup.git",
"reference": "4419fcdb5eabb9caa61a27c7a1db532a6b55dd18"
"reference": "1de8cd5c010cb153fcd68b8d0f64606f523f7619"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/sebastianbergmann/code-unit-reverse-lookup/zipball/4419fcdb5eabb9caa61a27c7a1db532a6b55dd18",
"reference": "4419fcdb5eabb9caa61a27c7a1db532a6b55dd18",
"url": "https://api.github.com/repos/sebastianbergmann/code-unit-reverse-lookup/zipball/1de8cd5c010cb153fcd68b8d0f64606f523f7619",
"reference": "1de8cd5c010cb153fcd68b8d0f64606f523f7619",
"shasum": ""
},
"require": {
"php": "^5.6 || ^7.0"
"php": ">=5.6"
},
"require-dev": {
"phpunit/phpunit": "^5.7 || ^6.0"
"phpunit/phpunit": "^8.5"
},
"type": "library",
"extra": {
@ -1306,33 +1302,35 @@
],
"description": "Looks up which function or method a line of code belongs to",
"homepage": "https://github.com/sebastianbergmann/code-unit-reverse-lookup/",
"support": {
"issues": "https://github.com/sebastianbergmann/code-unit-reverse-lookup/issues",
"source": "https://github.com/sebastianbergmann/code-unit-reverse-lookup/tree/master"
},
"time": "2017-03-04T06:30:41+00:00"
"funding": [
{
"url": "https://github.com/sebastianbergmann",
"type": "github"
}
],
"time": "2020-11-30T08:15:22+00:00"
},
{
"name": "sebastian/comparator",
"version": "3.0.2",
"version": "3.0.3",
"source": {
"type": "git",
"url": "https://github.com/sebastianbergmann/comparator.git",
"reference": "5de4fc177adf9bce8df98d8d141a7559d7ccf6da"
"reference": "1071dfcef776a57013124ff35e1fc41ccd294758"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/sebastianbergmann/comparator/zipball/5de4fc177adf9bce8df98d8d141a7559d7ccf6da",
"reference": "5de4fc177adf9bce8df98d8d141a7559d7ccf6da",
"url": "https://api.github.com/repos/sebastianbergmann/comparator/zipball/1071dfcef776a57013124ff35e1fc41ccd294758",
"reference": "1071dfcef776a57013124ff35e1fc41ccd294758",
"shasum": ""
},
"require": {
"php": "^7.1",
"php": ">=7.1",
"sebastian/diff": "^3.0",
"sebastian/exporter": "^3.1"
},
"require-dev": {
"phpunit/phpunit": "^7.1"
"phpunit/phpunit": "^8.5"
},
"type": "library",
"extra": {
@ -1350,6 +1348,10 @@
"BSD-3-Clause"
],
"authors": [
{
"name": "Sebastian Bergmann",
"email": "sebastian@phpunit.de"
},
{
"name": "Jeff Welch",
"email": "whatthejeff@gmail.com"
@ -1361,10 +1363,6 @@
{
"name": "Bernhard Schussek",
"email": "bschussek@2bepublished.at"
},
{
"name": "Sebastian Bergmann",
"email": "sebastian@phpunit.de"
}
],
"description": "Provides the functionality to compare PHP values for equality",
@ -1374,28 +1372,30 @@
"compare",
"equality"
],
"support": {
"issues": "https://github.com/sebastianbergmann/comparator/issues",
"source": "https://github.com/sebastianbergmann/comparator/tree/master"
},
"time": "2018-07-12T15:12:46+00:00"
"funding": [
{
"url": "https://github.com/sebastianbergmann",
"type": "github"
}
],
"time": "2020-11-30T08:04:30+00:00"
},
{
"name": "sebastian/diff",
"version": "3.0.2",
"version": "3.0.3",
"source": {
"type": "git",
"url": "https://github.com/sebastianbergmann/diff.git",
"reference": "720fcc7e9b5cf384ea68d9d930d480907a0c1a29"
"reference": "14f72dd46eaf2f2293cbe79c93cc0bc43161a211"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/sebastianbergmann/diff/zipball/720fcc7e9b5cf384ea68d9d930d480907a0c1a29",
"reference": "720fcc7e9b5cf384ea68d9d930d480907a0c1a29",
"url": "https://api.github.com/repos/sebastianbergmann/diff/zipball/14f72dd46eaf2f2293cbe79c93cc0bc43161a211",
"reference": "14f72dd46eaf2f2293cbe79c93cc0bc43161a211",
"shasum": ""
},
"require": {
"php": "^7.1"
"php": ">=7.1"
},
"require-dev": {
"phpunit/phpunit": "^7.5 || ^8.0",
@ -1417,13 +1417,13 @@
"BSD-3-Clause"
],
"authors": [
{
"name": "Kore Nordmann",
"email": "mail@kore-nordmann.de"
},
{
"name": "Sebastian Bergmann",
"email": "sebastian@phpunit.de"
},
{
"name": "Kore Nordmann",
"email": "mail@kore-nordmann.de"
}
],
"description": "Diff implementation",
@ -1434,28 +1434,30 @@
"unidiff",
"unified diff"
],
"support": {
"issues": "https://github.com/sebastianbergmann/diff/issues",
"source": "https://github.com/sebastianbergmann/diff/tree/master"
},
"time": "2019-02-04T06:01:07+00:00"
"funding": [
{
"url": "https://github.com/sebastianbergmann",
"type": "github"
}
],
"time": "2020-11-30T07:59:04+00:00"
},
{
"name": "sebastian/environment",
"version": "4.2.3",
"version": "4.2.4",
"source": {
"type": "git",
"url": "https://github.com/sebastianbergmann/environment.git",
"reference": "464c90d7bdf5ad4e8a6aea15c091fec0603d4368"
"reference": "d47bbbad83711771f167c72d4e3f25f7fcc1f8b0"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/sebastianbergmann/environment/zipball/464c90d7bdf5ad4e8a6aea15c091fec0603d4368",
"reference": "464c90d7bdf5ad4e8a6aea15c091fec0603d4368",
"url": "https://api.github.com/repos/sebastianbergmann/environment/zipball/d47bbbad83711771f167c72d4e3f25f7fcc1f8b0",
"reference": "d47bbbad83711771f167c72d4e3f25f7fcc1f8b0",
"shasum": ""
},
"require": {
"php": "^7.1"
"php": ">=7.1"
},
"require-dev": {
"phpunit/phpunit": "^7.5"
@ -1491,28 +1493,30 @@
"environment",
"hhvm"
],
"support": {
"issues": "https://github.com/sebastianbergmann/environment/issues",
"source": "https://github.com/sebastianbergmann/environment/tree/4.2.3"
},
"time": "2019-11-20T08:46:58+00:00"
"funding": [
{
"url": "https://github.com/sebastianbergmann",
"type": "github"
}
],
"time": "2020-11-30T07:53:42+00:00"
},
{
"name": "sebastian/exporter",
"version": "3.1.2",
"version": "3.1.3",
"source": {
"type": "git",
"url": "https://github.com/sebastianbergmann/exporter.git",
"reference": "68609e1261d215ea5b21b7987539cbfbe156ec3e"
"reference": "6b853149eab67d4da22291d36f5b0631c0fd856e"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/sebastianbergmann/exporter/zipball/68609e1261d215ea5b21b7987539cbfbe156ec3e",
"reference": "68609e1261d215ea5b21b7987539cbfbe156ec3e",
"url": "https://api.github.com/repos/sebastianbergmann/exporter/zipball/6b853149eab67d4da22291d36f5b0631c0fd856e",
"reference": "6b853149eab67d4da22291d36f5b0631c0fd856e",
"shasum": ""
},
"require": {
"php": "^7.0",
"php": ">=7.0",
"sebastian/recursion-context": "^3.0"
},
"require-dev": {
@ -1562,11 +1566,13 @@
"export",
"exporter"
],
"support": {
"issues": "https://github.com/sebastianbergmann/exporter/issues",
"source": "https://github.com/sebastianbergmann/exporter/tree/master"
},
"time": "2019-09-14T09:02:43+00:00"
"funding": [
{
"url": "https://github.com/sebastianbergmann",
"type": "github"
}
],
"time": "2020-11-30T07:47:53+00:00"
},
{
"name": "sebastian/global-state",
@ -1625,20 +1631,20 @@
},
{
"name": "sebastian/object-enumerator",
"version": "3.0.3",
"version": "3.0.4",
"source": {
"type": "git",
"url": "https://github.com/sebastianbergmann/object-enumerator.git",
"reference": "7cfd9e65d11ffb5af41198476395774d4c8a84c5"
"reference": "e67f6d32ebd0c749cf9d1dbd9f226c727043cdf2"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/sebastianbergmann/object-enumerator/zipball/7cfd9e65d11ffb5af41198476395774d4c8a84c5",
"reference": "7cfd9e65d11ffb5af41198476395774d4c8a84c5",
"url": "https://api.github.com/repos/sebastianbergmann/object-enumerator/zipball/e67f6d32ebd0c749cf9d1dbd9f226c727043cdf2",
"reference": "e67f6d32ebd0c749cf9d1dbd9f226c727043cdf2",
"shasum": ""
},
"require": {
"php": "^7.0",
"php": ">=7.0",
"sebastian/object-reflector": "^1.1.1",
"sebastian/recursion-context": "^3.0"
},
@ -1668,28 +1674,30 @@
],
"description": "Traverses array structures and object graphs to enumerate all referenced objects",
"homepage": "https://github.com/sebastianbergmann/object-enumerator/",
"support": {
"issues": "https://github.com/sebastianbergmann/object-enumerator/issues",
"source": "https://github.com/sebastianbergmann/object-enumerator/tree/master"
},
"time": "2017-08-03T12:35:26+00:00"
"funding": [
{
"url": "https://github.com/sebastianbergmann",
"type": "github"
}
],
"time": "2020-11-30T07:40:27+00:00"
},
{
"name": "sebastian/object-reflector",
"version": "1.1.1",
"version": "1.1.2",
"source": {
"type": "git",
"url": "https://github.com/sebastianbergmann/object-reflector.git",
"reference": "773f97c67f28de00d397be301821b06708fca0be"
"reference": "9b8772b9cbd456ab45d4a598d2dd1a1bced6363d"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/sebastianbergmann/object-reflector/zipball/773f97c67f28de00d397be301821b06708fca0be",
"reference": "773f97c67f28de00d397be301821b06708fca0be",
"url": "https://api.github.com/repos/sebastianbergmann/object-reflector/zipball/9b8772b9cbd456ab45d4a598d2dd1a1bced6363d",
"reference": "9b8772b9cbd456ab45d4a598d2dd1a1bced6363d",
"shasum": ""
},
"require": {
"php": "^7.0"
"php": ">=7.0"
},
"require-dev": {
"phpunit/phpunit": "^6.0"
@ -1717,28 +1725,30 @@
],
"description": "Allows reflection of object attributes, including inherited and non-public ones",
"homepage": "https://github.com/sebastianbergmann/object-reflector/",
"support": {
"issues": "https://github.com/sebastianbergmann/object-reflector/issues",
"source": "https://github.com/sebastianbergmann/object-reflector/tree/master"
},
"time": "2017-03-29T09:07:27+00:00"
"funding": [
{
"url": "https://github.com/sebastianbergmann",
"type": "github"
}
],
"time": "2020-11-30T07:37:18+00:00"
},
{
"name": "sebastian/recursion-context",
"version": "3.0.0",
"version": "3.0.1",
"source": {
"type": "git",
"url": "https://github.com/sebastianbergmann/recursion-context.git",
"reference": "5b0cd723502bac3b006cbf3dbf7a1e3fcefe4fa8"
"reference": "367dcba38d6e1977be014dc4b22f47a484dac7fb"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/sebastianbergmann/recursion-context/zipball/5b0cd723502bac3b006cbf3dbf7a1e3fcefe4fa8",
"reference": "5b0cd723502bac3b006cbf3dbf7a1e3fcefe4fa8",
"url": "https://api.github.com/repos/sebastianbergmann/recursion-context/zipball/367dcba38d6e1977be014dc4b22f47a484dac7fb",
"reference": "367dcba38d6e1977be014dc4b22f47a484dac7fb",
"shasum": ""
},
"require": {
"php": "^7.0"
"php": ">=7.0"
},
"require-dev": {
"phpunit/phpunit": "^6.0"
@ -1759,14 +1769,14 @@
"BSD-3-Clause"
],
"authors": [
{
"name": "Jeff Welch",
"email": "whatthejeff@gmail.com"
},
{
"name": "Sebastian Bergmann",
"email": "sebastian@phpunit.de"
},
{
"name": "Jeff Welch",
"email": "whatthejeff@gmail.com"
},
{
"name": "Adam Harvey",
"email": "aharvey@php.net"
@ -1774,28 +1784,30 @@
],
"description": "Provides functionality to recursively process PHP variables",
"homepage": "http://www.github.com/sebastianbergmann/recursion-context",
"support": {
"issues": "https://github.com/sebastianbergmann/recursion-context/issues",
"source": "https://github.com/sebastianbergmann/recursion-context/tree/master"
},
"time": "2017-03-03T06:23:57+00:00"
"funding": [
{
"url": "https://github.com/sebastianbergmann",
"type": "github"
}
],
"time": "2020-11-30T07:34:24+00:00"
},
{
"name": "sebastian/resource-operations",
"version": "2.0.1",
"version": "2.0.2",
"source": {
"type": "git",
"url": "https://github.com/sebastianbergmann/resource-operations.git",
"reference": "4d7a795d35b889bf80a0cc04e08d77cedfa917a9"
"reference": "31d35ca87926450c44eae7e2611d45a7a65ea8b3"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/sebastianbergmann/resource-operations/zipball/4d7a795d35b889bf80a0cc04e08d77cedfa917a9",
"reference": "4d7a795d35b889bf80a0cc04e08d77cedfa917a9",
"url": "https://api.github.com/repos/sebastianbergmann/resource-operations/zipball/31d35ca87926450c44eae7e2611d45a7a65ea8b3",
"reference": "31d35ca87926450c44eae7e2611d45a7a65ea8b3",
"shasum": ""
},
"require": {
"php": "^7.1"
"php": ">=7.1"
},
"type": "library",
"extra": {
@ -1820,11 +1832,13 @@
],
"description": "Provides a list of PHP built-in functions that operate on resources",
"homepage": "https://www.github.com/sebastianbergmann/resource-operations",
"support": {
"issues": "https://github.com/sebastianbergmann/resource-operations/issues",
"source": "https://github.com/sebastianbergmann/resource-operations/tree/master"
},
"time": "2018-10-04T04:07:39+00:00"
"funding": [
{
"url": "https://github.com/sebastianbergmann",
"type": "github"
}
],
"time": "2020-11-30T07:30:19+00:00"
},
{
"name": "sebastian/version",
@ -1974,21 +1988,21 @@
},
{
"name": "suin/phpcs-psr4-sniff",
"version": "v2.2.0",
"version": "v2.2.1",
"source": {
"type": "git",
"url": "https://github.com/suin/phpcs-psr4-sniff.git",
"reference": "48ae7d95a7c82092527bd9c18f2431f62cae32da"
"reference": "4849971d8693cffa4192c978e9cebdd7348d65aa"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/suin/phpcs-psr4-sniff/zipball/48ae7d95a7c82092527bd9c18f2431f62cae32da",
"reference": "48ae7d95a7c82092527bd9c18f2431f62cae32da",
"url": "https://api.github.com/repos/suin/phpcs-psr4-sniff/zipball/4849971d8693cffa4192c978e9cebdd7348d65aa",
"reference": "4849971d8693cffa4192c978e9cebdd7348d65aa",
"shasum": ""
},
"require": {
"ext-json": "*",
"php": ">=7.1 <7.4.0",
"php": ">=7.1",
"slevomat/coding-standard": ">=4.7 <5.0.0",
"squizlabs/php_codesniffer": ">=3.3 <4.0.0"
},
@ -2021,24 +2035,20 @@
"phpcs",
"static-analysis"
],
"support": {
"issues": "https://github.com/suin/php/issues",
"source": "https://github.com/suin/phpcs-psr4-sniff/tree/v2.1.3"
},
"time": "2018-12-05T09:12:46+00:00"
"time": "2020-12-02T02:12:18+00:00"
},
{
"name": "symfony/polyfill-ctype",
"version": "v1.20.0",
"version": "v1.22.0",
"source": {
"type": "git",
"url": "https://github.com/symfony/polyfill-ctype.git",
"reference": "f4ba089a5b6366e453971d3aad5fe8e897b37f41"
"reference": "c6c942b1ac76c82448322025e084cadc56048b4e"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/symfony/polyfill-ctype/zipball/f4ba089a5b6366e453971d3aad5fe8e897b37f41",
"reference": "f4ba089a5b6366e453971d3aad5fe8e897b37f41",
"url": "https://api.github.com/repos/symfony/polyfill-ctype/zipball/c6c942b1ac76c82448322025e084cadc56048b4e",
"reference": "c6c942b1ac76c82448322025e084cadc56048b4e",
"shasum": ""
},
"require": {
@ -2050,7 +2060,7 @@
"type": "library",
"extra": {
"branch-alias": {
"dev-main": "1.20-dev"
"dev-main": "1.22-dev"
},
"thanks": {
"name": "symfony/polyfill",
@ -2087,9 +2097,6 @@
"polyfill",
"portable"
],
"support": {
"source": "https://github.com/symfony/polyfill-ctype/tree/v1.20.0"
},
"funding": [
{
"url": "https://symfony.com/sponsor",
@ -2104,7 +2111,7 @@
"type": "tidelift"
}
],
"time": "2020-10-23T14:02:19+00:00"
"time": "2021-01-07T16:49:33+00:00"
},
{
"name": "theseer/tokenizer",
@ -2155,12 +2162,12 @@
"version": "1.9.1",
"source": {
"type": "git",
"url": "https://github.com/webmozart/assert.git",
"url": "https://github.com/webmozarts/assert.git",
"reference": "bafc69caeb4d49c39fd0779086c03a3738cbb389"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/webmozart/assert/zipball/bafc69caeb4d49c39fd0779086c03a3738cbb389",
"url": "https://api.github.com/repos/webmozarts/assert/zipball/bafc69caeb4d49c39fd0779086c03a3738cbb389",
"reference": "bafc69caeb4d49c39fd0779086c03a3738cbb389",
"shasum": ""
},
@ -2311,5 +2318,5 @@
"platform-overrides": {
"php": "7.1"
},
"plugin-api-version": "2.0.0"
"plugin-api-version": "1.1.0"
}

View File

@ -502,7 +502,7 @@ class OnboardingTasks extends \WC_REST_Data_Controller {
return array(
'status' => 'success',
'message' => __( 'Homepage created.', 'woocommerce-admin' ),
'message' => __( 'Homepage created', 'woocommerce-admin' ),
'post_id' => $post_id,
'edit_post_link' => htmlspecialchars_decode( get_edit_post_link( $post_id ) ),
);