Version Description
- Fix: There was a issue with the .htaccess rewriting (Class Meow_Admin not found).
- Update: Core was totally re-organized and cleaned. Ready for nice updates.
- Update: LazyLoading from version 2.0 to 3.0.
- Info: There will be an important warning showing up during this update. It is an important annoucement.
Download this release
Release Info
Developer | TigrouMeow |
Plugin | WP Retina 2x |
Version | 5.0.5 |
Comparing to | |
See all releases |
Code changes from version 5.0.4 to 5.0.5
- common/admin.php +1 -1
- core.php +0 -48
- readme.txt +2 -2
- wp-retina-2x.php +38 -2
common/admin.php
CHANGED
@@ -32,7 +32,7 @@ if ( !class_exists( 'MeowApps_Admin' ) ) {
|
|
32 |
// TODO: In the future, this should be removed ideally
|
33 |
if ( is_admin() ) {
|
34 |
$license = get_option( $this->prefix . '_license', "" );
|
35 |
-
if ( ( !empty( $license ) ) && !file_exists( plugin_dir_path(
|
36 |
add_action( 'admin_notices', array( $this, 'admin_notices_licensed_free' ) );
|
37 |
}
|
38 |
}
|
32 |
// TODO: In the future, this should be removed ideally
|
33 |
if ( is_admin() ) {
|
34 |
$license = get_option( $this->prefix . '_license', "" );
|
35 |
+
if ( ( !empty( $license ) ) && !file_exists( plugin_dir_path( $this->mainfile ) . 'common/meowapps/admin.php' ) ) {
|
36 |
add_action( 'admin_notices', array( $this, 'admin_notices_licensed_free' ) );
|
37 |
}
|
38 |
}
|
core.php
CHANGED
@@ -6,7 +6,6 @@ class Meow_WR2X_Core {
|
|
6 |
|
7 |
public function __construct( $admin ) {
|
8 |
$this->admin = $admin;
|
9 |
-
add_action( 'admin_notices', array( $this, 'admin_notices' ) );
|
10 |
add_action( 'wp_enqueue_scripts', array( $this, 'wp_enqueue_scripts' ) );
|
11 |
add_action( 'admin_enqueue_scripts', array( $this, 'wp_enqueue_scripts' ) );
|
12 |
add_filter( 'wp_generate_attachment_metadata', array( $this, 'wp_generate_attachment_metadata' ) );
|
@@ -1168,53 +1167,6 @@ class Meow_WR2X_Core {
|
|
1168 |
wp_enqueue_script( 'retinajs', plugins_url( '/js/retina.min.js', __FILE__ ), array(), $wr2x_retinajs, true );
|
1169 |
}
|
1170 |
|
1171 |
-
/*******************************************************************************
|
1172 |
-
* OLD PRO / TODO: THIS FUNCTION SHOULD BE REMOVED IN THE FUTURE
|
1173 |
-
******************************************************************************/
|
1174 |
-
|
1175 |
-
function admin_notices() {
|
1176 |
-
if ( isset( $_POST['wr2x_reset_sub'] ) ) {
|
1177 |
-
delete_transient( 'wr2x_validated' );
|
1178 |
-
delete_option( 'wr2x_pro_serial' );
|
1179 |
-
delete_option( 'wr2x_pro_status' );
|
1180 |
-
}
|
1181 |
-
$validated = get_transient( 'wr2x_validated' );
|
1182 |
-
$subscr_id = get_option( 'wr2x_pro_serial', "" );
|
1183 |
-
if ( empty( $subscr_id ) || empty( $validated ) )
|
1184 |
-
return;
|
1185 |
-
$forever = strpos( $subscr_id, 'F-' ) !== false;
|
1186 |
-
$yearly = strpos( $subscr_id, 'I-' ) !== false;
|
1187 |
-
?>
|
1188 |
-
<div class="error">
|
1189 |
-
<p>
|
1190 |
-
<b>IMPORTANT MESSAGE ABOUT WP RETINA 2X.</b>
|
1191 |
-
In order to comply with WordPress.org rules, big changes in the code and how the plugin was sold had to be made. The plugin now requires to be bought through <a target='_blank' href="https://store.meowapps.com">https://store.meowapps.com</a>. You will be able to download the Pro version there, manage your keys and websites. It is a much more robust system. Since only the free version can be hosted by WordPress.org, this is the one which is active now. I am trying to ease this upgrade, depending on your current license.<br /><br />
|
1192 |
-
Your license is <b><?php echo $subscr_id ?></b>.
|
1193 |
-
<?php
|
1194 |
-
if ( $forever ) {
|
1195 |
-
echo "You have a Forever license. If you got this license less than 160 days ago, reply to the welcome e-mail (after buying a new license) with your previous license key ($subscr_id) and the e-mail you are using in Paypal. I will refund the previous payment. If it is more than 160 days, we are out of luck. So here is a discount of <b>90% off</b>, for any license you like: <b>UPGRADE90WPRETINA</b>. If you use the discount, the refund will be of course not possible.";
|
1196 |
-
}
|
1197 |
-
else if ( $yearly ) {
|
1198 |
-
echo "You have a Yearly license. If you got this license less than 160 days ago, reply to the welcome e-mail (after buying a new license) with your previous license key ($subscr_id) and the e-mail you are using in Paypal. I will refund the previous payment. If it is more than 160 days ago, we are out of luck. So here is a discount of <b>50% off</b>, for any license you like: <b>UPGRADEWPRETINA50</b>. Also, don't forget to cancel your current subscription in Paypal (<a target='_blank' href='https://www.paypal.com/us/selfhelp/article/How-do-I-cancel-an-automatic-payment-I-have-with-a-merchant-FAQ2058'>click here</a> if you don't know how to do this).";
|
1199 |
-
}
|
1200 |
-
else {
|
1201 |
-
echo "Your license is special, so please contact me.";
|
1202 |
-
}
|
1203 |
-
?>
|
1204 |
-
If you absolutely need to use the plugin as it was before, with your current license key, please download it again here: <a target='_blank' href="https://meowapps.com/previous-versions/">Previous Versions</a>. I will keep the old system up for a while, but no updates will be possible.
|
1205 |
-
<br /><br />Also note that I also have now an <a target='_blank' href='https://store.meowapps.com/affiliate-area/'>Affiliate Program</a> in that store, don't hesitate to register for it. Thanks a lot for your comprehension and sorry for the troubles. Not easy for anyone but it had to be done and I think you will really enjoy the new store more than the previous clunky system. I wrote a little post about this change here, so don't hesitate to add a comment if you have a question: <a href="https://meowapps.com/migration-store/">Migration to the Meow Apps Store</a>.
|
1206 |
-
</p>
|
1207 |
-
<p>
|
1208 |
-
<form method="post" action="">
|
1209 |
-
<input type="hidden" name="wr2x_reset_sub" value="true">
|
1210 |
-
<input type="submit" name="submit" id="submit" class="button" value="Got it. Understood!">
|
1211 |
-
<br /><small>Make sure you got a new license and all before clicking this button. It will also clean your install from the old key data.</small>
|
1212 |
-
</form>
|
1213 |
-
</p>
|
1214 |
-
</div>
|
1215 |
-
<?php
|
1216 |
-
}
|
1217 |
-
|
1218 |
}
|
1219 |
|
1220 |
// Used by WP Rocket (and maybe by other plugins)
|
6 |
|
7 |
public function __construct( $admin ) {
|
8 |
$this->admin = $admin;
|
|
|
9 |
add_action( 'wp_enqueue_scripts', array( $this, 'wp_enqueue_scripts' ) );
|
10 |
add_action( 'admin_enqueue_scripts', array( $this, 'wp_enqueue_scripts' ) );
|
11 |
add_filter( 'wp_generate_attachment_metadata', array( $this, 'wp_generate_attachment_metadata' ) );
|
1167 |
wp_enqueue_script( 'retinajs', plugins_url( '/js/retina.min.js', __FILE__ ), array(), $wr2x_retinajs, true );
|
1168 |
}
|
1169 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1170 |
}
|
1171 |
|
1172 |
// Used by WP Rocket (and maybe by other plugins)
|
readme.txt
CHANGED
@@ -3,7 +3,7 @@ Contributors: TigrouMeow
|
|
3 |
Tags: retina, images, image, responsive, lazysizes, lazy, attachment, media, files, iphone, ipad, high-dpi
|
4 |
Requires at least: 3.5
|
5 |
Tested up to: 4.7
|
6 |
-
Stable tag: 5.0.
|
7 |
|
8 |
Make your website look beautiful and crisp on modern displays by creating and displaying retina images. WP 4.4+ is also supported and enhanced.
|
9 |
|
@@ -33,7 +33,7 @@ More information and tutorial available one http://meowapps.com/wp-retina-2x/.
|
|
33 |
|
34 |
== Changelog ==
|
35 |
|
36 |
-
= 5.0.
|
37 |
* Fix: There was a issue with the .htaccess rewriting (Class ‘Meow_Admin’ not found).
|
38 |
* Update: Core was totally re-organized and cleaned. Ready for nice updates.
|
39 |
* Update: LazyLoading from version 2.0 to 3.0.
|
3 |
Tags: retina, images, image, responsive, lazysizes, lazy, attachment, media, files, iphone, ipad, high-dpi
|
4 |
Requires at least: 3.5
|
5 |
Tested up to: 4.7
|
6 |
+
Stable tag: 5.0.5
|
7 |
|
8 |
Make your website look beautiful and crisp on modern displays by creating and displaying retina images. WP 4.4+ is also supported and enhanced.
|
9 |
|
33 |
|
34 |
== Changelog ==
|
35 |
|
36 |
+
= 5.0.5 =
|
37 |
* Fix: There was a issue with the .htaccess rewriting (Class ‘Meow_Admin’ not found).
|
38 |
* Update: Core was totally re-organized and cleaned. Ready for nice updates.
|
39 |
* Update: LazyLoading from version 2.0 to 3.0.
|
wp-retina-2x.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
Plugin Name: WP Retina 2x
|
4 |
Plugin URI: http://meowapps.com
|
5 |
Description: Make your website look beautiful and crisp on modern displays by creating + displaying retina images.
|
6 |
-
Version: 5.0.
|
7 |
Author: Jordy Meow
|
8 |
Author URI: http://meowapps.com
|
9 |
Text Domain: wp-retina-2x
|
@@ -21,7 +21,7 @@ Originally developed for two of my websites:
|
|
21 |
global $wr2x_picturefill, $wr2x_retinajs, $wr2x_lazysizes,
|
22 |
$wr2x_retina_image, $wr2x_core;
|
23 |
|
24 |
-
$wr2x_version = '5.0.
|
25 |
$wr2x_retinajs = '2.0.0';
|
26 |
$wr2x_picturefill = '3.0.2';
|
27 |
$wr2x_lazysizes = '3.0.0';
|
@@ -36,4 +36,40 @@ require( 'core.php' );
|
|
36 |
$wr2x_core = new Meow_WR2X_Core( $wr2x_admin );
|
37 |
$wr2x_admin->core = $wr2x_core;
|
38 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
39 |
?>
|
3 |
Plugin Name: WP Retina 2x
|
4 |
Plugin URI: http://meowapps.com
|
5 |
Description: Make your website look beautiful and crisp on modern displays by creating + displaying retina images.
|
6 |
+
Version: 5.0.5
|
7 |
Author: Jordy Meow
|
8 |
Author URI: http://meowapps.com
|
9 |
Text Domain: wp-retina-2x
|
21 |
global $wr2x_picturefill, $wr2x_retinajs, $wr2x_lazysizes,
|
22 |
$wr2x_retina_image, $wr2x_core;
|
23 |
|
24 |
+
$wr2x_version = '5.0.5';
|
25 |
$wr2x_retinajs = '2.0.0';
|
26 |
$wr2x_picturefill = '3.0.2';
|
27 |
$wr2x_lazysizes = '3.0.0';
|
36 |
$wr2x_core = new Meow_WR2X_Core( $wr2x_admin );
|
37 |
$wr2x_admin->core = $wr2x_core;
|
38 |
|
39 |
+
/*******************************************************************************
|
40 |
+
* TODO: OLD PRO, THIS FUNCTION SHOULD BE REMOVED IN THE FUTURE
|
41 |
+
******************************************************************************/
|
42 |
+
|
43 |
+
add_action( 'admin_notices', 'wr2x_meow_old_version_admin_notices' );
|
44 |
+
|
45 |
+
function wr2x_meow_old_version_admin_notices() {
|
46 |
+
if ( isset( $_POST['wr2x_reset_sub'] ) ) {
|
47 |
+
delete_transient( 'wr2x_validated' );
|
48 |
+
delete_option( 'wr2x_pro_serial' );
|
49 |
+
delete_option( 'wr2x_pro_status' );
|
50 |
+
}
|
51 |
+
$subscr_id = get_option( 'wr2x_pro_serial', "" );
|
52 |
+
if ( empty( $subscr_id ) )
|
53 |
+
return;
|
54 |
+
$forever = strpos( $subscr_id, 'F-' ) !== false;
|
55 |
+
$yearly = strpos( $subscr_id, 'I-' ) !== false;
|
56 |
+
if ( !$forever && !$yearly )
|
57 |
+
return;
|
58 |
+
?>
|
59 |
+
<div class="error">
|
60 |
+
<p>
|
61 |
+
<h2>IMPORTANT MESSAGE ABOUT WP RETINA 2X</h2>
|
62 |
+
In order to comply with WordPress.org, BIG CHANGES in the code and how the plugin was sold were to be made. The plugin needs requires to be purchased and updated through the new <a target='_blank' href="https://store.meowapps.com">Meow Apps Store</a>. This store is also more robust (keys, websites management, invoices, etc). Now, since WordPress.org only accepts free plugins on its repository, this is the one currently installed. Therefore, you need to take an action. <b>Please click here to know more about your license and to learn what to do: <a target='_blank' href='https://meowapps.com/?mkey=<?php echo $subscr_id ?>'>License <?php echo $subscr_id ?></a></b>.
|
63 |
+
</p>
|
64 |
+
<p>
|
65 |
+
<form method="post" action="">
|
66 |
+
<input type="hidden" name="wr2x_reset_sub" value="true">
|
67 |
+
<input type="submit" name="submit" id="submit" class="button" value="Got it. Clear this!">
|
68 |
+
<br /><small><b>Make sure you followed the instruction before clicking this button.</b></small>
|
69 |
+
</form>
|
70 |
+
</p>
|
71 |
+
</div>
|
72 |
+
<?php
|
73 |
+
}
|
74 |
+
|
75 |
?>
|