Files
medicalalert-web-reloaded/wp/wp-content/plugins/imagify/views/notice-http-block-external.php
Tony Volpe 4eb982d7a8 Merged in feature/from-pantheon (pull request #16)
code from pantheon

* code from pantheon
2024-01-10 17:03:02 +00:00

23 lines
877 B
PHP
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<?php
defined( 'ABSPATH' ) || die( 'Cheatin uh?' );
$this->print_template( 'notice-header', array(
'title' => __( 'The external HTTP requests are blocked!', 'imagify' ),
'classes' => array( 'error' ),
) );
?>
<p>
<?php _e( 'You defined the <code>WP_HTTP_BLOCK_EXTERNAL</code> constant in the <code>wp-config.php</code> to block all external HTTP requests.', 'imagify' ); ?>
</p>
<p>
<?php _e( 'To optimize your images, you have to put the following code in your <code>wp-config.php</code> file so that it works correctly.', 'imagify' ); ?><br/>
<?php _e( 'Click on the field and press Ctrl-A to select all.', 'imagify' ); ?>
</p>
<p>
<textarea readonly="readonly" class="large-text readonly" rows="1">define( 'WP_ACCESSIBLE_HOSTS', '*.imagify.io' );</textarea>
</p>
<?php
$this->print_template( 'notice-footer', array(
'dismissible' => 'http-block-external',
) );