Prep Plugin for release on WordPress.org (#23)
* Update translation text domain * Escape everything that should be escaped. * Add nonce checks where needed. * Sanitize all inputs. * Apply Code style changes across the codebase. * Correct many deprecation notices. * Optimize load order of many filters. * Add Proper Build script * Use emojii flags * Fix i18n deprecation notice for translating too early * Put all scripts in footer and load async
This commit is contained in:
@ -239,38 +239,38 @@ class Billing_Address {
|
||||
|
||||
$fields['company_name'] = [
|
||||
'type' => 'text',
|
||||
'title' => __('Company Name', 'wp-ultimo'),
|
||||
'default_placeholder' => __('E.g. Google (optional)', 'wp-ultimo'),
|
||||
'title' => __('Company Name', 'wp-multisite-waas'),
|
||||
'default_placeholder' => __('E.g. Google (optional)', 'wp-multisite-waas'),
|
||||
'wrapper_classes' => 'sm:wu-col-span-1',
|
||||
];
|
||||
|
||||
$fields['billing_email'] = [
|
||||
'type' => 'text',
|
||||
'title' => __('Billing Email', 'wp-ultimo'),
|
||||
'default_placeholder' => __('E.g. john@company.com', 'wp-ultimo'),
|
||||
'title' => __('Billing Email', 'wp-multisite-waas'),
|
||||
'default_placeholder' => __('E.g. john@company.com', 'wp-multisite-waas'),
|
||||
'wrapper_classes' => 'sm:wu-col-span-1',
|
||||
'required' => true,
|
||||
];
|
||||
|
||||
$fields['billing_address_line_1'] = [
|
||||
'type' => 'text',
|
||||
'title' => __('Address Line 1', 'wp-ultimo'),
|
||||
'default_placeholder' => __('E.g. 555 1st Avenue', 'wp-ultimo'),
|
||||
'title' => __('Address Line 1', 'wp-multisite-waas'),
|
||||
'default_placeholder' => __('E.g. 555 1st Avenue', 'wp-multisite-waas'),
|
||||
'wrapper_classes' => 'wu-col-span-2',
|
||||
'required' => true,
|
||||
];
|
||||
|
||||
$fields['billing_address_line_2'] = [
|
||||
'type' => 'text',
|
||||
'title' => __('Address Line 2', 'wp-ultimo'),
|
||||
'default_placeholder' => __('E.g. Apartment 10a', 'wp-ultimo'),
|
||||
'title' => __('Address Line 2', 'wp-multisite-waas'),
|
||||
'default_placeholder' => __('E.g. Apartment 10a', 'wp-multisite-waas'),
|
||||
'wrapper_classes' => 'wu-col-span-2',
|
||||
];
|
||||
|
||||
$fields['billing_country'] = [
|
||||
'type' => 'select',
|
||||
'title' => __('Country', 'wp-ultimo'),
|
||||
'default_placeholder' => __('E.g. US', 'wp-ultimo'),
|
||||
'title' => __('Country', 'wp-multisite-waas'),
|
||||
'default_placeholder' => __('E.g. US', 'wp-multisite-waas'),
|
||||
'wrapper_classes' => 'sm:wu-col-span-1',
|
||||
'value' => ' ',
|
||||
'options' => $countries,
|
||||
@ -279,22 +279,22 @@ class Billing_Address {
|
||||
|
||||
$fields['billing_state'] = [
|
||||
'type' => 'text',
|
||||
'title' => __('State / Province', 'wp-ultimo'),
|
||||
'default_placeholder' => __('E.g. NY', 'wp-ultimo'),
|
||||
'title' => __('State / Province', 'wp-multisite-waas'),
|
||||
'default_placeholder' => __('E.g. NY', 'wp-multisite-waas'),
|
||||
'wrapper_classes' => 'sm:wu-col-span-1',
|
||||
];
|
||||
|
||||
$fields['billing_city'] = [
|
||||
'type' => 'text',
|
||||
'title' => __('City / Town', 'wp-ultimo'),
|
||||
'default_placeholder' => __('E.g. New York City', 'wp-ultimo'),
|
||||
'title' => __('City / Town', 'wp-multisite-waas'),
|
||||
'default_placeholder' => __('E.g. New York City', 'wp-multisite-waas'),
|
||||
'wrapper_classes' => 'sm:wu-col-span-1',
|
||||
];
|
||||
|
||||
$fields['billing_zip_code'] = [
|
||||
'type' => 'text',
|
||||
'title' => __('ZIP / Postal Code', 'wp-ultimo'),
|
||||
'default_placeholder' => __('E.g. 10009', 'wp-ultimo'),
|
||||
'title' => __('ZIP / Postal Code', 'wp-multisite-waas'),
|
||||
'default_placeholder' => __('E.g. 10009', 'wp-multisite-waas'),
|
||||
'wrapper_classes' => 'sm:wu-col-span-1',
|
||||
'required' => true,
|
||||
];
|
||||
|
Reference in New Issue
Block a user