Serious Slider - Version 0.6.2

Version Description

  • Fixed slides links always opening in a new window
Download this release

Release Info

Developer Cryout Creations
Plugin Icon 128x128 Serious Slider
Version 0.6.2
Comparing to
See all releases

Code changes from version 0.6.1 to 0.6.2

Files changed (3) hide show
  1. cryout-serious-slider.php +2 -2
  2. inc/shortcodes.php +5 -4
  3. readme.txt +4 -1
cryout-serious-slider.php CHANGED
@@ -3,7 +3,7 @@
3
  Plugin Name: Cryout Serious Slider
4
  Plugin URI: http://www.cryoutcreations.eu/serious-slider
5
  Description: Responsive slider, built on Bootstrap Carousel, uses core WordPress functionality, easy to use, seriously.
6
- Version: 0.6.1
7
  Author: Cryout Creations
8
  Author URI: http://www.cryoutcreations.eu
9
  Text Domain: cryout-serious-slider
@@ -13,7 +13,7 @@
13
 
14
  class Cryout_Serious_Slider {
15
 
16
- public $version = "0.6.1";
17
  public $options = array();
18
  public $shortcode_tag = 'serious-slider';
19
  public $mce_tag = 'serious_slider';
3
  Plugin Name: Cryout Serious Slider
4
  Plugin URI: http://www.cryoutcreations.eu/serious-slider
5
  Description: Responsive slider, built on Bootstrap Carousel, uses core WordPress functionality, easy to use, seriously.
6
+ Version: 0.6.2
7
  Author: Cryout Creations
8
  Author URI: http://www.cryoutcreations.eu
9
  Text Domain: cryout-serious-slider
13
 
14
  class Cryout_Serious_Slider {
15
 
16
+ public $version = "0.6.2";
17
  public $options = array();
18
  public $shortcode_tag = 'serious-slider';
19
  public $mce_tag = 'serious_slider';
inc/shortcodes.php CHANGED
@@ -137,10 +137,11 @@ class Cryout_Serious_Slider_Shortcode {
137
  $sizes = '';
138
 
139
  // retrieve parameters
140
- $slide_link = get_post_meta( get_the_ID(), 'cryout_serious_slider_link' );
141
- $slide_target = get_post_meta( get_the_ID(), 'cryout_serious_slider_target' );
142
- if ( !empty($slide_link) ) $meta_link = ' href="' . $slide_link[0] . '"';
143
- if ( !empty($slide_target) ) $meta_target = 'target="_blank"';
 
144
 
145
  $image_data = wp_get_attachment_image_src (get_post_thumbnail_ID( get_the_ID() ), 'full' );
146
 
137
  $sizes = '';
138
 
139
  // retrieve parameters
140
+ $slide_link = get_post_meta( get_the_ID(), 'cryout_serious_slider_link', TRUE );
141
+ $slide_target = get_post_meta( get_the_ID(), 'cryout_serious_slider_target', TRUE );
142
+ var_dump($slide_target);
143
+ if ( !empty($slide_link) ) $meta_link = ' href="' . $slide_link . '"';
144
+ if ( !empty($slide_target) && $slide_target ) $meta_target = 'target="_blank"';
145
 
146
  $image_data = wp_get_attachment_image_src (get_post_thumbnail_ID( get_the_ID() ), 'full' );
147
 
readme.txt CHANGED
@@ -4,7 +4,7 @@ Donate link: https://www.cryoutcreations.eu/donate/
4
  Tags: slider, carousel, shortcode, bootstrap, responsive, responsive slider
5
  Requires at least: 4.0
6
  Tested up to: 4.7.2
7
- Stable tag: 0.6.1
8
  Text Domain: cryout-serious-slider
9
  License: GPLv3
10
  License URI: http://www.gnu.org/licenses/gpl.html
@@ -45,6 +45,9 @@ Responsive slider, built on Bootstrap Carousel, uses core WordPress functionalit
45
 
46
  == Changelog ==
47
 
 
 
 
48
  = 0.6.1 =
49
  * Fixed extraneous slide/term fields being visible after double quick edit
50
  * Fixed version information not updated in about page
4
  Tags: slider, carousel, shortcode, bootstrap, responsive, responsive slider
5
  Requires at least: 4.0
6
  Tested up to: 4.7.2
7
+ Stable tag: 0.6.2
8
  Text Domain: cryout-serious-slider
9
  License: GPLv3
10
  License URI: http://www.gnu.org/licenses/gpl.html
45
 
46
  == Changelog ==
47
 
48
+ = 0.6.2 =
49
+ * Fixed slides links always opening in a new window
50
+
51
  = 0.6.1 =
52
  * Fixed extraneous slide/term fields being visible after double quick edit
53
  * Fixed version information not updated in about page