Version Description
- Added form security
=
Download this release
Release Info
Developer | dartiss |
Plugin | Code Embed |
Version | 1.5.1 |
Comparing to | |
See all releases |
Code changes from version 1.5 to 1.5.1
- readme.txt +9 -3
- simple-code-embed-options.php +3 -1
- simple-code-embed.php +1 -1
readme.txt
CHANGED
@@ -4,7 +4,7 @@ Donate link: http://artiss.co.uk/donate
|
|
4 |
Tags: embed, code, artiss, script, HTML, JavaScript, XHTML, YouTube, video
|
5 |
Requires at least: 2.0.0
|
6 |
Tested up to: 3.1.2
|
7 |
-
Stable tag: 1.5
|
8 |
|
9 |
Artiss Code Embed (formally Simple Code Embed) provides a very easy and efficient way to embed code (JavaScript and HTML) in your posts and pages.
|
10 |
|
@@ -71,7 +71,7 @@ For problems, suggestions or enhancements for this plugin, there is [a dedicated
|
|
71 |
|
72 |
= My code doesn't work =
|
73 |
|
74 |
-
If
|
75 |
|
76 |
= What's the maximum size of the embed code that I can save in a custom field? =
|
77 |
|
@@ -117,6 +117,9 @@ It has been tested and been found valid from PHP 4 upwards.
|
|
117 |
* All of the changes are backwards compatible with previous versions of this plugin
|
118 |
* Instructions completely re-written
|
119 |
|
|
|
|
|
|
|
120 |
== Upgrade Notice ==
|
121 |
|
122 |
= 1.3 =
|
@@ -129,4 +132,7 @@ It has been tested and been found valid from PHP 4 upwards.
|
|
129 |
* Minor bug fix
|
130 |
|
131 |
= 1.5 =
|
132 |
-
* Much more efficient performance and ability to totally personalise the embed code used in posts
|
|
|
|
|
|
4 |
Tags: embed, code, artiss, script, HTML, JavaScript, XHTML, YouTube, video
|
5 |
Requires at least: 2.0.0
|
6 |
Tested up to: 3.1.2
|
7 |
+
Stable tag: 1.5.1
|
8 |
|
9 |
Artiss Code Embed (formally Simple Code Embed) provides a very easy and efficient way to embed code (JavaScript and HTML) in your posts and pages.
|
10 |
|
71 |
|
72 |
= My code doesn't work =
|
73 |
|
74 |
+
If your code contains the characters `]]>` then you'll find that it doesn't - WordPress modifies this itself.
|
75 |
|
76 |
= What's the maximum size of the embed code that I can save in a custom field? =
|
77 |
|
117 |
* All of the changes are backwards compatible with previous versions of this plugin
|
118 |
* Instructions completely re-written
|
119 |
|
120 |
+
= 1.5.1 =
|
121 |
+
* Added form security
|
122 |
+
|
123 |
== Upgrade Notice ==
|
124 |
|
125 |
= 1.3 =
|
132 |
* Minor bug fix
|
133 |
|
134 |
= 1.5 =
|
135 |
+
* Much more efficient performance and ability to totally personalise the embed code used in posts
|
136 |
+
|
137 |
+
= 1.5.1 =
|
138 |
+
* Added form security
|
simple-code-embed-options.php
CHANGED
@@ -15,7 +15,7 @@
|
|
15 |
<h2>Artiss Code Embed Options</h2>
|
16 |
<?php
|
17 |
// If options have been updated on screen, update the database
|
18 |
-
if( !empty( $_POST
|
19 |
|
20 |
// Update the options array from the form fields. Strip invalid tags.
|
21 |
$options[ 'opening_ident' ] = strtoupper( trim( $_POST[ 'code_embed_opening' ], '[]<>' ) );
|
@@ -57,6 +57,8 @@ $options = get_code_embed_paras();
|
|
57 |
|
58 |
</table>
|
59 |
|
|
|
|
|
60 |
<br/><input type="submit" name="Submit" class="button-primary" value="<?php _e('Save Settings'); ?>"/>
|
61 |
|
62 |
</form>
|
15 |
<h2>Artiss Code Embed Options</h2>
|
16 |
<?php
|
17 |
// If options have been updated on screen, update the database
|
18 |
+
if ( ( !empty( $_POST ) ) && ( check_admin_referer( 'code-embed-profile' , 'code_embed_profile_nonce' ) ) ) {
|
19 |
|
20 |
// Update the options array from the form fields. Strip invalid tags.
|
21 |
$options[ 'opening_ident' ] = strtoupper( trim( $_POST[ 'code_embed_opening' ], '[]<>' ) );
|
57 |
|
58 |
</table>
|
59 |
|
60 |
+
<?php wp_nonce_field( 'code-embed-profile', 'code_embed_profile_nonce', true, true ); ?>
|
61 |
+
|
62 |
<br/><input type="submit" name="Submit" class="button-primary" value="<?php _e('Save Settings'); ?>"/>
|
63 |
|
64 |
</form>
|
simple-code-embed.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
Plugin Name: Artiss Code Embed
|
4 |
Plugin URI: http://www.artiss.co.uk/artiss-code-embed
|
5 |
Description: Allows you to embed code into your posts & pages
|
6 |
-
Version: 1.5
|
7 |
Author: David Artiss
|
8 |
Author URI: http://www.artiss.co.uk
|
9 |
*/
|
3 |
Plugin Name: Artiss Code Embed
|
4 |
Plugin URI: http://www.artiss.co.uk/artiss-code-embed
|
5 |
Description: Allows you to embed code into your posts & pages
|
6 |
+
Version: 1.5.1
|
7 |
Author: David Artiss
|
8 |
Author URI: http://www.artiss.co.uk
|
9 |
*/
|