iframe - Version 4.4

Version Description

  • minor cleanup.
Download this release

Release Info

Developer webvitaly
Plugin Icon wp plugin iframe
Version 4.4
Comparing to
See all releases

Code changes from version 4.3 to 4.4

Files changed (2) hide show
  1. iframe.php +9 -6
  2. readme.txt +24 -24
iframe.php CHANGED
@@ -3,13 +3,17 @@
3
  Plugin Name: iframe
4
  Plugin URI: http://wordpress.org/plugins/iframe/
5
  Description: [iframe src="http://www.youtube.com/embed/4qsGTXLnmKs" width="100%" height="500"] shortcode
6
- Version: 4.3
7
  Author: webvitaly
8
  Author URI: http://web-profile.net/wordpress/plugins/
9
  License: GPLv3
10
  */
11
 
12
- define('IFRAME_PLUGIN_VERSION', '4.3');
 
 
 
 
13
 
14
  function iframe_plugin_add_shortcode_cb( $atts ) {
15
  $defaults = array(
@@ -62,10 +66,9 @@ add_shortcode( 'iframe', 'iframe_plugin_add_shortcode_cb' );
62
  function iframe_plugin_row_meta_cb( $links, $file ) {
63
  if ( $file == plugin_basename( __FILE__ ) ) {
64
  $row_meta = array(
65
- 'support' => '<a href="http://web-profile.net/wordpress/plugins/iframe/" target="_blank"><span class="dashicons dashicons-editor-help"></span> ' . __( 'Iframe', 'iframe' ) . '</a>',
66
- 'donate' => '<a href="http://web-profile.net/donate/" target="_blank"><span class="dashicons dashicons-heart"></span> ' . __( 'Donate', 'iframe' ) . '</a>',
67
- 'iframe_pro' => '<a href="http://codecanyon.net/item/advanced-iframe-pro/5344999?ref=webvitalii" target="_blank"><span class="dashicons dashicons-star-filled"></span> ' . __( 'Advanced iFrame Pro', 'iframe' ) . '</a>',
68
- 'pro' => '<a href="http://codecanyon.net/item/silver-bullet-pro/15171769?ref=webvitalii" target="_blank" title="Speedup and protect WordPress in a smart way"><span class="dashicons dashicons-star-filled"></span> ' . __( 'Silver Bullet Pro', 'iframe' ) . '</a>'
69
  );
70
  $links = array_merge( $links, $row_meta );
71
  }
3
  Plugin Name: iframe
4
  Plugin URI: http://wordpress.org/plugins/iframe/
5
  Description: [iframe src="http://www.youtube.com/embed/4qsGTXLnmKs" width="100%" height="500"] shortcode
6
+ Version: 4.4
7
  Author: webvitaly
8
  Author URI: http://web-profile.net/wordpress/plugins/
9
  License: GPLv3
10
  */
11
 
12
+ if ( ! defined( 'ABSPATH' ) ) { // Avoid direct calls to this file and prevent full path disclosure
13
+ exit;
14
+ }
15
+
16
+ define('IFRAME_PLUGIN_VERSION', '4.4');
17
 
18
  function iframe_plugin_add_shortcode_cb( $atts ) {
19
  $defaults = array(
66
  function iframe_plugin_row_meta_cb( $links, $file ) {
67
  if ( $file == plugin_basename( __FILE__ ) ) {
68
  $row_meta = array(
69
+ 'support' => '<a href="http://web-profile.net/wordpress/plugins/iframe/" target="_blank">' . __( 'Iframe', 'iframe' ) . '</a>',
70
+ 'donate' => '<a href="http://web-profile.net/donate/" target="_blank">' . __( 'Donate', 'iframe' ) . '</a>',
71
+ 'pro' => '<a href="http://codecanyon.net/item/antispam-pro/6491169?ref=webvitalii" target="_blank">' . __( 'Anti-spam Pro', 'iframe' ) . '</a>'
 
72
  );
73
  $links = array_merge( $links, $row_meta );
74
  }
readme.txt CHANGED
@@ -4,7 +4,7 @@ Donate link: http://web-profile.net/donate/
4
  Tags: iframe, embed, youtube, vimeo, google-map, google-maps
5
  Requires at least: 3.0
6
  Tested up to: 5.0
7
- Stable tag: 4.3
8
  License: GPLv3
9
  License URI: http://www.gnu.org/licenses/gpl.html
10
 
@@ -12,11 +12,10 @@ License URI: http://www.gnu.org/licenses/gpl.html
12
 
13
  == Description ==
14
 
15
- > **[Speedup WordPress](http://codecanyon.net/item/silver-bullet-pro/15171769?ref=webvitalii "Speedup and protect WordPress in a smart way")** |
16
- > **[Advanced iFrame Pro](http://codecanyon.net/item/advanced-iframe-pro/5344999?ref=webvitalii "Advanced iFrame Pro")** |
17
- > **[iframe](http://web-profile.net/wordpress/plugins/iframe/ "Plugin page")** |
18
- > **[Donate](http://web-profile.net/donate/ "Support the development")** |
19
- > **[GitHub](https://github.com/webvitalii/iframe "Fork")**
20
 
21
  [iframe src="http://www.youtube.com/embed/4qsGTXLnmKs" width="100%" height="500"] shortcode
22
  should show something like this:
@@ -25,18 +24,16 @@ should show something like this:
25
 
26
 
27
  WordPress removes iframe html tags because of security reasons.
28
- Iframe shortcode is the replacement of the iframe html tag and accepts the same **[params as iframe html tag](http://wordpress.org/plugins/iframe/other_notes/)** does.
29
  You may use iframe shortcode to embed content from YouTube, Vimeo, Google Maps or from any external page.
30
 
 
31
  If you need to embed content from YouTube, Vimeo, SlideShare, SoundCloud, Twitter via direct link, you may use `[embed]http://www.youtube.com/watch?v=4qsGTXLnmKs[/embed]` shortcode.
32
  [embed] shortcode is a core WordPress feature and can [embed content from many resources via direct link](http://codex.wordpress.org/Embeds).
33
 
34
- = Useful: =
35
- * **[Advanced iFrame Pro](http://codecanyon.net/item/advanced-iframe-pro/5344999?ref=webvitalii "Advanced iFrame Pro")**
36
- * **[Silver Bullet Pro - Speedup and protect WordPress in a smart way](http://codecanyon.net/item/silver-bullet-pro/15171769?ref=webvitalii "Speedup and protect WordPress in a smart way")**
37
- * **[Anti-spam Pro - Block spam in comments](http://codecanyon.net/item/antispam-pro/6491169?ref=webvitalii "Block spam in comments")**
38
 
39
- == Other Notes ==
40
 
41
  = iframe params: =
42
  * **src** - source of the iframe: `[iframe src="http://www.youtube.com/embed/4qsGTXLnmKs"]`; by default src="http://www.youtube.com/embed/4qsGTXLnmKs";
@@ -60,22 +57,25 @@ If you need to embed content from YouTube, Vimeo, SlideShare, SoundCloud, Twitte
60
 
61
  == Changelog ==
62
 
63
- = 4.3 - 2016-03-24 =
 
 
 
64
  * minor refactoring.
65
 
66
- = 4.2 - 2015-08-16 =
67
  * minor bugfixing.
68
 
69
- = 4.1 - 2015-08-11 =
70
  * removed onpageshow and onclick params. Reason: XSS vulnerability (thanks to dxw.com).
71
 
72
- = 4.0 - 2015-08-09 =
73
  * removed get_params_from_url param. Reason: XSS vulnerability (thanks to dxw.com).
74
  If you still need this feature you can [download iframe ver 3.0[(https://wordpress.org/plugins/iframe/developers/) and stick to it but keep in mind of XSS vulnerability.
75
  * removed onload param. Reason: XSS vulnerability (thanks to dxw.com).
76
  * escaping attributes
77
 
78
- = 3.0 - 2015-01-25 =
79
  * removed same_height_as="content", same_height_as="window", same_height_as="document" features because it was not working properly
80
  * rewrote the javascript-code using pure JavaScript and without jQuery - no need to load jQuery for every site using iframe plugin
81
  * removed function_exists check because each function has unique prefix
@@ -84,25 +84,25 @@ If you still need this feature you can [download iframe ver 3.0[(https://wordpre
84
  * set height="500" instead of 480 by default
85
  * set scrolling="yes" instead of "no" by default
86
 
87
- = 2.9 - 2014-05-31 =
88
  * remove '&' from the end of the string in 'get_params_from_url' param
89
 
90
- = 2.8 - 2014-03-14 =
91
  * remove fix for google maps
92
 
93
- = 2.7 - 2013-06-09 =
94
  * minor changes
95
 
96
- = 2.6 - 2013-03-18 =
97
  * minor changes
98
 
99
- = 2.5 - 2012-11-03 =
100
  * added 'get_params_from_url' (thanks to Nathanael Majoros)
101
 
102
- = 2.4 - 2012-10-31 =
103
  * minor changes
104
 
105
- = 2.3 - 2012.09.09 =
106
  * small fixes
107
  * added (src="http://www.youtube.com/embed/4qsGTXLnmKs") by default
108
 
4
  Tags: iframe, embed, youtube, vimeo, google-map, google-maps
5
  Requires at least: 3.0
6
  Tested up to: 5.0
7
+ Stable tag: 4.4
8
  License: GPLv3
9
  License URI: http://www.gnu.org/licenses/gpl.html
10
 
12
 
13
  == Description ==
14
 
15
+ * **[Anti-spam Pro](http://codecanyon.net/item/antispam-pro/6491169?ref=webvitalii "Block Spam in Comments")**
16
+ * **[iframe](http://web-profile.net/wordpress/plugins/iframe/ "Plugin page")**
17
+ * **[Donate](http://web-profile.net/donate/ "Support the development")**
18
+ * **[GitHub](https://github.com/webvitalii/iframe "Fork")**
 
19
 
20
  [iframe src="http://www.youtube.com/embed/4qsGTXLnmKs" width="100%" height="500"] shortcode
21
  should show something like this:
24
 
25
 
26
  WordPress removes iframe html tags because of security reasons.
27
+ Iframe shortcode is the replacement of the iframe html tag and accepts the same params as iframe html tag does.
28
  You may use iframe shortcode to embed content from YouTube, Vimeo, Google Maps or from any external page.
29
 
30
+
31
  If you need to embed content from YouTube, Vimeo, SlideShare, SoundCloud, Twitter via direct link, you may use `[embed]http://www.youtube.com/watch?v=4qsGTXLnmKs[/embed]` shortcode.
32
  [embed] shortcode is a core WordPress feature and can [embed content from many resources via direct link](http://codex.wordpress.org/Embeds).
33
 
34
+ **Important**: You can not embed HTTP pages into HTTPS pages and vice versa.
35
+ So the protocol (http or httpS) for parent and embedded page should match.
 
 
36
 
 
37
 
38
  = iframe params: =
39
  * **src** - source of the iframe: `[iframe src="http://www.youtube.com/embed/4qsGTXLnmKs"]`; by default src="http://www.youtube.com/embed/4qsGTXLnmKs";
57
 
58
  == Changelog ==
59
 
60
+ = 4.4 =
61
+ * minor cleanup.
62
+
63
+ = 4.3 =
64
  * minor refactoring.
65
 
66
+ = 4.2 =
67
  * minor bugfixing.
68
 
69
+ = 4.1 =
70
  * removed onpageshow and onclick params. Reason: XSS vulnerability (thanks to dxw.com).
71
 
72
+ = 4.0 =
73
  * removed get_params_from_url param. Reason: XSS vulnerability (thanks to dxw.com).
74
  If you still need this feature you can [download iframe ver 3.0[(https://wordpress.org/plugins/iframe/developers/) and stick to it but keep in mind of XSS vulnerability.
75
  * removed onload param. Reason: XSS vulnerability (thanks to dxw.com).
76
  * escaping attributes
77
 
78
+ = 3.0 =
79
  * removed same_height_as="content", same_height_as="window", same_height_as="document" features because it was not working properly
80
  * rewrote the javascript-code using pure JavaScript and without jQuery - no need to load jQuery for every site using iframe plugin
81
  * removed function_exists check because each function has unique prefix
84
  * set height="500" instead of 480 by default
85
  * set scrolling="yes" instead of "no" by default
86
 
87
+ = 2.9 =
88
  * remove '&' from the end of the string in 'get_params_from_url' param
89
 
90
+ = 2.8 =
91
  * remove fix for google maps
92
 
93
+ = 2.7 =
94
  * minor changes
95
 
96
+ = 2.6 =
97
  * minor changes
98
 
99
+ = 2.5 =
100
  * added 'get_params_from_url' (thanks to Nathanael Majoros)
101
 
102
+ = 2.4 =
103
  * minor changes
104
 
105
+ = 2.3 =
106
  * small fixes
107
  * added (src="http://www.youtube.com/embed/4qsGTXLnmKs") by default
108