Skip to content

Commit 0662f3e

Browse files
committed
Plugins: change com-vs-org support link to inline (Help Center)
1 parent 6085912 commit 0662f3e

File tree

2 files changed

+6
-7
lines changed

2 files changed

+6
-7
lines changed

client/components/inline-support-link/context-links.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,10 @@ const contextLinks = {
5151
link: 'https://wordpress.com/support/comments/',
5252
post_id: 113,
5353
},
54+
com_vs_org: {
55+
link: 'https://wordpress.com/support/com-vs-org/',
56+
post_id: 38,
57+
},
5458
dashboard: {
5559
link: 'https://wordpress.com/support/dashboard/',
5660
post_id: 137,

client/my-sites/plugins/plugin-details.jsx

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ import QueryProductsList from 'calypso/components/data/query-products-list';
1414
import QuerySiteFeatures from 'calypso/components/data/query-site-features';
1515
import QuerySitePurchases from 'calypso/components/data/query-site-purchases';
1616
import QueryUserPurchases from 'calypso/components/data/query-user-purchases';
17+
import InlineSupportLink from 'calypso/components/inline-support-link';
1718
import MainComponent from 'calypso/components/main';
1819
import NavigationHeader from 'calypso/components/navigation-header';
1920
import Notice from 'calypso/components/notice';
@@ -335,13 +336,7 @@ function PluginDetails( props ) {
335336
rel="noreferrer noopener"
336337
/>
337338
),
338-
wpcom_vs_wporg_link: (
339-
<a
340-
href={ localizeUrl( 'https://wordpress.com/support/com-vs-org/' ) }
341-
target="_blank"
342-
rel="noreferrer noopener"
343-
/>
344-
),
339+
wpcom_vs_wporg_link: <InlineSupportLink supportContext="com_vs_org" showIcon={ false } />,
345340
},
346341
};
347342

0 commit comments

Comments
 (0)