| @@ -1,22 +1,28 @@ | ||
| 1 | 1 | <?php |
| 2 | -defined( 'ABSPATH' ) || die( 'Cheatin’ uh?' ); | |
| 2 | +defined( 'ABSPATH' ) || exit; | |
| 3 | 3 | |
| 4 | -$this->print_template( 'notice-header', array( | |
| 5 | - 'title' => __( 'The external HTTP requests are blocked!', 'imagify' ), | |
| 6 | - 'classes' => array( 'error' ), | |
| 7 | -) ); | |
| 4 | +$this->print_template( | |
| 5 | + 'notice-header', | |
| 6 | + [ | |
| 7 | + 'title' => __( 'The external HTTP requests are blocked!', 'imagify' ), | |
| 8 | + 'classes' => [ 'error' ], | |
| 9 | + ] | |
| 10 | +); | |
| 8 | 11 | ?> |
| 9 | 12 | <p> |
| 10 | - <?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' ); ?> | |
| 13 | + <?php esc_html_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' ); ?> | |
| 11 | 14 | </p> |
| 12 | 15 | <p> |
| 13 | - <?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/> | |
| 14 | - <?php _e( 'Click on the field and press Ctrl-A to select all.', 'imagify' ); ?> | |
| 16 | + <?php esc_html_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/> | |
| 17 | + <?php esc_html_e( 'Click on the field and press Ctrl-A to select all.', 'imagify' ); ?> | |
| 15 | 18 | </p> |
| 16 | 19 | <p> |
| 17 | 20 | <textarea readonly="readonly" class="large-text readonly" rows="1">define( 'WP_ACCESSIBLE_HOSTS', '*.imagify.io' );</textarea> |
| 18 | 21 | </p> |
| 19 | 22 | <?php |
| 20 | -$this->print_template( 'notice-footer', array( | |
| 21 | - 'dismissible' => 'http-block-external', | |
| 22 | -) ); | |
| 23 | +$this->print_template( | |
| 24 | + 'notice-footer', | |
| 25 | + [ | |
| 26 | + 'dismissible' => 'http-block-external', | |
| 27 | + ] | |
| 28 | +); | |