Skip to content

Commit ef2d6d6

Browse files
authored
Merge pull request #43 from dartiss/develop
Version 2.3.4
2 parents ac7626f + b267998 commit ef2d6d6

File tree

4 files changed

+22
-15
lines changed

4 files changed

+22
-15
lines changed

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,3 +12,5 @@ Features include...
1212
* Search for embedding code via a simple search option
1313
* Add a simple suffix to the embed code to convert videos to responsive output
1414
* Embed an external script directly using just the URL
15+
16+
<p align="right"><a href="https://wordpress.org/plugins/simple-embed-code/"><img src="https://img.shields.io/wordpress/plugin/dt/simple-embed-code?label=wp.org%20downloads&style=for-the-badge">&nbsp;<img src="https://img.shields.io/wordpress/plugin/stars/simple-embed-code?color=orange&style=for-the-badge"></a></p>

includes/add-embeds.php

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ function ce_filter( $content ) {
100100

101101
// Build the string of code to replace with
102102

103-
$replace = ce_generate_code( $html, $responsive, $max_width, $options['debug'] );
103+
$replace = ce_generate_code( $html, $responsive, $max_width );
104104

105105
// Now modify all references
106106

@@ -172,11 +172,10 @@ function ce_quick_replace( $content = '', $options = '', $search = '' ) {
172172
* @param $html string The embed code (required)
173173
* @param $responsive string Responsive output required? (optional)
174174
* @param $max_width string Maximum width of responsive output (optional)
175-
* @param $debug boolean Whether to suppress debug output (1) or not
176175
* @return string The embed code
177176
*/
178177

179-
function ce_generate_code( $html, $responsive = '', $max_width = '', $debug = '' ) {
178+
function ce_generate_code( $html, $responsive = '', $max_width = '' ) {
180179

181180
$code = "\n";
182181

readme.txt

Lines changed: 15 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -3,17 +3,17 @@ Contributors: dartiss
33
Donate link: https://artiss.blog/donate
44
Tags: code, embed, html, javascript, script
55
Requires at least: 4.6
6-
Tested up to: 5.4
6+
Tested up to: 5.5
77
Requires PHP: 5.3
8-
Stable tag: 2.3.3
8+
Stable tag: 2.3.4
99
License: GPLv2 or later
1010
License URI: http://www.gnu.org/licenses/gpl-2.0.html
1111

1212
Code Embed provides a very easy and efficient way to embed code (JavaScript and HTML) in your posts and pages.
1313

1414
== Description ==
1515

16-
**Note for users of WordPress 5.0 and above: please see the FAQ for details on using this plugin with Gutenberg**
16+
**Note for users of WordPress 5.0 and above: please see the FAQ for details on using this plugin with the block editor**
1717

1818
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.
1919

@@ -28,7 +28,9 @@ Key features include...
2828
* Embed an external script directly using just the URL
2929
* And much, much more!
3030

31-
Please visit the [Github page](https://github.com/dartiss/code-embed "Github") for the latest code development, planned enhancements and known issues.
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 👈
3234

3335
== Getting Started ==
3436

@@ -183,13 +185,17 @@ It is, in that it doesn't save any data that could be odds with GDPR compliance
183185

184186
== Changelog ==
185187

186-
[Learn more about my version numbering methodology](https://artiss.blog/2016/09/wordpress-plugin-versioning/ "WordPress Plugin Versioning")
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.
187192

188193
= 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.
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
195+
* Enhancement: Added some additional plugin meta
190196

191197
= 2.3.2 =
192-
* Bug: Fixed another pesky bug that was affecting embedded URLs. My code to do this was years old and I couldn't understand why I'd written it the way I had. So I've re-written it from scratch.
198+
* Bug: Fixed another pesky bug that was affecting embedded URLs. My code to do this was years old and I couldn't understand why I'd written it the way I had. So I've re-written it from scratch
193199

194200
= 2.3.1 =
195201
* Bug: Fixed a variable naming issue that I may, or may not (I did), have created in the latest release
@@ -297,5 +303,5 @@ versions of this plugin
297303

298304
== Upgrade Notice ==
299305

300-
= 2.3.3 =
301-
* Minor change to code output
306+
= 2.3.4 =
307+
* Minor bug fix

simple-code-embed.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,17 @@
11
<?php
22
/**
33
Plugin Name: Code Embed
4-
Plugin URI: https://github.com/dartiss/code-embed
4+
Plugin URI: https://wordpress.org/plugins/simple-embed-code/
55
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.3
6+
Version: 2.3.4
77
Author: David Artiss
88
Author URI: https://artiss.blog
99
Text Domain: simple-embed-code
1010
1111
@package Code-Embed
1212
*/
1313

14-
define( 'CODE_EMBED_VERSION', '2.3.3' );
14+
define( 'CODE_EMBED_VERSION', '2.3.4' );
1515

1616
// Include all the various functions.
1717

0 commit comments

Comments
 (0)