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:
@ -6,64 +6,65 @@
|
||||
*/
|
||||
?>
|
||||
<h1>
|
||||
<?php _e('Instructions', 'wp-ultimo'); ?></h1>
|
||||
<?php esc_html_e('Instructions', 'wp-multisite-waas'); ?></h1>
|
||||
|
||||
<p class="wu-text-lg wu-text-gray-600 wu-my-4 wu-mb-6">
|
||||
|
||||
<?php _e('You’ll need to get your', 'wp-ultimo'); ?> <strong><?php _e('API Key', 'wp-ultimo'); ?></strong> <?php _e('and', 'wp-ultimo'); ?> <strong><?php _e('Zone ID', 'wp-ultimo'); ?></strong> <?php _e('for your Cloudflare DNS zone.', 'wp-ultimo'); ?>
|
||||
<?php esc_html_e('You’ll need to get your', 'wp-multisite-waas'); ?> <strong><?php esc_html_e('API Key', 'wp-multisite-waas'); ?></strong> <?php esc_html_e('and', 'wp-multisite-waas'); ?> <strong><?php esc_html_e('Zone ID', 'wp-multisite-waas'); ?></strong> <?php esc_html_e('for your Cloudflare DNS zone.', 'wp-multisite-waas'); ?>
|
||||
|
||||
</p>
|
||||
|
||||
<p class="wu-text-sm wu-bg-blue-100 wu-p-4 wu-text-blue-600 wu-rounded">
|
||||
<strong><?php _e('Before we start...', 'wp-ultimo'); ?></strong><br>
|
||||
<?php printf(__('This integration is really aimed at people that do not have access to an Enterprise Cloudflare account, since that particular tier supports proxying on wildcard DNS entries, which makes adding each subdomain unecessary. If you own an enterprise tier account, you can simply follow <a class="wu-no-underline" href="%s" target="_blank">this tutorial</a> to create the wildcard entry and deactivate this integration entirely.', 'wp-ultimo'), 'https://support.cloudflare.com/hc/en-us/articles/200169356-How-do-I-use-WordPress-Multi-Site-WPMU-With-Cloudflare'); ?>
|
||||
<strong><?php esc_html_e('Before we start...', 'wp-multisite-waas'); ?></strong><br>
|
||||
<?php // translators: %s the url ?>
|
||||
<?php wp_kses_post(sprintf(__('This integration is really aimed at people that do not have access to an Enterprise Cloudflare account, since that particular tier supports proxying on wildcard DNS entries, which makes adding each subdomain unecessary. If you own an enterprise tier account, you can simply follow <a class="wu-no-underline" href="%s" target="_blank">this tutorial</a> to create the wildcard entry and deactivate this integration entirely.', 'wp-multisite-waas'), 'https://support.cloudflare.com/hc/en-us/articles/200169356-How-do-I-use-WordPress-Multi-Site-WPMU-With-Cloudflare')); ?>
|
||||
</p>
|
||||
|
||||
<h3 class="wu-m-0 wu-py-4 wu-text-lg" id="step-1-getting-the-api-key-and-secret">
|
||||
<?php _e('Getting the Zone ID and API Key', 'wp-ultimo'); ?>
|
||||
<?php esc_html_e('Getting the Zone ID and API Key', 'wp-multisite-waas'); ?>
|
||||
</h3>
|
||||
|
||||
<p class="wu-text-sm">
|
||||
<?php _e('On the Cloudflare overview page of your Zone (the domain managed), you\'ll see a block on the sidebar containing the Zone ID. Copy that value.', 'wp-ultimo'); ?>
|
||||
<?php esc_html_e('On the Cloudflare overview page of your Zone (the domain managed), you\'ll see a block on the sidebar containing the Zone ID. Copy that value.', 'wp-multisite-waas'); ?>
|
||||
</p>
|
||||
|
||||
<div class="">
|
||||
<img class="wu-w-full" src="https://wpultimo.com/wp-content/uploads/2021/04/Captura-de-Pantalla-2021-04-01-a-las-23.08.14.png">
|
||||
</div>
|
||||
|
||||
<p class="wu-text-center"><i><?php _e('DNS Zone ID on the Sidebar', 'wp-ultimo'); ?></i></p>
|
||||
<p class="wu-text-center"><i><?php esc_html_e('DNS Zone ID on the Sidebar', 'wp-multisite-waas'); ?></i></p>
|
||||
|
||||
<p class="wu-text-sm"><?php _e('On that same sidebar block, you will see the Get your API token link. Click on it to go to the token generation screen.', 'wp-ultimo'); ?></p>
|
||||
<p class="wu-text-sm"><?php esc_html_e('On that same sidebar block, you will see the Get your API token link. Click on it to go to the token generation screen.', 'wp-multisite-waas'); ?></p>
|
||||
|
||||
<div class="">
|
||||
<img class="wu-w-full" src="https://wpultimo.com/wp-content/uploads/2021/04/Captura-de-Pantalla-2021-04-01-a-las-23.12.19.png">
|
||||
</div>
|
||||
<p class="wu-text-center"><i><?php _e('Go to the API Tokens tab, then click on Create Token', 'wp-ultimo'); ?></i></p>
|
||||
<p class="wu-text-center"><i><?php esc_html_e('Go to the API Tokens tab, then click on Create Token', 'wp-multisite-waas'); ?></i></p>
|
||||
|
||||
<p class="wu-text-sm"><?php _e('We want an API token that will allow us to edit DNS records, so select the Edit zone DNS template.', 'wp-ultimo'); ?></p>
|
||||
<p class="wu-text-sm"><?php esc_html_e('We want an API token that will allow us to edit DNS records, so select the Edit zone DNS template.', 'wp-multisite-waas'); ?></p>
|
||||
|
||||
<div class="">
|
||||
<img class="wu-w-full" src="https://wpultimo.com/wp-content/uploads/2021/04/Captura-de-Pantalla-2021-04-01-a-las-23.15.03.png">
|
||||
</div>
|
||||
<p class="wu-text-center"><i><?php _e('Use the Edit Zone DNS template', 'wp-ultimo'); ?></i></p>
|
||||
<p class="wu-text-center"><i><?php esc_html_e('Use the Edit Zone DNS template', 'wp-multisite-waas'); ?></i></p>
|
||||
|
||||
<p class="wu-text-sm"><?php _e('On the next screen, set the permissions to Edit, and select the zone that corresponds to your target domain. Then, move to the next step.', 'wp-ultimo'); ?></p>
|
||||
<p class="wu-text-sm"><?php esc_html_e('On the next screen, set the permissions to Edit, and select the zone that corresponds to your target domain. Then, move to the next step.', 'wp-multisite-waas'); ?></p>
|
||||
|
||||
<div class="">
|
||||
<img class="wu-w-full" src="https://wpultimo.com/wp-content/uploads/2021/04/Captura-de-Pantalla-2021-04-01-a-las-23.17.58.png">
|
||||
</div>
|
||||
<p class="wu-text-center"><i><?php _e('Permission and Zone Settings', 'wp-ultimo'); ?></i></p>
|
||||
<p class="wu-text-center"><i><?php esc_html_e('Permission and Zone Settings', 'wp-multisite-waas'); ?></i></p>
|
||||
|
||||
<p class="wu-text-sm"><?php _e('Finally, click Create Token.', 'wp-ultimo'); ?></p>
|
||||
<p class="wu-text-sm"><?php esc_html_e('Finally, click Create Token.', 'wp-multisite-waas'); ?></p>
|
||||
|
||||
<div class="">
|
||||
<img class="wu-w-full" src="https://wpultimo.com/wp-content/uploads/2021/04/Captura-de-Pantalla-2021-04-01-a-las-23.19.52.png">
|
||||
</div>
|
||||
<p class="wu-text-center"><i><?php _e('Finishing up.', 'wp-ultimo'); ?></i></p>
|
||||
<p class="wu-text-center"><i><?php esc_html_e('Finishing up.', 'wp-multisite-waas'); ?></i></p>
|
||||
|
||||
<p class="wu-text-sm"><?php _e('Copy the API Token (it won\'t be shown again, so you need to copy it now!). We will use it on the next step alongside with the Zone ID', 'wp-ultimo'); ?></p>
|
||||
<p class="wu-text-sm"><?php esc_html_e('Copy the API Token (it won\'t be shown again, so you need to copy it now!). We will use it on the next step alongside with the Zone ID', 'wp-multisite-waas'); ?></p>
|
||||
|
||||
<div class="">
|
||||
<img class="wu-w-full" src="https://wpultimo.com/wp-content/uploads/2021/04/Captura-de-Pantalla-2021-04-01-a-las-23.21.47.png">
|
||||
</div>
|
||||
<p class="wu-text-center"><i><?php _e('Done!', 'wp-ultimo'); ?></i></p>
|
||||
<p class="wu-text-center"><i><?php esc_html_e('Done!', 'wp-multisite-waas'); ?></i></p>
|
||||
|
Reference in New Issue
Block a user