WP Retina 2x - Version 5.1.1

Version Description

  • Add: wr2x_delete_attachment is available as part of the API.
  • Add: wr2x_get_pathinfo_from_image_src is available as part of the API.
  • Add: wr2x_picture_rewrite in the API
Download this release

Release Info

Developer TigrouMeow
Plugin Icon 128x128 WP Retina 2x
Version 5.1.1
Comparing to
See all releases

Code changes from version 5.1.0 to 5.1.1

Files changed (3) hide show
  1. api.php +6 -0
  2. readme.txt +4 -3
  3. wp-retina-2x.php +2 -2
api.php CHANGED
@@ -32,6 +32,12 @@ function wr2x_generate_images( $meta ) {
32
  return $wr2x_core->generate_images( $meta );
33
  }
34
 
 
 
 
 
 
 
35
  function wr2x_get_pathinfo_from_image_src( $image_src ) {
36
  global $wr2x_core;
37
  return $wr2x_core->get_pathinfo_from_image_src( $meta );
32
  return $wr2x_core->generate_images( $meta );
33
  }
34
 
35
+ // Delete the Retina files for this attachment
36
+ function wr2x_delete_attachment( $attach_id, $deleteFullSize = true ) {
37
+ global $wr2x_core;
38
+ return $wr2x_core->delete_attachment( $attach_id, $deleteFullSize );
39
+ }
40
+
41
  function wr2x_get_pathinfo_from_image_src( $image_src ) {
42
  global $wr2x_core;
43
  return $wr2x_core->get_pathinfo_from_image_src( $meta );
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.8
6
- Stable tag: 5.1.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,8 +33,9 @@ More information and tutorial available one http://meowapps.com/wp-retina-2x/.
33
 
34
  == Changelog ==
35
 
36
- = 5.1.0 =
37
- * Added: wr2x_get_pathinfo_from_image_src is available as part of the API.
 
38
  * Add: wr2x_picture_rewrite in the API
39
 
40
  = 5.0.5 =
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.8
6
+ Stable tag: 5.1.1
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.1.1 =
37
+ * Add: wr2x_delete_attachment is available as part of the API.
38
+ * Add: wr2x_get_pathinfo_from_image_src is available as part of the API.
39
  * Add: wr2x_picture_rewrite in the API
40
 
41
  = 5.0.5 =
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.1.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.1.0';
25
  $wr2x_retinajs = '2.0.0';
26
  $wr2x_picturefill = '3.0.2';
27
  $wr2x_lazysizes = '3.0.0';
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.1.1
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.1.1';
25
  $wr2x_retinajs = '2.0.0';
26
  $wr2x_picturefill = '3.0.2';
27
  $wr2x_lazysizes = '3.0.0';