Version Description
- Bug: Fixed minor error that occurred due to the removal of the debug code in the last release. Sorry about that.
Download this release
Release Info
Developer | dartiss |
Plugin | Code Embed |
Version | 2.3.4 |
Comparing to | |
See all releases |
Code changes from version 2.3.3 to 2.3.4
- includes/add-embeds.php +2 -3
- readme.txt +12 -7
- simple-code-embed.php +3 -3
includes/add-embeds.php
CHANGED
@@ -100,7 +100,7 @@ function ce_filter( $content ) {
|
|
100 |
|
101 |
// Build the string of code to replace with
|
102 |
|
103 |
-
$replace = ce_generate_code( $html, $responsive, $max_width
|
104 |
|
105 |
// Now modify all references
|
106 |
|
@@ -172,11 +172,10 @@ function ce_quick_replace( $content = '', $options = '', $search = '' ) {
|
|
172 |
* @param $html string The embed code (required)
|
173 |
* @param $responsive string Responsive output required? (optional)
|
174 |
* @param $max_width string Maximum width of responsive output (optional)
|
175 |
-
* @param $debug boolean Whether to suppress debug output (1) or not
|
176 |
* @return string The embed code
|
177 |
*/
|
178 |
|
179 |
-
function ce_generate_code( $html, $responsive = '', $max_width = ''
|
180 |
|
181 |
$code = "\n";
|
182 |
|
100 |
|
101 |
// Build the string of code to replace with
|
102 |
|
103 |
+
$replace = ce_generate_code( $html, $responsive, $max_width );
|
104 |
|
105 |
// Now modify all references
|
106 |
|
172 |
* @param $html string The embed code (required)
|
173 |
* @param $responsive string Responsive output required? (optional)
|
174 |
* @param $max_width string Maximum width of responsive output (optional)
|
|
|
175 |
* @return string The embed code
|
176 |
*/
|
177 |
|
178 |
+
function ce_generate_code( $html, $responsive = '', $max_width = '' ) {
|
179 |
|
180 |
$code = "\n";
|
181 |
|
readme.txt
CHANGED
@@ -3,9 +3,9 @@ Contributors: dartiss
|
|
3 |
Donate link: https://artiss.blog/donate
|
4 |
Tags: code, embed, html, javascript, script
|
5 |
Requires at least: 4.6
|
6 |
-
Tested up to: 5.
|
7 |
Requires PHP: 5.3
|
8 |
-
Stable tag: 2.3.
|
9 |
License: GPLv2 or later
|
10 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
11 |
|
@@ -13,7 +13,7 @@ Code Embed provides a very easy and efficient way to embed code (JavaScript and
|
|
13 |
|
14 |
== Description ==
|
15 |
|
16 |
-
**Note for users of WordPress 5.0 and above: please see the FAQ for details on using this plugin with
|
17 |
|
18 |
Code Embed allows you to embed code (JavaScript and HTML - it can't be used for server-side code, such as PHP) in a post, without the content being changed by the editor. This is incredibly useful for embedding third-party scripts, etc. The plugin is used by many large sites, including Mozilla.
|
19 |
|
@@ -28,7 +28,9 @@ Key features include...
|
|
28 |
* Embed an external script directly using just the URL
|
29 |
* And much, much more!
|
30 |
|
31 |
-
|
|
|
|
|
32 |
|
33 |
== Getting Started ==
|
34 |
|
@@ -183,7 +185,10 @@ It is, in that it doesn't save any data that could be odds with GDPR compliance
|
|
183 |
|
184 |
== Changelog ==
|
185 |
|
186 |
-
|
|
|
|
|
|
|
187 |
|
188 |
= 2.3.3 =
|
189 |
* Enhancement: I've removed the debug code. I allowed to be switched off but I've never used it and it may not have switched off properly anyway. So it's gone
|
@@ -298,5 +303,5 @@ versions of this plugin
|
|
298 |
|
299 |
== Upgrade Notice ==
|
300 |
|
301 |
-
= 2.3.
|
302 |
-
* Minor
|
3 |
Donate link: https://artiss.blog/donate
|
4 |
Tags: code, embed, html, javascript, script
|
5 |
Requires at least: 4.6
|
6 |
+
Tested up to: 5.5
|
7 |
Requires PHP: 5.3
|
8 |
+
Stable tag: 2.3.4
|
9 |
License: GPLv2 or later
|
10 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
11 |
|
13 |
|
14 |
== Description ==
|
15 |
|
16 |
+
**Note for users of WordPress 5.0 and above: please see the FAQ for details on using this plugin with the block editor**
|
17 |
|
18 |
Code Embed allows you to embed code (JavaScript and HTML - it can't be used for server-side code, such as PHP) in a post, without the content being changed by the editor. This is incredibly useful for embedding third-party scripts, etc. The plugin is used by many large sites, including Mozilla.
|
19 |
|
28 |
* Embed an external script directly using just the URL
|
29 |
* And much, much more!
|
30 |
|
31 |
+
Iconography is courtesy of the very talented [Janki Rathod](https://www.linkedin.com/in/jankirathore/) ♥️
|
32 |
+
|
33 |
+
👉 Please visit the [Github page](https://github.com/dartiss/code-embed "Github") for the latest code development, planned enhancements and known issues 👈
|
34 |
|
35 |
== Getting Started ==
|
36 |
|
185 |
|
186 |
== Changelog ==
|
187 |
|
188 |
+
I use symantic versioning.
|
189 |
+
|
190 |
+
= 2.3.4 =
|
191 |
+
* Bug: Fixed minor error that occurred due to the removal of the debug code in the last release. Sorry about that.
|
192 |
|
193 |
= 2.3.3 =
|
194 |
* Enhancement: I've removed the debug code. I allowed to be switched off but I've never used it and it may not have switched off properly anyway. So it's gone
|
303 |
|
304 |
== Upgrade Notice ==
|
305 |
|
306 |
+
= 2.3.4 =
|
307 |
+
* Minor bug fix
|
simple-code-embed.php
CHANGED
@@ -1,9 +1,9 @@
|
|
1 |
<?php
|
2 |
/**
|
3 |
Plugin Name: Code Embed
|
4 |
-
Plugin URI: https://
|
5 |
Description: Code Embed provides a very easy and efficient way to embed code (JavaScript and HTML) in your posts and pages.
|
6 |
-
Version: 2.3.
|
7 |
Author: David Artiss
|
8 |
Author URI: https://artiss.blog
|
9 |
Text Domain: simple-embed-code
|
@@ -11,7 +11,7 @@ Text Domain: simple-embed-code
|
|
11 |
@package Code-Embed
|
12 |
*/
|
13 |
|
14 |
-
define( 'CODE_EMBED_VERSION', '2.3.
|
15 |
|
16 |
// Include all the various functions.
|
17 |
|
1 |
<?php
|
2 |
/**
|
3 |
Plugin Name: Code Embed
|
4 |
+
Plugin URI: https://wordpress.org/plugins/simple-embed-code/
|
5 |
Description: Code Embed provides a very easy and efficient way to embed code (JavaScript and HTML) in your posts and pages.
|
6 |
+
Version: 2.3.4
|
7 |
Author: David Artiss
|
8 |
Author URI: https://artiss.blog
|
9 |
Text Domain: simple-embed-code
|
11 |
@package Code-Embed
|
12 |
*/
|
13 |
|
14 |
+
define( 'CODE_EMBED_VERSION', '2.3.4' );
|
15 |
|
16 |
// Include all the various functions.
|
17 |
|