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:
@ -10,14 +10,14 @@
|
||||
|
||||
<div id="wp-ultimo-wrap" class="<?php wu_wrap_use_container(); ?> wrap">
|
||||
|
||||
<h1 class="wp-heading-inline"><?php _e('System Info', 'wp-ultimo'); ?></h1>
|
||||
<h1 class="wp-heading-inline"><?php esc_html_e('System Info', 'wp-multisite-waas'); ?></h1>
|
||||
|
||||
<textarea cols="100" rows="40" aria-hidden="true" class="screen-reader-text" id="hidden_textarea">
|
||||
|
||||
<?php foreach ($data as $name_type => $type) : ?>
|
||||
<?php echo "\n" . $name_type . "\n"; ?>
|
||||
<?php echo "\n" . esc_html($name_type) . "\n"; ?>
|
||||
<?php foreach ($type as $key => $value) : ?>
|
||||
<?php echo $value['title'] . ': ' . $value['value'] . "\n"; ?>
|
||||
<?php echo esc_html($value['title'] . ': ' . $value['value']) . "\n"; ?>
|
||||
<?php endforeach; ?>
|
||||
|
||||
<?php endforeach; ?>
|
||||
@ -27,15 +27,15 @@
|
||||
|
||||
<span class="dashicons dashicons-admin-page wu-text-sm wu-align-middle wu-h-4 wu-w-4"> </span>
|
||||
|
||||
<?php _e('Copy Data to Clipboard', 'wp-ultimo'); ?>
|
||||
<?php esc_html_e('Copy Data to Clipboard', 'wp-multisite-waas'); ?>
|
||||
|
||||
</button>
|
||||
|
||||
<a href="<?php echo admin_url('admin-ajax.php?action=wu_generate_text_file_system_info'); ?>" class="page-title-action">
|
||||
<a href="<?php echo esc_attr(admin_url('admin-ajax.php?action=wu_generate_text_file_system_info')); ?>" class="page-title-action">
|
||||
|
||||
<span class="dashicons dashicons-download wu-text-sm wu-align-middle wu-h-4 wu-w-4"> </span>
|
||||
|
||||
<?php _e('Download File', 'wp-ultimo'); ?>
|
||||
<?php esc_html_e('Download File', 'wp-multisite-waas'); ?>
|
||||
|
||||
</a>
|
||||
|
||||
|
Reference in New Issue
Block a user