PluginProbe
GiveWP – Donation Plugin and Fundraising Platform / 4.17.0
GiveWP – Donation Plugin and Fundraising Platform v4.17.0
4.17.0 4.16.9 4.16.8.1 4.16.8 4.16.7.2 4.16.7.1 4.16.7 4.16.6.1 4.16.6 4.16.5.1 4.16.5 4.16.4 4.16.3 4.16.2 4.16.1 4.16.0 4.15.5 4.15.4 4.15.3 4.15.2 4.15.1 4.15.0 2.3.0 2.3.1 2.3.2 All 256 releases
← All changes | blocks/components/edit-form/index.js +7 -6 2.3.0 → 4.17.0 View file →
@@ -1,13 +1,14 @@
1 1 /**
2 2 * WordPress dependencies
3 3 */
4 -const { __ } = wp.i18n;
5 -const { Button } = wp.components;
4 +import { __ } from '@wordpress/i18n'
5 +import { Button } from '@wordpress/components';
6 6
7 7 /**
8 8 * Internal dependencies
9 9 */
10 +import { getSiteUrl } from '../../utils';
10 11 import GiveBlankSlate from '../blank-slate';
11 12
12 13 /**
13 14 * Render No forms Found UI
@@ -20,19 +21,19 @@
20 21 };
21 22
22 23 return (
23 24 <GiveBlankSlate title={ __( 'Edit Form.' ) }
24 - description={ __( 'You can not see donation form preview because there is something went wrong with donation form settings.' ) }>
25 + description={ __( 'An error occured with donation form settings that rendered the preview inaccessible.', 'give' ) }>
25 26 <Button isPrimary
26 27 isLarge
27 28 target="_blank"
28 - href={ `${ wpApiSettings.schema.url }/wp-admin/post.php?post=${ formId }&action=edit` }>
29 - { __( 'Edit Donation Form' ) }
29 + href={ `${ getSiteUrl() }/wp-admin/post.php?post=${ formId }&action=edit` }>
30 + { __( 'Edit Donation Form', 'give' ) }
30 31 </Button>
31 32 &nbsp;&nbsp;
32 33 <Button isLarge
33 34 onClick={ changeForm }>
34 - { __( 'Change Form' ) }
35 + { __( 'Change Form', 'give' ) }
35 36 </Button>
36 37 </GiveBlankSlate>
37 38 );
38 39 };