Version Description
- New: Brand new version. Plugin rewritten from scratch.
- New: Shortcoder block for the block editor.
Download this release
Release Info
Developer | vaakash |
Plugin | Shortcoder |
Version | 5.0 |
Comparing to | |
See all releases |
Code changes from version 5.0.1 to 5.0
- admin/js/script.js +0 -5
- readme.txt +1 -7
- shortcoder.php +3 -3
admin/js/script.js
CHANGED
@@ -68,11 +68,6 @@ $(document).ready(function(){
|
|
68 |
};
|
69 |
|
70 |
var load_cm_sc_mode = function(){
|
71 |
-
|
72 |
-
if(typeof CodeMirror.overlayMode === 'undefined'){
|
73 |
-
return false;
|
74 |
-
}
|
75 |
-
|
76 |
CodeMirror.defineMode('sc_mode', function(config, parserConfig){
|
77 |
var mustacheOverlay = {
|
78 |
token: function(stream, state){
|
68 |
};
|
69 |
|
70 |
var load_cm_sc_mode = function(){
|
|
|
|
|
|
|
|
|
|
|
71 |
CodeMirror.defineMode('sc_mode', function(config, parserConfig){
|
72 |
var mustacheOverlay = {
|
73 |
token: function(stream, state){
|
readme.txt
CHANGED
@@ -8,7 +8,7 @@ License: GPLv2 or later
|
|
8 |
Requires PHP: 5.3
|
9 |
Requires at least: 4.4
|
10 |
Tested up to: 5.3.2
|
11 |
-
Stable tag: 5.0
|
12 |
|
13 |
Create custom "Shortcodes" easily for HTML, JavaScript snippets and use the shortcodes within posts, pages & widgets.
|
14 |
|
@@ -88,12 +88,6 @@ Please check the following if you notice that the shortcode content is not print
|
|
88 |
|
89 |
== Changelog ==
|
90 |
|
91 |
-
= 5.0.1 =
|
92 |
-
* Fix: Code editor escaping HTML characters.
|
93 |
-
* Fix: `get_current_screen()` undefined.
|
94 |
-
* Fix: Code editor breaks if there is any other plugin which loads codemirror.
|
95 |
-
* Fix: `tools.php` is not found.
|
96 |
-
|
97 |
= 5.0 =
|
98 |
* New: Brand new version. Plugin rewritten from scratch.
|
99 |
* New: Shortcoder block for the block editor.
|
8 |
Requires PHP: 5.3
|
9 |
Requires at least: 4.4
|
10 |
Tested up to: 5.3.2
|
11 |
+
Stable tag: 5.0
|
12 |
|
13 |
Create custom "Shortcodes" easily for HTML, JavaScript snippets and use the shortcodes within posts, pages & widgets.
|
14 |
|
88 |
|
89 |
== Changelog ==
|
90 |
|
|
|
|
|
|
|
|
|
|
|
|
|
91 |
= 5.0 =
|
92 |
* New: Brand new version. Plugin rewritten from scratch.
|
93 |
* New: Shortcoder block for the block editor.
|
shortcoder.php
CHANGED
@@ -4,11 +4,11 @@ Plugin Name: Shortcoder
|
|
4 |
Plugin URI: https://www.aakashweb.com/wordpress-plugins/shortcoder/
|
5 |
Description: Shortcoder plugin allows to create a custom shortcodes for HTML, JavaScript and other snippets. Now the shortcodes can be used in posts/pages and the snippet will be replaced in place.
|
6 |
Author: Aakash Chakravarthy
|
7 |
-
Version: 5.0
|
8 |
Author URI: https://www.aakashweb.com/
|
9 |
*/
|
10 |
|
11 |
-
define( 'SC_VERSION', '5.0
|
12 |
define( 'SC_PATH', plugin_dir_path( __FILE__ ) ); // All have trailing slash
|
13 |
define( 'SC_URL', plugin_dir_url( __FILE__ ) );
|
14 |
define( 'SC_ADMIN_URL', trailingslashit( plugin_dir_url( __FILE__ ) . 'admin' ) );
|
@@ -18,7 +18,7 @@ define( 'SC_POST_TYPE', 'shortcoder' );
|
|
18 |
// error_reporting(E_ALL);
|
19 |
|
20 |
final class Shortcoder{
|
21 |
-
|
22 |
static public $shortcodes = array();
|
23 |
|
24 |
public static function init(){
|
4 |
Plugin URI: https://www.aakashweb.com/wordpress-plugins/shortcoder/
|
5 |
Description: Shortcoder plugin allows to create a custom shortcodes for HTML, JavaScript and other snippets. Now the shortcodes can be used in posts/pages and the snippet will be replaced in place.
|
6 |
Author: Aakash Chakravarthy
|
7 |
+
Version: 5.0
|
8 |
Author URI: https://www.aakashweb.com/
|
9 |
*/
|
10 |
|
11 |
+
define( 'SC_VERSION', '5.0' );
|
12 |
define( 'SC_PATH', plugin_dir_path( __FILE__ ) ); // All have trailing slash
|
13 |
define( 'SC_URL', plugin_dir_url( __FILE__ ) );
|
14 |
define( 'SC_ADMIN_URL', trailingslashit( plugin_dir_url( __FILE__ ) . 'admin' ) );
|
18 |
// error_reporting(E_ALL);
|
19 |
|
20 |
final class Shortcoder{
|
21 |
+
|
22 |
static public $shortcodes = array();
|
23 |
|
24 |
public static function init(){
|