Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

<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>
5 changes: 2 additions & 3 deletions includes/add-embeds.php
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down Expand Up @@ -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";

Expand Down
24 changes: 15 additions & 9 deletions readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,17 +3,17 @@ 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

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

== 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.

Expand All @@ -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 ==

Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -297,5 +303,5 @@ versions of this plugin

== Upgrade Notice ==

= 2.3.3 =
* Minor change to code output
= 2.3.4 =
* Minor bug fix
6 changes: 3 additions & 3 deletions simple-code-embed.php
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
<?php
/**
Plugin Name: Code Embed
Plugin URI: https://github.com/dartiss/code-embed
Plugin URI: https://wordpress.org/plugins/simple-embed-code/
Description: Code Embed provides a very easy and efficient way to embed code (JavaScript and HTML) in your posts and pages.
Version: 2.3.3
Version: 2.3.4
Author: David Artiss
Author URI: https://artiss.blog
Text Domain: simple-embed-code

@package Code-Embed
*/

define( 'CODE_EMBED_VERSION', '2.3.3' );
define( 'CODE_EMBED_VERSION', '2.3.4' );

// Include all the various functions.

Expand Down