Skip to content

Commit 650361d

Browse files
authored
Rename "Earn" block category to "Monetize" (#36480)
* Blocks category: change from "Earn" to "Monetize" * Move "Paid content" block from "Grow" to "Monetize"
1 parent b2e10c7 commit 650361d

File tree

14 files changed

+32
-21
lines changed

14 files changed

+32
-21
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
Significance: minor
2+
Type: enhancement
3+
4+
Block category "Earn" renamed to "Monetize"

projects/plugins/jetpack/extensions/blocks/donations/block.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
"debit card",
1212
"donate",
1313
"earn",
14+
"monetize",
1415
"ecommerce",
1516
"fundraising",
1617
"fundraiser",
@@ -31,7 +32,7 @@
3132
],
3233
"version": "12.5.0",
3334
"textdomain": "jetpack",
34-
"category": "earn",
35+
"category": "monetize",
3536
"icon": "<svg viewBox='0 0 24 24' width='24' height='24' xmlns='http://www.w3.org/2000/svg'><path d='M16.5 4.5c2.206 0 4 1.794 4 4 0 4.67-5.543 8.94-8.5 11.023C9.043 17.44 3.5 13.17 3.5 8.5c0-2.206 1.794-4 4-4 1.298 0 2.522.638 3.273 1.706L12 7.953l1.227-1.746c.75-1.07 1.975-1.707 3.273-1.707m0-1.5c-1.862 0-3.505.928-4.5 2.344C11.005 3.928 9.362 3 7.5 3 4.462 3 2 5.462 2 8.5c0 5.72 6.5 10.438 10 12.85 3.5-2.412 10-7.13 10-12.85C22 5.462 19.538 3 16.5 3z' /></svg>",
3637
"supports": { "html": false },
3738
"attributes": {

projects/plugins/jetpack/extensions/blocks/opentable/block.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
"keywords": [ "booking", "reservation", "restaurant" ],
88
"version": "12.5.0",
99
"textdomain": "jetpack",
10-
"category": "earn",
10+
"category": "monetize",
1111
"icon": "<svg viewBox='0 0 22 16' width='22' height='16' xmlns='http://www.w3.org/2000/svg'><path d='m1.997 5.982c-.39457-.00039-.7804.11622-1.108699.33511-.328295.21888-.584312.5302-.735674.89459-.15136174.36439-.1912714.76548-.1146819 1.15254.0765899.38707.2662379.74274.5449639 1.02202.278726.27929.634011.46965 1.020921.54702.38692.07732.78809.03826 1.15278-.11238.36469-.15063.67652-.40602.89606-.73387.21954-.32786.33693-.71345.33733-1.10803v-.002c.001-1.1-.89-1.994-1.992-1.995zm12.006 3.988c-.3946.0004-.7805-.11625-1.1088-.33517-.3283-.21893-.5843-.53031-.7357-.89476-.1513-.36444-.1912-.76558-.1145-1.15268s.2664-.74276.5453-1.022c.2788-.27925.6342-.46953 1.0211-.54679.387-.07725.7882-.038 1.1529.11278.3647.15079.6764.40634.8959.73432.2194.32799.3366.71369.3368 1.1083v.003c.0003.52814-.2092 1.03477-.5824 1.4085s-.8795.58397-1.4076.5845zm0-9.96999843c-1.5777-.0009886-3.1203.46588743-4.43262 1.34158843-1.31236.8757-2.33558 2.1209-2.94025 3.57813-.60467 1.45722-.76365 3.06103-.45683 4.60861.30683 1.54757 1.06567 2.96947 2.18058 4.08577 1.1149 1.1163 2.53582 1.8769 4.08302 2.1856 1.5472.3088 3.1512.1518 4.6091-.451 1.458-.6028 2.7045-1.6245 3.5819-2.9358.8773-1.3112 1.3461-2.8532 1.3471-4.4309v-.005c.0008-2.11466-.8384-4.14304-2.3331-5.63899-1.4946-1.495952-3.5222-2.3369478-5.6369-2.33800843z' /></svg>",
1212
"supports": { "align": true, "html": false },
1313
"attributes": {

projects/plugins/jetpack/extensions/blocks/payment-buttons/block.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
"donate",
1414
"Donations",
1515
"earn",
16+
"monetize",
1617
"ecommerce",
1718
"gofundme",
1819
"memberships",
@@ -36,7 +37,7 @@
3637
],
3738
"version": "12.5.0",
3839
"textdomain": "jetpack",
39-
"category": "earn",
40+
"category": "monetize",
4041
"icon": "<svg viewBox='0 0 24 24' width='24' height='24' xmlns='http://www.w3.org/2000/svg'><path d='M20 4H4c-1.105 0-2 .895-2 2v12c0 1.105.895 2 2 2h16c1.105 0 2-.895 2-2V6c0-1.105-.895-2-2-2zm0 2v2H4V6h16zM4 18v-6h16v6H4zm2-4h7v2H6v-2zm9 0h3v2h-3v-2z'/></svg>",
4142
"supports": {
4243
"__experimentalExposeControlsToChildren": true,

projects/plugins/jetpack/extensions/blocks/payments-intro/block.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,10 @@
44
"name": "jetpack/payments-intro",
55
"title": "Payments",
66
"description": "Sell products and services or receive donations on your website.",
7-
"keywords": [ "paid", "pay", "money", "checkout" ],
7+
"keywords": [ "earn", "monetize", "paid", "pay", "money", "checkout" ],
88
"version": "12.5.0",
99
"textdomain": "jetpack",
10-
"category": "earn",
10+
"category": "monetize",
1111
"icon": "<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' width='24' height='24'><path d='M3.25 12a8.75 8.75 0 1117.5 0 8.75 8.75 0 01-17.5 0zM12 4.75a7.25 7.25 0 100 14.5 7.25 7.25 0 000-14.5zm-1.338 4.877c-.314.22-.412.452-.412.623 0 .171.098.403.412.623.312.218.783.377 1.338.377.825 0 1.605.233 2.198.648.59.414 1.052 1.057 1.052 1.852 0 .795-.461 1.438-1.052 1.852-.41.286-.907.486-1.448.582v.316a.75.75 0 01-1.5 0v-.316a3.64 3.64 0 01-1.448-.582c-.59-.414-1.052-1.057-1.052-1.852a.75.75 0 011.5 0c0 .171.098.403.412.623.312.218.783.377 1.338.377s1.026-.159 1.338-.377c.314-.22.412-.452.412-.623 0-.171-.098-.403-.412-.623-.312-.218-.783-.377-1.338-.377-.825 0-1.605-.233-2.198-.648-.59-.414-1.052-1.057-1.052-1.852 0-.795.461-1.438 1.052-1.852a3.64 3.64 0 011.448-.582V7.5a.75.75 0 011.5 0v.316c.54.096 1.039.296 1.448.582.59.414 1.052 1.057 1.052 1.852a.75.75 0 01-1.5 0c0-.171-.098-.403-.412-.623-.312-.218-.783-.377-1.338-.377s-1.026.159-1.338.377z'></path></svg>",
1212
"supports": {
1313
"alignWide": false,

projects/plugins/jetpack/extensions/blocks/paywall/block.json

+3-1
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@
55
"title": "Paywall",
66
"description": "Limit access to the content below this block to chosen subscribers.",
77
"keywords": [
8+
"earn",
9+
"monetize",
810
"more",
911
"email",
1012
"follow",
@@ -18,7 +20,7 @@
1820
],
1921
"version": "12.5.0",
2022
"textdomain": "jetpack",
21-
"category": "earn",
23+
"category": "monetize",
2224
"icon": "<svg viewBox='0 0 24 24' width='24' height='24' xmlns='http://www.w3.org/2000/svg'><path d='M4 16.7134L20 16.7134V15.106H4V16.7134Z' /><path d='M16 21H20V19.3925H16V21Z' /><path d='M14 21H10V19.3925H14V21Z' /><path d='M4 21H8V19.3925H4V21Z' /><path d='M11.471 6.37162C11.2294 6.55286 11.1538 6.74395 11.1538 6.88519C11.1538 7.02644 11.2294 7.21752 11.471 7.39877C11.7108 7.57865 12.0728 7.70953 12.5 7.70953C13.1349 7.70953 13.7344 7.90158 14.1907 8.24382C14.6451 8.5847 15 9.11491 15 9.77039C15 10.4259 14.6451 10.9561 14.1907 11.297C13.8758 11.5331 13.4928 11.6978 13.0769 11.7771V12.0373C13.0769 12.3788 12.8186 12.6556 12.5 12.6556C12.1814 12.6556 11.9231 12.3788 11.9231 12.0373V11.7771C11.5072 11.6978 11.1242 11.5331 10.8093 11.297C10.3549 10.9561 10 10.4259 10 9.77039C10 9.42893 10.2583 9.15213 10.5769 9.15213C10.8955 9.15213 11.1538 9.42893 11.1538 9.77039C11.1538 9.91163 11.2294 10.1027 11.471 10.284C11.7108 10.4638 12.0728 10.5947 12.5 10.5947C12.9272 10.5947 13.2892 10.4638 13.529 10.284C13.7706 10.1027 13.8462 9.91163 13.8462 9.77039C13.8462 9.62914 13.7706 9.43806 13.529 9.25681C13.2892 9.07693 12.9272 8.94605 12.5 8.94605C11.8651 8.94605 11.2656 8.754 10.8093 8.41176C10.3549 8.07089 10 7.54067 10 6.88519C10 6.22971 10.3549 5.6995 10.8093 5.35863C11.1242 5.12246 11.5072 4.95781 11.9231 4.87844V4.61826C11.9231 4.2768 12.1814 4 12.5 4C12.8186 4 13.0769 4.2768 13.0769 4.61826V4.87844C13.4928 4.95781 13.8758 5.12246 14.1907 5.35863C14.6451 5.6995 15 6.22971 15 6.88519C15 7.22665 14.7417 7.50345 14.4231 7.50345C14.1045 7.50345 13.8462 7.22665 13.8462 6.88519C13.8462 6.74395 13.7706 6.55286 13.529 6.37162C13.2892 6.19174 12.9272 6.06085 12.5 6.06085C12.0728 6.06085 11.7108 6.19174 11.471 6.37162Z' /></svg>",
2325
"supports": {
2426
"customClassName": false,

projects/plugins/jetpack/extensions/blocks/premium-content/block.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
"buy",
99
"credit card",
1010
"debit card",
11+
"monetize",
1112
"earn",
1213
"exclusive",
1314
"gated",
@@ -38,7 +39,7 @@
3839
],
3940
"version": "12.5.0",
4041
"textdomain": "jetpack",
41-
"category": "grow",
42+
"category": "monetize",
4243
"icon": "<svg viewBox='0 0 24 24' width='24' height='24' xmlns='http://www.w3.org/2000/svg'><path d='m12.74,14.43l-4.1-1.26-.13.71-.42,6.87c-.03.49.52.81.93.54l3.72-2.48,4,2.51c.42.26.96-.07.92-.56l-.64-6.87v-.71l-4.28,1.26Z'/><path d='m12.74,15.14c-3.55,0-6.44-2.89-6.44-6.44s2.89-6.44,6.44-6.44,6.44,2.89,6.44,6.44-2.89,6.44-6.44,6.44Zm0-11.89c-3,0-5.44,2.44-5.44,5.44s2.44,5.44,5.44,5.44,5.44-2.44,5.44-5.44-2.44-5.44-5.44-5.44Z'/><path d='M11.95 11.08 9.36 8.48 10.06 7.77 11.95 9.66 15.42 6.19 16.13 6.9 11.95 11.08z'/></svg>",
4344
"supports": {
4445
"html": false

projects/plugins/jetpack/extensions/blocks/recurring-payments/block.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
"debit card",
1313
"donate",
1414
"Donations",
15+
"monetize",
1516
"earn",
1617
"ecommerce",
1718
"gofundme",
@@ -36,7 +37,7 @@
3637
],
3738
"version": "12.5.0",
3839
"textdomain": "jetpack",
39-
"category": "earn",
40+
"category": "monetize",
4041
"icon": "<svg viewBox='0 0 24 24' width='24' height='24' xmlns='http://www.w3.org/2000/svg'><path d='M20 4H4c-1.105 0-2 .895-2 2v12c0 1.105.895 2 2 2h16c1.105 0 2-.895 2-2V6c0-1.105-.895-2-2-2zm0 2v2H4V6h16zM4 18v-6h16v6H4zm2-4h7v2H6v-2zm9 0h3v2h-3v-2z'/></svg>",
4142
"supports": {
4243
"html": false,

projects/plugins/jetpack/extensions/blocks/simple-payments/block.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
"commerce",
1010
"credit card",
1111
"debit card",
12+
"monetize",
1213
"earn",
1314
"ecommerce",
1415
"money",
@@ -23,7 +24,7 @@
2324
],
2425
"version": "12.5.0",
2526
"textdomain": "jetpack",
26-
"category": "earn",
27+
"category": "monetize",
2728
"icon": "<svg viewBox='0 0 24 24' width='24' height='24' xmlns='http://www.w3.org/2000/svg'><path fill='none' d='M0 0h24v24H0V0z' /><path d='M20 4H4c-1.11 0-1.99.89-1.99 2L2 18c0 1.11.89 2 2 2h16c1.11 0 2-.89 2-2V6c0-1.11-.89-2-2-2zm0 14H4v-6h16v6zm0-10H4V6h16v2z' /></svg>",
2829
"supports": {
2930
"className": false,

projects/plugins/jetpack/extensions/blocks/simple-payments/deprecated/v2/index.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ const settings = {
4242
foreground: getIconColor(),
4343
},
4444

45-
category: 'earn',
45+
category: 'monetize',
4646

4747
keywords: [
4848
_x( 'buy', 'block search term', 'jetpack' ),

projects/plugins/jetpack/extensions/blocks/tock/block.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
"keywords": [ "booking", "reservation", "restaurant" ],
88
"version": "12.5.0",
99
"textdomain": "jetpack",
10-
"category": "earn",
10+
"category": "monetize",
1111
"icon": "<svg viewBox='0 0 24 24' width='24' height='24' xmlns='http://www.w3.org/2000/svg'><path d='M10 15.619C6.84915 15.619 4.28572 13.0542 4.28572 9.90176C4.28572 7.24269 6.10957 5.00183 8.57143 4.36551V0C3.72557 0.693782 0 4.86162 0 9.90176C0 15.4274 4.47715 19.9069 10 19.9069C12.2461 19.9069 14.3193 19.1658 15.9887 17.9148L12.9003 14.825C12.0494 15.3287 11.0581 15.619 10 15.619 M15.7135 9.90176C15.7135 10.9604 15.4233 11.9522 14.9199 12.8035L18.0082 15.8935C19.2585 14.2232 19.9992 12.149 19.9992 9.90176C19.9992 4.86162 16.2736 0.693782 11.4277 0V4.36551C13.8896 5.00183 15.7135 7.24269 15.7135 9.90176'/></svg>",
1212
"supports": {
1313
"align": true,

projects/plugins/jetpack/extensions/blocks/wordads/block.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
"keywords": [ "ads", "WordAds", "advertisement" ],
88
"version": "12.5.0",
99
"textdomain": "jetpack",
10-
"category": "earn",
10+
"category": "monetize",
1111
"icon": "<svg viewBox='0 0 24 24' width='24' height='24' xmlns='http://www.w3.org/2000/svg'><path d='M12,8H4A2,2 0 0,0 2,10V14A2,2 0 0,0 4,16H5V20A1,1 0 0,0 6,21H8A1,1 0 0,0 9,20V16H12L17,20V4L12,8M15,15.6L13,14H4V10H13L15,8.4V15.6M21.5,12C21.5,13.71 20.54,15.26 19,16V8C20.53,8.75 21.5,10.3 21.5,12Z'/></svg>",
1212
"supports": {
1313
"align": [ "left", "center", "right" ],

projects/plugins/jetpack/extensions/shared/block-category.js

+5-5
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ if ( ! isWpcom ) {
1414
}
1515

1616
// We're moving Form specific blocks to a new 'Forms' category
17-
// that should appear before the 'earn' and 'grow' categories
17+
// that should appear before the 'monetize' and 'grow' categories
1818
setCategories( [
1919
...getCategories().filter( ( { slug } ) => slug !== 'contact-form' ),
2020
{
@@ -25,11 +25,11 @@ setCategories( [
2525
] );
2626

2727
setCategories( [
28-
...getCategories().filter( ( { slug } ) => slug !== 'earn' ),
29-
// Add a Earn block category
28+
...getCategories().filter( ( { slug } ) => slug !== 'monetize' ),
29+
// Add a Monetize block category
3030
{
31-
slug: 'earn',
32-
title: __( 'Earn', 'jetpack' ),
31+
slug: 'monetize',
32+
title: __( 'Monetize', 'jetpack' ),
3333
icon: <JetpackLogo />,
3434
},
3535
] );

projects/plugins/jetpack/extensions/shared/block-category.native.js

+4-4
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,11 @@ if ( hostApp === 'WordPress' ) {
1212
}
1313

1414
setCategories( [
15-
...getCategories().filter( ( { slug } ) => slug !== 'earn' ),
16-
// Add a Earn block category
15+
...getCategories().filter( ( { slug } ) => slug !== 'monetize' ),
16+
// Add a Monetize block category
1717
{
18-
slug: 'earn',
19-
title: __( 'Earn', 'jetpack' ),
18+
slug: 'monetize',
19+
title: __( 'Monetize', 'jetpack' ),
2020
icon: <JetpackLogo />,
2121
},
2222
] );

0 commit comments

Comments
 (0)