|
Last change
on this file was
3473504,
checked in by petredobrescu, 4 weeks ago
|
|
Version 4.1.8
- Fix: Unauthorized modification and deletion of media files vulnerability responsibly disclosed by the WordFence team;
- Fix: The plugin works for RTL languages now;
- Fix: Textdomain modules are loaded properly in all cases;
- Tweak: Added a permission check for the ShortPixel recommendation displayed after the replacement;
- Tweak: Added the raw file path to the filemodel filter;
- Tweak: Added a filter to disable the database replacements (thanks @seed-glauco);
- Tweak: Updated the banners from the plugin pages.
|
|
File size:
1.4 KB
|
| Line | |
|---|
| 1 | <?php |
|---|
| 2 | namespace EnableMediaReplace; |
|---|
| 3 | |
|---|
| 4 | if (! defined('ABSPATH')) { |
|---|
| 5 | exit; // Exit if accessed directly. |
|---|
| 6 | } |
|---|
| 7 | |
|---|
| 8 | //use \EnableMediaReplace\UIHelper; |
|---|
| 9 | use EnableMediaReplace\ShortPixelLogger\ShortPixelLogger as Log; |
|---|
| 10 | |
|---|
| 11 | |
|---|
| 12 | ?> |
|---|
| 13 | |
|---|
| 14 | <div class='enable-media-replace emr-screen success-screen'> |
|---|
| 15 | <h3 class='title'><?php _e('Enable Media Replace', 'enable-media-replace'); ?></h3> |
|---|
| 16 | <div class='content'> |
|---|
| 17 | <h1><?php _e('Your image has been replaced!', 'enable-media-replace'); ?></h1> |
|---|
| 18 | |
|---|
| 19 | <p><?php _e('Your image has been successfully replaced!', 'enable-media-replace'); ?></p> |
|---|
| 20 | |
|---|
| 21 | <?php if (apply_filters('emr/upsell', current_user_can('install_plugins'))) { ?> |
|---|
| 22 | <p><?php _e('Did you know that you can also optimize the images on your website to make them load faster?', 'enable-media-replace'); ?></p> |
|---|
| 23 | |
|---|
| 24 | <p><?php printf(esc_html__('Try the %sShortPixel Image Optimizer%s plugin!', 'enable-media-replace'), '<a href="https://wordpress.org/plugins/shortpixel-image-optimiser/" target="_blank">', '</a>'); ?></p> |
|---|
| 25 | <?php } ?> |
|---|
| 26 | |
|---|
| 27 | <p><?php _e('You will be redirect to the image screen in a few seconds.', 'enable-media-replace'); |
|---|
| 28 | printf(esc_html__('( %s ) or %s click here to continue %s', 'enable-media-replace'), '<span id="redirect_counter"></span>', |
|---|
| 29 | '<a id="redirect_url" href="' . esc_url( $view->postUrl ) . '">', '</a>'); |
|---|
| 30 | ?> |
|---|
| 31 | |
|---|
| 32 | </p> |
|---|
| 33 | |
|---|
| 34 | </div> |
|---|
| 35 | |
|---|
| 36 | </div> |
|---|
| 37 | |
|---|
| 38 | <?php |
|---|
| 39 | require_once ABSPATH . 'wp-admin/admin-footer.php'; |
|---|
Note: See
TracBrowser
for help on using the repository browser.