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:
@ -11,8 +11,8 @@
|
||||
<?php
|
||||
echo wu_render_empty_state(
|
||||
[
|
||||
'message' => __('No notes yet.', 'wp-ultimo'),
|
||||
'sub_message' => __('Use the "Add new Note" to create the first one.', 'wp-ultimo'),
|
||||
'message' => __('No notes yet.', 'wp-multisite-waas'),
|
||||
'sub_message' => __('Use the "Add new Note" to create the first one.', 'wp-multisite-waas'),
|
||||
'link_url' => false,
|
||||
'display_background_image' => false,
|
||||
]
|
||||
@ -51,7 +51,7 @@
|
||||
)
|
||||
);
|
||||
?>
|
||||
<?php echo $user->display_name; ?>
|
||||
<?php echo esc_html($user->display_name); ?>
|
||||
|
||||
</div>
|
||||
|
||||
@ -77,7 +77,7 @@
|
||||
<span class="wu-ml-2">
|
||||
|
||||
<a class="dashicons-wu-trash wu-p-0 wu-border-none wu-text-red-600 wu-button-delete wu-no-underline wubox" href="<?php echo esc_url(wu_get_form_url('delete_note', $modal_atts)); ?>"
|
||||
title="<?php echo esc_attr__('Clear Note', 'wp-ultimo'); ?>"></a>
|
||||
title="<?php echo esc_attr__('Clear Note', 'wp-multisite-waas'); ?>"></a>
|
||||
|
||||
</span>
|
||||
|
||||
|
@ -13,7 +13,7 @@
|
||||
|
||||
<span class="wu-self-center wu-blinking-animation wu-text-gray-600 wu-my-1 wu-text-2xs wu-uppercase wu-font-semibold">
|
||||
|
||||
<?php echo _e('Loading Preview...', 'wp-ultimo'); ?>
|
||||
<?php esc_html_e('Loading Preview...', 'wp-multisite-waas'); ?>
|
||||
|
||||
</span>
|
||||
|
||||
@ -31,7 +31,7 @@
|
||||
|
||||
<span class="wu-text-gray-600 wu-my-1 wu-text-2xs wu-uppercase wu-font-semibold">
|
||||
|
||||
<?php echo __('Template Preview', 'wp-ultimo'); ?>
|
||||
<?php echo esc_html__('Template Preview', 'wp-multisite-waas'); ?>
|
||||
|
||||
</span>
|
||||
|
||||
@ -43,7 +43,7 @@
|
||||
|
||||
<div id="preview_content" class="wu-block wu-bg-gray wu-text-center wu-mb-5 wu-border wu-border-t-0 wu-border-solid wu-rounded wu-border-gray-400">
|
||||
|
||||
<iframe id="preview-stage-iframe" class="preview-stage-iframe" width="100%" style="height: <?php echo $preview_height; ?>;" frameborder="0" data-src="<?php echo esc_url($preview_iframe_url); ?>" src="<?php echo esc_url($preview_iframe_url); ?>"></iframe>
|
||||
<iframe id="preview-stage-iframe" class="preview-stage-iframe" width="100%" style="height: <?php echo esc_attr($preview_height); ?>;" frameborder="0" data-src="<?php echo esc_url($preview_iframe_url); ?>" src="<?php echo esc_url($preview_iframe_url); ?>"></iframe>
|
||||
|
||||
</div>
|
||||
|
||||
|
@ -28,7 +28,7 @@
|
||||
<div class="wu-p-12 wu-h-12 wu--mt-1 wu--mx-3 wu--mb-3 wu-bg-gray-100 wu-text-gray-500 wu-text-xs wu-text-center">
|
||||
<span class="dashicons dashicons-warning wu-h-8 wu-w-8 wu-mx-auto wu-text-center wu-text-4xl wu-block"></span>
|
||||
<span class="wu-block wu-text-sm wu-mt-2">
|
||||
<?php printf(__('%s will show up here once this item is saved.', 'wp-ultimo'), $title); ?>
|
||||
<?php printf(esc_html__('%s will show up here once this item is saved.', 'wp-multisite-waas'), esc_html($title)); ?>
|
||||
</span>
|
||||
</div>
|
||||
|
||||
|
@ -8,7 +8,7 @@
|
||||
<?php if ( ! empty($labels['save_description'])) : ?>
|
||||
|
||||
<p class="wu-mb-5">
|
||||
<?php echo $labels['save_description']; ?>
|
||||
<?php echo wp_kses_post($labels['save_description']); ?>
|
||||
</p>
|
||||
|
||||
<?php endif; ?>
|
||||
@ -16,7 +16,7 @@
|
||||
<div class="wu-bg-gray-200 wu-p-4 wu--m-3 wu--mt-2 wu-border-t wu-border-l-0 wu-border-r-0 wu-border-b-0 wu-border-gray-400 wu-border-solid">
|
||||
|
||||
<button type="submit" name="action" value="save" class="button button-primary wu-w-full">
|
||||
<?php echo $labels['save_button_label']; ?>
|
||||
<?php echo esc_html($labels['save_button_label']); ?>
|
||||
</button>
|
||||
|
||||
</div>
|
||||
|
@ -33,7 +33,7 @@
|
||||
|
||||
<span class="wu-text-base wu-w-4 wu-h-4 wu-pt-2px wu-mr-1 dashicons dashicons-wu-chevron-with-circle-down"> </span>
|
||||
|
||||
<?php _e('All Options', 'wp-ultimo'); ?>
|
||||
<?php esc_html_e('All Options', 'wp-multisite-waas'); ?>
|
||||
|
||||
</a>
|
||||
<!-- End Menu Link -->
|
||||
@ -63,7 +63,7 @@
|
||||
|
||||
<?php endif; ?>
|
||||
|
||||
<?php echo $section['title']; ?>
|
||||
<?php echo esc_html($section['title']); ?>
|
||||
|
||||
</a>
|
||||
<!-- End Menu Link -->
|
||||
@ -79,13 +79,13 @@
|
||||
|
||||
<span v-show="!display_all">
|
||||
|
||||
<?php _e('Display all fields', 'wp-ultimo'); ?>
|
||||
<?php esc_html_e('Display all fields', 'wp-multisite-waas'); ?>
|
||||
|
||||
</span>
|
||||
|
||||
<span v-cloak v-show="display_all">
|
||||
|
||||
<?php _e('Hide other fields', 'wp-ultimo'); ?>
|
||||
<?php esc_html_e('Hide other fields', 'wp-multisite-waas'); ?>
|
||||
|
||||
</span>
|
||||
|
||||
@ -101,7 +101,7 @@
|
||||
|
||||
<span class="wu-blinking-animation">
|
||||
|
||||
<?php _e('Loading...', 'wp-ultimo'); ?>
|
||||
<?php esc_html_e('Loading...', 'wp-multisite-waas'); ?>
|
||||
|
||||
</span>
|
||||
|
||||
|
Reference in New Issue
Block a user