Prep Plugin for release on WordPress.org
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.
This commit is contained in:
@ -16,7 +16,7 @@
|
||||
|
||||
<h3 class="wu-m-0 <?php echo wu_env_picker('', 'wu-widget-title'); ?>">
|
||||
|
||||
<?php echo $title; ?>
|
||||
<?php echo esc_html($title); ?>
|
||||
|
||||
</h3>
|
||||
|
||||
@ -32,7 +32,7 @@
|
||||
href="<?php echo $element->get_manage_url($site->get_id()); ?>"
|
||||
>
|
||||
|
||||
<?php _e('See More', 'wp-multisite-waas'); ?>
|
||||
<?php esc_html_e('See More', 'wp-multisite-waas'); ?>
|
||||
|
||||
</a>
|
||||
|
||||
@ -53,15 +53,15 @@
|
||||
|
||||
<strong class="wu-text-gray-800 wu-text-base">
|
||||
|
||||
<?php echo $product->get_name(); ?>
|
||||
<?php echo esc_html($product->get_name()); ?>
|
||||
|
||||
</strong>
|
||||
|
||||
</div>
|
||||
|
||||
<div class="wu-text-sm wu-text-gray-600">
|
||||
<span class="wu-block"><?php _e('Your current plan', 'wp-multisite-waas'); ?></span>
|
||||
<!-- <a href="#" class="wu-no-underline"><?php _e('Manage →', 'wp-multisite-waas'); ?></a> -->
|
||||
<span class="wu-block"><?php esc_html_e('Your current plan', 'wp-multisite-waas'); ?></span>
|
||||
<!-- <a href="#" class="wu-no-underline"><?php esc_html_e('Manage →', 'wp-multisite-waas'); ?></a> -->
|
||||
</div>
|
||||
|
||||
</li>
|
||||
@ -75,14 +75,14 @@
|
||||
<div>
|
||||
|
||||
<strong class="wu-text-gray-800 wu-text-base">
|
||||
<?php printf(_n('%s day', '%s days', $site_trial, 'wp-multisite-waas'), $site_trial); ?>
|
||||
<?php printf(esc_html(_n('%s day', '%s days', $site_trial, 'wp-multisite-waas')), esc_html($site_trial)); ?>
|
||||
</strong>
|
||||
|
||||
</div>
|
||||
|
||||
<div class="wu-text-sm wu-text-gray-600">
|
||||
<span class="wu-block"><?php _e('Remaining time in trial', 'wp-multisite-waas'); ?></span>
|
||||
<!-- <a href="#" class="wu-no-underline"><?php _e('Upgrade →', 'wp-multisite-waas'); ?></a> -->
|
||||
<span class="wu-block"><?php esc_html_e('Remaining time in trial', 'wp-multisite-waas'); ?></span>
|
||||
<!-- <a href="#" class="wu-no-underline"><?php esc_html_e('Upgrade →', 'wp-multisite-waas'); ?></a> -->
|
||||
</div>
|
||||
|
||||
</li>
|
||||
@ -98,7 +98,7 @@
|
||||
/**
|
||||
* Display space used
|
||||
*/
|
||||
printf($message, size_format($space_used), size_format($space_allowed));
|
||||
printf(esc_html($message), esc_html(size_format($space_used)), esc_html(size_format($space_allowed)));
|
||||
?>
|
||||
</strong>
|
||||
|
||||
@ -113,8 +113,8 @@
|
||||
</div>
|
||||
|
||||
<div class="wu-text-sm wu-text-gray-600">
|
||||
<span class="wu-block"><?php _e('Disk space used', 'wp-multisite-waas'); ?></span>
|
||||
<!-- <a href="#" class="wu-no-underline"><?php _e('Upgrade →', 'wp-multisite-waas'); ?></a> -->
|
||||
<span class="wu-block"><?php esc_html_e('Disk space used', 'wp-multisite-waas'); ?></span>
|
||||
<!-- <a href="#" class="wu-no-underline"><?php esc_html_e('Upgrade →', 'wp-multisite-waas'); ?></a> -->
|
||||
</div>
|
||||
|
||||
</li>
|
||||
|
@ -11,11 +11,11 @@
|
||||
|
||||
<div v-if="loading"
|
||||
class="wu-text-center wu-bg-gray-100 wu-rounded wu-uppercase wu-font-semibold wu-text-xs wu-text-gray-700 wu-p-4">
|
||||
<span class="wu-blinking-animation"><?php _e('Loading...', 'wp-multisite-waas'); ?></span>
|
||||
<span class="wu-blinking-animation"><?php esc_html_e('Loading...', 'wp-multisite-waas'); ?></span>
|
||||
</div>
|
||||
|
||||
<div v-if='!queried.count && !loading' v-cloak class='wu-feed-loading wu-mb-6'>
|
||||
<?php _e('No more items to display', 'wp-multisite-waas'); ?>
|
||||
<?php esc_html_e('No more items to display', 'wp-multisite-waas'); ?>
|
||||
</div>
|
||||
|
||||
<div v-if="!loading" class="wu-widget-inset">
|
||||
@ -91,17 +91,17 @@
|
||||
class='wu-feed-pagination wu-m-0 wu-flex wu-justify-between'>
|
||||
<li class="wu-w-1/3 wu-m-0">
|
||||
<a href="#" class="wu-block" v-on:click.prevent="refresh">
|
||||
<?php _e('Refresh', 'wp-multisite-waas'); ?>
|
||||
<?php esc_html_e('Refresh', 'wp-multisite-waas'); ?>
|
||||
</a>
|
||||
</li>
|
||||
<li v-if="page > 1" class="wu-w-1/3 wu-text-center wu-m-0">
|
||||
<a href="#" v-on:click.prevent="navigatePrev" class="wu-block">
|
||||
← <?php _e('Previous Page', 'wp-multisite-waas'); ?>
|
||||
← <?php esc_html_e('Previous Page', 'wp-multisite-waas'); ?>
|
||||
</a>
|
||||
</li>
|
||||
<li v-if="hasMore() && !loading" class="wu-w-1/3 wu-text-right wu-m-0">
|
||||
<a href="#" v-on:click.prevent="navigateNext" class="wu-block">
|
||||
<?php _e('Next Page', 'wp-multisite-waas'); ?>
|
||||
<?php esc_html_e('Next Page', 'wp-multisite-waas'); ?>
|
||||
→
|
||||
</a>
|
||||
</li>
|
||||
@ -173,7 +173,7 @@
|
||||
|
||||
Vue.set(wuActivityStream, 'queried', data.data);
|
||||
|
||||
} // end if;
|
||||
}
|
||||
|
||||
},
|
||||
})
|
||||
|
@ -20,7 +20,7 @@
|
||||
|
||||
<h3 class="wu-m-0 <?php echo wu_env_picker('', 'wu-widget-title'); ?>">
|
||||
|
||||
<?php echo $title; ?>
|
||||
<?php echo esc_html($title); ?>
|
||||
|
||||
</h3>
|
||||
|
||||
@ -34,7 +34,7 @@
|
||||
href="<?php echo $update_billing_address_link; ?>"
|
||||
>
|
||||
|
||||
<?php _e('Update', 'wp-multisite-waas'); ?>
|
||||
<?php esc_html_e('Update', 'wp-multisite-waas'); ?>
|
||||
|
||||
</a>
|
||||
|
||||
@ -49,7 +49,7 @@
|
||||
|
||||
<div class="wu-p-4 wu-bg-gray-100 wu-rounded">
|
||||
|
||||
<?php printf(__('No billing address found. Click <a title="%1$s" href="%2$s" class="wubox wu-no-underline">here</a> to add one.', 'wp-multisite-waas'), __('Update Billing Address', 'wp-multisite-waas'), $update_billing_address_link); ?>
|
||||
<?php printf(wp_kses_post(__('No billing address found. Click <a title="%1$s" href="%2$s" class="wubox wu-no-underline">here</a> to add one.', 'wp-multisite-waas')), esc_html__('Update Billing Address', 'wp-multisite-waas'), esc_url($update_billing_address_link)); ?>
|
||||
|
||||
</div>
|
||||
|
||||
@ -66,10 +66,10 @@
|
||||
<div class="sm:wu-divide-y sm:wu-divide-gray-200">
|
||||
<div class="wu-py-4 sm:wu-grid sm:wu-grid-cols-3 sm:wu-gap-4 sm:wu-px-4">
|
||||
<div class="wu-text-sm wu-font-medium wu-text-gray-600">
|
||||
<?php echo $label; ?>
|
||||
<?php echo esc_html($label); ?>
|
||||
</div>
|
||||
<div class="wu-mt-1 wu-text-sm wu-text-gray-900 sm:wu-mt-0 sm:wu-col-span-2">
|
||||
<?php echo $value; ?>
|
||||
<?php echo esc_html($value); ?>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@ -113,7 +113,7 @@
|
||||
href="<?php echo $update_billing_address_link; ?>"
|
||||
>
|
||||
|
||||
<?php _e('Update', 'wp-multisite-waas'); ?>
|
||||
<?php esc_html_e('Update', 'wp-multisite-waas'); ?>
|
||||
|
||||
</a>
|
||||
|
||||
|
@ -38,7 +38,7 @@
|
||||
|
||||
<span class="wu-text-xs wu-uppercase wu-font-bold wu-block">
|
||||
|
||||
<?php _e('Product Description:', 'wp-multisite-waas'); ?>
|
||||
<?php esc_html_e('Product Description:', 'wp-multisite-waas'); ?>
|
||||
|
||||
</span>
|
||||
|
||||
@ -48,7 +48,7 @@
|
||||
|
||||
<span class="wu-text-xs wu-uppercase wu-font-bold wu-block">
|
||||
|
||||
<?php _e('Product Characteristics:', 'wp-multisite-waas'); ?>
|
||||
<?php esc_html_e('Product Characteristics:', 'wp-multisite-waas'); ?>
|
||||
|
||||
</span>
|
||||
|
||||
|
@ -116,7 +116,7 @@
|
||||
<div class="sm:wu-col-span-1">
|
||||
|
||||
<div class="wu-text-sm wu-font-medium wu-text-gray-600">
|
||||
<?php _e('Status', 'wp-multisite-waas'); ?>
|
||||
<?php esc_html_e('Status', 'wp-multisite-waas'); ?>
|
||||
</div>
|
||||
|
||||
<div class="wu-mt-1 wu-text-sm wu-text-gray-900 wu-mb-4">
|
||||
@ -134,7 +134,7 @@
|
||||
<div class="sm:wu-col-span-1">
|
||||
|
||||
<div class="wu-text-sm wu-font-medium wu-text-gray-600">
|
||||
<?php _e('Initial Amount', 'wp-multisite-waas'); ?>
|
||||
<?php esc_html_e('Initial Amount', 'wp-multisite-waas'); ?>
|
||||
</div>
|
||||
|
||||
<div class="wu-mt-1 wu-text-sm wu-text-gray-900 wu-mb-4">
|
||||
@ -148,7 +148,7 @@
|
||||
<div class="sm:wu-col-span-1">
|
||||
|
||||
<div class="wu-text-sm wu-font-medium wu-text-gray-600">
|
||||
<?php _e('Times Billed', 'wp-multisite-waas'); ?>
|
||||
<?php esc_html_e('Times Billed', 'wp-multisite-waas'); ?>
|
||||
</div>
|
||||
|
||||
<div class="wu-mt-1 wu-text-sm wu-text-gray-900 wu-mb-4">
|
||||
@ -164,7 +164,7 @@
|
||||
<div class="sm:wu-col-span-1">
|
||||
|
||||
<div class="wu-text-sm wu-font-medium wu-text-gray-600">
|
||||
<?php _e('Expires', 'wp-multisite-waas'); ?>
|
||||
<?php esc_html_e('Expires', 'wp-multisite-waas'); ?>
|
||||
</div>
|
||||
|
||||
<div class="wu-mt-1 wu-text-sm wu-text-gray-900 wu-mb-4">
|
||||
|
@ -42,7 +42,7 @@
|
||||
<path d="M.293 0l22 22-22 22h1.414l22-22-22-22H.293z" />
|
||||
</svg>
|
||||
<a href="<?php echo esc_url($my_sites_url); ?>" class="wu-mx-4 wu-text-sm wu-font-medium wu-text-gray-500 hover:wu-text-gray-700 wu-no-underline">
|
||||
<?php _e('Your Sites', 'wp-multisite-waas'); ?>
|
||||
<?php esc_html_e('Your Sites', 'wp-multisite-waas'); ?>
|
||||
</a>
|
||||
</div>
|
||||
</li>
|
||||
|
@ -24,9 +24,9 @@
|
||||
|
||||
<div class="wu-ml-auto">
|
||||
|
||||
<a title="<?php _e('Add Domain', 'wp-multisite-waas'); ?>" href="<?php echo $modal['url']; ?>" class="wu-text-sm wu-no-underline wubox button">
|
||||
<a title="<?php esc_html_e('Add Domain', 'wp-multisite-waas'); ?>" href="<?php echo $modal['url']; ?>" class="wu-text-sm wu-no-underline wubox button">
|
||||
|
||||
<?php _e('Add Domain', 'wp-multisite-waas'); ?>
|
||||
<?php esc_html_e('Add Domain', 'wp-multisite-waas'); ?>
|
||||
|
||||
</a>
|
||||
|
||||
@ -58,7 +58,7 @@
|
||||
|
||||
if ( ! $item->is_active()) {
|
||||
$label = sprintf('%s <small>(%s)</small>', $label, __('Inactive', 'wp-multisite-waas'));
|
||||
} // end if;
|
||||
}
|
||||
|
||||
$class = $item->get_stage_class();
|
||||
|
||||
@ -74,7 +74,7 @@
|
||||
'url' => $domain['primary_link'],
|
||||
'value' => __('Make Primary', 'wp-multisite-waas'),
|
||||
];
|
||||
} // end if;
|
||||
}
|
||||
|
||||
$second_row_actions['remove'] = [
|
||||
'wrapper_classes' => 'wu-text-red-500 wubox',
|
||||
|
@ -12,11 +12,11 @@
|
||||
<div class="wu-w-full sm:wu-w-8/12">
|
||||
|
||||
<span class="wu-block wu-my-1 wu-text-base wu-font-semibold wu-text-gray-700">
|
||||
<?php _e('Your network is taking shape!', 'wp-multisite-waas'); ?>
|
||||
<?php esc_html_e('Your network is taking shape!', 'wp-multisite-waas'); ?>
|
||||
</span>
|
||||
|
||||
<span class="wu-block wu-my-1 wu-text-gray-600">
|
||||
<?php _e('Here are the next steps to keep you on that streak!', 'wp-multisite-waas'); ?>
|
||||
<?php esc_html_e('Here are the next steps to keep you on that streak!', 'wp-multisite-waas'); ?>
|
||||
</span>
|
||||
|
||||
</div>
|
||||
@ -24,7 +24,7 @@
|
||||
<div class="wu-w-4/12 wu-text-right wu-hidden sm:wu-inline-block">
|
||||
|
||||
<span class="wu-inline-block wu-bg-green-100 wu-text-center wu-align-middle wu-p-2 wu-font-mono wu-px-3 wu-border wu-border-green-300 wu-text-green-700 wu-border-solid wu-rounded">
|
||||
<?php echo $percentage . '% ' . __('done', 'wp-multisite-waas'); ?>
|
||||
<?php echo esc_html($percentage) . '% ' . esc_html__('done', 'wp-multisite-waas'); ?>
|
||||
</span>
|
||||
|
||||
</div>
|
||||
@ -41,7 +41,7 @@
|
||||
|
||||
<div>
|
||||
<span class="wu-hidden sm:wu-inline-block wu-mr-4 wu-bg-white wu-text-center wu-align-middle wu-p-1 wu-font-mono wu-px-3 wu-border wu-border-gray-300 wu-border-solid wu-rounded">
|
||||
<?php echo $index; ?>
|
||||
<?php echo esc_html($index); ?>
|
||||
</span>
|
||||
</div>
|
||||
|
||||
@ -49,7 +49,7 @@
|
||||
|
||||
<span class="wu-block wu-my-1 wu-font-semibold wu-text-gray-700">
|
||||
|
||||
<span class="<?php echo $step['done'] ? 'wu-line-through' : ''; ?>"><?php echo $step['title']; ?></span>
|
||||
<span class="<?php echo $step['done'] ? 'wu-line-through' : ''; ?>"><?php echo esc_html($step['title']); ?></span>
|
||||
|
||||
<?php if ($step['done']) : ?>
|
||||
|
||||
@ -59,7 +59,7 @@
|
||||
|
||||
</span>
|
||||
|
||||
<span class="wu-block wu-my-1 wu-text-gray-600 <?php echo $step['done'] ? 'wu-line-through' : ''; ?>"><?php echo $step['desc']; ?></span>
|
||||
<span class="wu-block wu-my-1 wu-text-gray-600 <?php echo $step['done'] ? 'wu-line-through' : ''; ?>"><?php echo esc_html($step['desc']); ?></span>
|
||||
|
||||
</div>
|
||||
|
||||
@ -68,7 +68,7 @@
|
||||
<div class="wu-block sm:wu-hidden wu-h-2"> </div>
|
||||
|
||||
<a href="<?php echo $step['action_link']; ?>" class="button wu-w-full sm:wu-w-auto wu-text-center">
|
||||
<?php echo $step['action_label']; ?>
|
||||
<?php echo esc_html($step['action_label']); ?>
|
||||
</a>
|
||||
|
||||
</div>
|
||||
@ -92,7 +92,7 @@ endforeach;
|
||||
class="button wu-text-center hide-postbox-tog"
|
||||
id="wp-ultimo-setup-hide"
|
||||
>
|
||||
<?php _e('Dismiss', 'wp-multisite-waas'); ?>
|
||||
<?php esc_html_e('Dismiss', 'wp-multisite-waas'); ?>
|
||||
</button>
|
||||
|
||||
</div>
|
||||
|
@ -17,7 +17,7 @@
|
||||
|
||||
<h3 class="wu-m-0 <?php echo wu_env_picker('', 'wu-widget-title'); ?>">
|
||||
|
||||
<?php echo $title; ?>
|
||||
<?php echo esc_html($title); ?>
|
||||
|
||||
</h3>
|
||||
|
||||
@ -47,15 +47,15 @@
|
||||
|
||||
</a>',
|
||||
$payment->get_invoice_url(),
|
||||
esc_attr__('Download Invoice', 'wp-multisite-waas')
|
||||
esc_html__('Download Invoice', 'wp-multisite-waas')
|
||||
);
|
||||
|
||||
$payment_column = $payment->get_status() === 'pending' ? [
|
||||
'pay_now' => [
|
||||
'url' => add_query_arg(['payment' => $payment->get_hash()], wu_get_registration_url()),
|
||||
'icon' => 'dashicons-wu-credit-card wu-align-middle wu-mr-1',
|
||||
'label' => __('Go to payment', 'wp-multisite-waas'),
|
||||
'value' => __('Pay Now', 'wp-multisite-waas'),
|
||||
'label' => esc_html__('Go to payment', 'wp-multisite-waas'),
|
||||
'value' => esc_html__('Pay Now', 'wp-multisite-waas'),
|
||||
],
|
||||
] : [];
|
||||
|
||||
|
@ -16,7 +16,7 @@
|
||||
|
||||
<h3 class="wu-m-0 <?php echo wu_env_picker('', 'wu-widget-title'); ?>">
|
||||
|
||||
<?php echo $title; ?>
|
||||
<?php echo esc_html($title); ?>
|
||||
|
||||
</h3>
|
||||
|
||||
@ -37,7 +37,7 @@
|
||||
|
||||
if (is_array($items_to_display) && ! in_array($post_type_slug, $items_to_display, true)) {
|
||||
continue;
|
||||
} // end if;
|
||||
}
|
||||
|
||||
if ($post_type_limits->{$post_type_slug}->enabled) :
|
||||
$post_count = $post_type_limits->get_post_count($post_type_slug);
|
||||
@ -48,11 +48,11 @@
|
||||
$width = 5;
|
||||
} else {
|
||||
$width = ($post_count / $post_type_limits->{$post_type_slug}->number * 100);
|
||||
} // end if;
|
||||
}
|
||||
|
||||
if ($width > 100) {
|
||||
$width = 100;
|
||||
} // end if;
|
||||
}
|
||||
|
||||
?>
|
||||
|
||||
@ -60,7 +60,7 @@
|
||||
|
||||
<span class="">
|
||||
|
||||
<?php echo $post_type->label; ?>
|
||||
<?php echo esc_html($post_type->label); ?>
|
||||
|
||||
</span>
|
||||
|
||||
@ -72,9 +72,9 @@
|
||||
|
||||
<div class="wu-text-xs wu-text-gray-600 wu-align-middle">
|
||||
|
||||
<?php echo $post_count; ?>
|
||||
<?php echo esc_html($post_count); ?>
|
||||
/
|
||||
<?php echo empty($post_type_limits->{$post_type_slug}->number) ? __('Unlimited', 'wp-multisite-waas') : $post_type_limits->{$post_type_slug}->number; ?>
|
||||
<?php echo empty($post_type_limits->{$post_type_slug}->number) ? esc_html__('Unlimited', 'wp-multisite-waas') : esc_html($post_type_limits->{$post_type_slug}->number); ?>
|
||||
|
||||
</div>
|
||||
|
||||
@ -113,7 +113,7 @@ endforeach;
|
||||
|
||||
<div class="">
|
||||
|
||||
<?php _e('Unique Visits', 'wp-multisite-waas'); ?>
|
||||
<?php esc_html_e('Unique Visits', 'wp-multisite-waas'); ?>
|
||||
|
||||
<?php echo wu_tooltip(sprintf(__('Next Reset: %s', 'wp-multisite-waas'), date_i18n(get_option('date_format', 'd/m/Y'), strtotime('last day of this month')))); ?>
|
||||
|
||||
|
@ -16,7 +16,7 @@
|
||||
<?php
|
||||
|
||||
// translators: 1$s is the display name of the user currently logged in.
|
||||
printf(__('Not %1$s? <a href="%2$s" class="wu-no-underline">Log in</a> using your account.', 'wp-multisite-waas'), wp_get_current_user()->display_name, $login_url);
|
||||
printf(wp_kses_post(__('Not %1$s? <a href="%2$s" class="wu-no-underline">Log in</a> using your account.', 'wp-multisite-waas')), esc_html(wp_get_current_user()->display_name), esc_url($login_url));
|
||||
|
||||
?>
|
||||
|
||||
@ -33,7 +33,7 @@
|
||||
|
||||
<h2 class="wu-m-0 <?php echo wu_env_picker('', 'wu-widget-title'); ?>">
|
||||
|
||||
<?php echo $title; ?>
|
||||
<?php echo esc_html($title); ?>
|
||||
|
||||
</h2>
|
||||
|
||||
@ -49,7 +49,7 @@
|
||||
href="<?php echo wu_get_registration_url(); ?>"
|
||||
>
|
||||
|
||||
<?php _e('Create an Account', 'wp-multisite-waas'); ?>
|
||||
<?php esc_html_e('Create an Account', 'wp-multisite-waas'); ?>
|
||||
|
||||
</a>
|
||||
|
||||
|
@ -69,7 +69,7 @@ $show_add_new = apply_filters('wp_ultimo_my_sites_show_add_new', $show_add_new);
|
||||
|
||||
<span
|
||||
class="wu-shadow-sm wu-inline-flex wu-items-center wu-px-2 wu-py-1 wu-rounded wu-text-sm wu-font-medium wu-bg-gray-800 wu-text-gray-300">
|
||||
<?php _e('Primary', 'wp-multisite-waas'); ?>
|
||||
<?php esc_html_e('Primary', 'wp-multisite-waas'); ?>
|
||||
</span>
|
||||
|
||||
<?php endif; ?>
|
||||
@ -139,7 +139,7 @@ $show_add_new = apply_filters('wp_ultimo_my_sites_show_add_new', $show_add_new);
|
||||
<li class="wu-block wu-my-2">
|
||||
<span
|
||||
class="wu-w-full wu-no-underline <?php echo wu_env_picker('wu-text-sm', 'button button-primary button-disabled'); ?>">
|
||||
<?php _e('Current Site', 'wp-multisite-waas'); ?>
|
||||
<?php esc_html_e('Current Site', 'wp-multisite-waas'); ?>
|
||||
</span>
|
||||
</li>
|
||||
|
||||
@ -148,7 +148,7 @@ $show_add_new = apply_filters('wp_ultimo_my_sites_show_add_new', $show_add_new);
|
||||
<li class="wu-block wu-my-2">
|
||||
<a href="<?php echo esc_url($element->get_manage_url($site->get_id(), $site_manage_type, $custom_manage_page)); ?>"
|
||||
class="wu-w-full wu-no-underline <?php echo wu_env_picker('wu-text-sm', 'button button-primary'); ?>">
|
||||
<?php _e('Manage', 'wp-multisite-waas'); ?>
|
||||
<?php esc_html_e('Manage', 'wp-multisite-waas'); ?>
|
||||
</a>
|
||||
</li>
|
||||
|
||||
@ -170,7 +170,7 @@ $show_add_new = apply_filters('wp_ultimo_my_sites_show_add_new', $show_add_new);
|
||||
|
||||
<span class="wu-text-center wu-p-8">
|
||||
<span class="wu-text-3xl dashicons-wu-circle-with-plus"></span>
|
||||
<span class="wu-text-lg wu-mt-2 wu-block"><?php _e('Add new Site', 'wp-multisite-waas'); ?></span>
|
||||
<span class="wu-text-lg wu-mt-2 wu-block"><?php esc_html_e('Add new Site', 'wp-multisite-waas'); ?></span>
|
||||
</span>
|
||||
|
||||
</a>
|
||||
|
@ -37,7 +37,7 @@
|
||||
class="
|
||||
<?php
|
||||
if (isset($action['classes']) && $action['classes']) {
|
||||
echo esc_attr($action['classes']); } // end if;
|
||||
echo esc_attr($action['classes']); }
|
||||
?>
|
||||
wu-px-4 wu-py-3 wu-inline-block wu-no-underline"
|
||||
>
|
||||
|
@ -20,7 +20,7 @@
|
||||
</div>
|
||||
|
||||
<div class="wu-text-md wu-text-gray-600">
|
||||
<span class="wu-block"><?php _e('Signups today', 'wp-multisite-waas'); ?></span>
|
||||
<span class="wu-block"><?php esc_html_e('Signups today', 'wp-multisite-waas'); ?></span>
|
||||
</div>
|
||||
|
||||
</li>
|
||||
@ -36,7 +36,7 @@
|
||||
</div>
|
||||
|
||||
<div class="wu-text-md wu-text-gray-600">
|
||||
<span class="wu-block"><?php _e('MRR', 'wp-multisite-waas'); ?></span>
|
||||
<span class="wu-block"><?php esc_html_e('MRR', 'wp-multisite-waas'); ?></span>
|
||||
</div>
|
||||
|
||||
</li>
|
||||
|
@ -45,7 +45,7 @@
|
||||
|
||||
<span class="wu-uppercase wu-text-sm wu-block">
|
||||
|
||||
<?php _e('Order ID', 'wp-multisite-waas'); ?>
|
||||
<?php esc_html_e('Order ID', 'wp-multisite-waas'); ?>
|
||||
|
||||
</span>
|
||||
|
||||
@ -69,7 +69,7 @@
|
||||
|
||||
<span class="wu-uppercase wu-text-sm wu-block">
|
||||
|
||||
<?php _e('Email', 'wp-multisite-waas'); ?>
|
||||
<?php esc_html_e('Email', 'wp-multisite-waas'); ?>
|
||||
|
||||
</span>
|
||||
|
||||
@ -87,7 +87,7 @@
|
||||
|
||||
<span class="wu-uppercase wu-text-sm wu-block">
|
||||
|
||||
<?php _e('Total', 'wp-multisite-waas'); ?>
|
||||
<?php esc_html_e('Total', 'wp-multisite-waas'); ?>
|
||||
|
||||
</span>
|
||||
|
||||
@ -141,7 +141,7 @@
|
||||
|
||||
<span class="wu-uppercase wu-text-sm wu-block">
|
||||
|
||||
<?php _e('Order ID', 'wp-multisite-waas'); ?>
|
||||
<?php esc_html_e('Order ID', 'wp-multisite-waas'); ?>
|
||||
|
||||
</span>
|
||||
|
||||
@ -159,7 +159,7 @@
|
||||
|
||||
<span class="wu-uppercase wu-text-sm wu-block">
|
||||
|
||||
<?php _e('Date', 'wp-multisite-waas'); ?>
|
||||
<?php esc_html_e('Date', 'wp-multisite-waas'); ?>
|
||||
|
||||
</span>
|
||||
|
||||
@ -177,7 +177,7 @@
|
||||
|
||||
<span class="wu-uppercase wu-text-sm wu-block">
|
||||
|
||||
<?php _e('Email', 'wp-multisite-waas'); ?>
|
||||
<?php esc_html_e('Email', 'wp-multisite-waas'); ?>
|
||||
|
||||
</span>
|
||||
|
||||
@ -195,7 +195,7 @@
|
||||
|
||||
<span class="wu-uppercase wu-text-sm wu-block">
|
||||
|
||||
<?php _e('Total', 'wp-multisite-waas'); ?>
|
||||
<?php esc_html_e('Total', 'wp-multisite-waas'); ?>
|
||||
|
||||
</span>
|
||||
|
||||
@ -227,7 +227,7 @@
|
||||
|
||||
<h4 class="wu-m-0 <?php echo wu_env_picker('', 'wu-widget-title'); ?>">
|
||||
|
||||
<?php echo _e('Site', 'wp-multisite-waas'); ?>
|
||||
<?php echo esc_html_e('Site', 'wp-multisite-waas'); ?>
|
||||
|
||||
</h4>
|
||||
|
||||
@ -277,7 +277,7 @@
|
||||
<?php else : ?>
|
||||
|
||||
<span class="wu-align-middle wu-inline-block wu-rounded wu-px-2 wu-py-1 wu-uppercase wu-text-xs wu-font-bold wu-bg-green-300 wu-text-green-700">
|
||||
<?php _e('Ready!', 'wp-multisite-waas'); ?>
|
||||
<?php esc_html_e('Ready!', 'wp-multisite-waas'); ?>
|
||||
</span>
|
||||
|
||||
<?php endif; ?>
|
||||
@ -302,23 +302,23 @@
|
||||
|
||||
<a v-if="!creating" href="<?php echo wu_get_current_url(); ?>" class="wu-block sm:wu-inline-block wu-no-underline">
|
||||
<span class="dashicons-wu-cycle wu-align-middle wu-mr-1"></span>
|
||||
<?php _e('Check Status', 'wp-multisite-waas'); ?>
|
||||
<?php esc_html_e('Check Status', 'wp-multisite-waas'); ?>
|
||||
</a>
|
||||
<div v-else class="wu-block sm:wu-inline-block wu-no-underline">
|
||||
<span class="dashicons-wu-loader wu-align-middle wu-mr-1 wu-spin" style="display: inline-block;"></span>
|
||||
<?php _e('Creating', 'wp-multisite-waas'); ?>
|
||||
<?php esc_html_e('Creating', 'wp-multisite-waas'); ?>
|
||||
</div>
|
||||
|
||||
<?php else : ?>
|
||||
|
||||
<a href="<?php echo esc_attr(get_admin_url($site->get_id())); ?>" class="wu-block sm:wu-inline-block wu-no-underline sm:wu-mr-4">
|
||||
<span class="dashicons-wu-gauge wu-align-middle wu-mr-1"></span>
|
||||
<?php _e('Admin Panel', 'wp-multisite-waas'); ?>
|
||||
<?php esc_html_e('Admin Panel', 'wp-multisite-waas'); ?>
|
||||
</a>
|
||||
|
||||
<a href="<?php echo esc_attr(wu_with_sso(get_site_url($site->get_id()))); ?>" class="wu-block sm:wu-inline-block wu-no-underline" target="_blank">
|
||||
<span class="dashicons-wu-browser wu-align-middle wu-mr-1"></span>
|
||||
<?php _e('Visit', 'wp-multisite-waas'); ?>
|
||||
<?php esc_html_e('Visit', 'wp-multisite-waas'); ?>
|
||||
</a>
|
||||
|
||||
<?php endif; ?>
|
||||
@ -357,7 +357,7 @@
|
||||
|
||||
<h4 class="wu-m-0 <?php echo wu_env_picker('', 'wu-widget-title'); ?>">
|
||||
|
||||
<?php echo _e('Order Details', 'wp-multisite-waas'); ?>
|
||||
<?php echo esc_html_e('Order Details', 'wp-multisite-waas'); ?>
|
||||
|
||||
</h4>
|
||||
|
||||
@ -374,8 +374,8 @@
|
||||
<thead class="wu-bg-gray-100">
|
||||
|
||||
<tr>
|
||||
<th class="wu-text-left wu-py-2 wu-px-4"><?php _e('Product', 'wp-multisite-waas'); ?></th>
|
||||
<th class="wu-text-left wu-py-2 wu-px-4"><?php _e('Total', 'wp-multisite-waas'); ?></th>
|
||||
<th class="wu-text-left wu-py-2 wu-px-4"><?php esc_html_e('Product', 'wp-multisite-waas'); ?></th>
|
||||
<th class="wu-text-left wu-py-2 wu-px-4"><?php esc_html_e('Total', 'wp-multisite-waas'); ?></th>
|
||||
</tr>
|
||||
|
||||
</thead>
|
||||
@ -404,7 +404,7 @@
|
||||
<tfoot class="wu-bg-gray-100">
|
||||
|
||||
<tr>
|
||||
<th class="wu-text-left wu-py-2 wu-px-4"><?php _e('Subtotal', 'wp-multisite-waas'); ?></th>
|
||||
<th class="wu-text-left wu-py-2 wu-px-4"><?php esc_html_e('Subtotal', 'wp-multisite-waas'); ?></th>
|
||||
<th class="wu-text-left wu-py-2 wu-px-4"><?php echo wu_format_currency($payment->get_subtotal(), $payment->get_currency()); ?></th>
|
||||
</tr>
|
||||
|
||||
@ -418,7 +418,7 @@
|
||||
<?php endforeach; ?>
|
||||
|
||||
<tr>
|
||||
<th class="wu-text-left wu-py-2 wu-px-4"><?php _e('Total', 'wp-multisite-waas'); ?></th>
|
||||
<th class="wu-text-left wu-py-2 wu-px-4"><?php esc_html_e('Total', 'wp-multisite-waas'); ?></th>
|
||||
<th class="wu-text-left wu-py-2 wu-px-4"><?php echo wu_format_currency($payment->get_total(), $payment->get_currency()); ?></th>
|
||||
</tr>
|
||||
|
||||
@ -442,7 +442,7 @@
|
||||
|
||||
<h4 class="wu-m-0 <?php echo wu_env_picker('', 'wu-widget-title'); ?>">
|
||||
|
||||
<?php echo _e('Billing Address', 'wp-multisite-waas'); ?>
|
||||
<?php echo esc_html_e('Billing Address', 'wp-multisite-waas'); ?>
|
||||
|
||||
</h4>
|
||||
|
||||
|
Reference in New Issue
Block a user