From b26799831a77c01e935460b602b53eba192d7413 Mon Sep 17 00:00:00 2001 From: David Artiss Date: Mon, 26 Oct 2020 18:06:24 +0000 Subject: [PATCH] Version 2.3.4 --- README.md | 2 ++ includes/add-embeds.php | 5 ++--- readme.txt | 24 +++++++++++++++--------- simple-code-embed.php | 6 +++--- 4 files changed, 22 insertions(+), 15 deletions(-) diff --git a/README.md b/README.md index f44172c..aa6e035 100644 --- a/README.md +++ b/README.md @@ -12,3 +12,5 @@ Features include... * Search for embedding code via a simple search option * Add a simple suffix to the embed code to convert videos to responsive output * Embed an external script directly using just the URL + +

 

\ No newline at end of file diff --git a/includes/add-embeds.php b/includes/add-embeds.php index f691dce..4422044 100644 --- a/includes/add-embeds.php +++ b/includes/add-embeds.php @@ -100,7 +100,7 @@ function ce_filter( $content ) { // Build the string of code to replace with - $replace = ce_generate_code( $html, $responsive, $max_width, $options['debug'] ); + $replace = ce_generate_code( $html, $responsive, $max_width ); // Now modify all references @@ -172,11 +172,10 @@ function ce_quick_replace( $content = '', $options = '', $search = '' ) { * @param $html string The embed code (required) * @param $responsive string Responsive output required? (optional) * @param $max_width string Maximum width of responsive output (optional) -* @param $debug boolean Whether to suppress debug output (1) or not * @return string The embed code */ -function ce_generate_code( $html, $responsive = '', $max_width = '', $debug = '' ) { +function ce_generate_code( $html, $responsive = '', $max_width = '' ) { $code = "\n"; diff --git a/readme.txt b/readme.txt index 992a3ef..49ec127 100644 --- a/readme.txt +++ b/readme.txt @@ -3,9 +3,9 @@ Contributors: dartiss Donate link: https://artiss.blog/donate Tags: code, embed, html, javascript, script Requires at least: 4.6 -Tested up to: 5.4 +Tested up to: 5.5 Requires PHP: 5.3 -Stable tag: 2.3.3 +Stable tag: 2.3.4 License: GPLv2 or later License URI: http://www.gnu.org/licenses/gpl-2.0.html @@ -13,7 +13,7 @@ Code Embed provides a very easy and efficient way to embed code (JavaScript and == Description == -**Note for users of WordPress 5.0 and above: please see the FAQ for details on using this plugin with Gutenberg** +**Note for users of WordPress 5.0 and above: please see the FAQ for details on using this plugin with the block editor** 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. @@ -28,7 +28,9 @@ Key features include... * Embed an external script directly using just the URL * And much, much more! -Please visit the [Github page](https://github.com/dartiss/code-embed "Github") for the latest code development, planned enhancements and known issues. +Iconography is courtesy of the very talented [Janki Rathod](https://www.linkedin.com/in/jankirathore/) ♥️ + +👉 Please visit the [Github page](https://github.com/dartiss/code-embed "Github") for the latest code development, planned enhancements and known issues 👈 == Getting Started == @@ -183,13 +185,17 @@ It is, in that it doesn't save any data that could be odds with GDPR compliance == Changelog == -[Learn more about my version numbering methodology](https://artiss.blog/2016/09/wordpress-plugin-versioning/ "WordPress Plugin Versioning") +I use symantic versioning. + += 2.3.4 = +* Bug: Fixed minor error that occurred due to the removal of the debug code in the last release. Sorry about that. = 2.3.3 = -* 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. +* 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 +* Enhancement: Added some additional plugin meta = 2.3.2 = -* 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. +* 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 = 2.3.1 = * 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 == Upgrade Notice == -= 2.3.3 = -* Minor change to code output \ No newline at end of file += 2.3.4 = +* Minor bug fix \ No newline at end of file diff --git a/simple-code-embed.php b/simple-code-embed.php index b66dc0a..2a62243 100644 --- a/simple-code-embed.php +++ b/simple-code-embed.php @@ -1,9 +1,9 @@