Version Description
Download this release
Release Info
Developer | vaakash |
Plugin | Shortcoder |
Version | 5.3.2 |
Comparing to | |
See all releases |
Code changes from version 5.3.1 to 5.3.2
- admin/css/style.css +2 -27
- admin/edit.php +9 -8
- admin/js/script.js +3 -0
- readme.txt +73 -52
- shortcoder.php +2 -2
admin/css/style.css
CHANGED
@@ -164,6 +164,7 @@
|
|
164 |
.CodeMirror {
|
165 |
border: 1px solid #e5e5e5;
|
166 |
line-height: 1.5em;
|
|
|
167 |
}
|
168 |
|
169 |
#sc_mb_settings .form-table th{
|
@@ -305,7 +306,7 @@
|
|
305 |
|
306 |
/** Feedback **/
|
307 |
.feedback ul {
|
308 |
-
margin:
|
309 |
}
|
310 |
.feedback ul li{
|
311 |
margin: 0;
|
@@ -389,25 +390,6 @@
|
|
389 |
color: #FF9800;
|
390 |
}
|
391 |
|
392 |
-
.social_share {
|
393 |
-
display: flex;
|
394 |
-
}
|
395 |
-
.social_share a{
|
396 |
-
width: 100%;
|
397 |
-
text-align: center;
|
398 |
-
padding: 10px 0;
|
399 |
-
font-weight: bold;
|
400 |
-
}
|
401 |
-
.social_share a:hover {
|
402 |
-
text-decoration: none;
|
403 |
-
}
|
404 |
-
.social_share .dashicons {
|
405 |
-
font-size: 32px;
|
406 |
-
width: 32px;
|
407 |
-
height: 32px;
|
408 |
-
margin: 0 0 5px 0;
|
409 |
-
}
|
410 |
-
|
411 |
.subscribe_form {
|
412 |
display: flex;
|
413 |
padding: 15px;
|
@@ -430,13 +412,6 @@
|
|
430 |
margin: 0 0 10px 0;
|
431 |
color: green;
|
432 |
}
|
433 |
-
.ss_facebook{
|
434 |
-
color: #3578E5;
|
435 |
-
}
|
436 |
-
.ss_twitter{
|
437 |
-
color: #1DA1F2;
|
438 |
-
font-weight: bold;
|
439 |
-
}
|
440 |
|
441 |
/** Import/Export link **/
|
442 |
.ie_top_link{
|
164 |
.CodeMirror {
|
165 |
border: 1px solid #e5e5e5;
|
166 |
line-height: 1.5em;
|
167 |
+
font-size: 14px;
|
168 |
}
|
169 |
|
170 |
#sc_mb_settings .form-table th{
|
306 |
|
307 |
/** Feedback **/
|
308 |
.feedback ul {
|
309 |
+
margin: 5px 0;
|
310 |
}
|
311 |
.feedback ul li{
|
312 |
margin: 0;
|
390 |
color: #FF9800;
|
391 |
}
|
392 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
393 |
.subscribe_form {
|
394 |
display: flex;
|
395 |
padding: 15px;
|
412 |
margin: 0 0 10px 0;
|
413 |
color: green;
|
414 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
415 |
|
416 |
/** Import/Export link **/
|
417 |
.ie_top_link{
|
admin/edit.php
CHANGED
@@ -301,22 +301,23 @@ class SC_Admin_Edit{
|
|
301 |
|
302 |
echo '<p>Get updates on the WordPress plugins, tips and tricks to enhance your WordPress experience. No spam.</p>';
|
303 |
|
304 |
-
echo '<div class="social_share">
|
305 |
-
<a href="https://www.facebook.com/aakashweb" class="ss_facebook" target="_blank"><span class="dashicons dashicons-facebook"></span><div>Facebook</div></a>
|
306 |
-
<a href="https://twitter.com/aakashweb" class="ss_twitter" target="_blank"><span class="dashicons dashicons-twitter"></span><div>Twitter</div></a>
|
307 |
-
</div>';
|
308 |
-
|
309 |
echo '<div class="subscribe_form" data-action="https://aakashweb.us19.list-manage.com/subscribe/post-json?u=b7023581458d048107298247e&id=ef5ab3c5c4&c=">
|
310 |
<input type="email" class="subscribe_email_box" placeholder="Your email address">
|
311 |
<p class="subscribe_confirm">Thanks for subscribing !</p>
|
312 |
<button class="button subscribe_btn"><span class="dashicons dashicons-email"></span> Subscribe</button>
|
313 |
</div>';
|
314 |
|
|
|
|
|
|
|
|
|
|
|
|
|
315 |
echo '<div class="ufw"><h4><a href="https://www.aakashweb.com/wordpress-plugins/ultimate-floating-widgets/?utm_source=shortcoder&utm_medium=sidebar&utm_campaign=ufw" target="_blank">
|
316 |
-
<i>
|
317 |
-
<br/>
|
318 |
<img src="' . SC_ADMIN_URL . 'images/ufw.png" class="balloon" />
|
319 |
-
<p>
|
320 |
|
321 |
echo '<a class="rate_review" href="https://wordpress.org/support/plugin/shortcoder/reviews/?rate=5#new-post" target="_blank">
|
322 |
<h4>Rate & Review</h4>
|
301 |
|
302 |
echo '<p>Get updates on the WordPress plugins, tips and tricks to enhance your WordPress experience. No spam.</p>';
|
303 |
|
|
|
|
|
|
|
|
|
|
|
304 |
echo '<div class="subscribe_form" data-action="https://aakashweb.us19.list-manage.com/subscribe/post-json?u=b7023581458d048107298247e&id=ef5ab3c5c4&c=">
|
305 |
<input type="email" class="subscribe_email_box" placeholder="Your email address">
|
306 |
<p class="subscribe_confirm">Thanks for subscribing !</p>
|
307 |
<button class="button subscribe_btn"><span class="dashicons dashicons-email"></span> Subscribe</button>
|
308 |
</div>';
|
309 |
|
310 |
+
echo '<ul>
|
311 |
+
<li><a href="https://www.facebook.com/aakashweb" target="_blank">Follow on Facebook <span class="dashicons dashicons-arrow-right-alt2"></span></a></li>
|
312 |
+
<li><a href="https://twitter.com/aakashweb" target="_blank">Follow on Twitter <span class="dashicons dashicons-arrow-right-alt2"></span></a></li>
|
313 |
+
</ul>
|
314 |
+
';
|
315 |
+
|
316 |
echo '<div class="ufw"><h4><a href="https://www.aakashweb.com/wordpress-plugins/ultimate-floating-widgets/?utm_source=shortcoder&utm_medium=sidebar&utm_campaign=ufw" target="_blank">
|
317 |
+
<i>Create <span class="dashicons dashicons-arrow-right-alt2"></span></i>
|
318 |
+
<br/> Floating/sticky widgets</a></h4>
|
319 |
<img src="' . SC_ADMIN_URL . 'images/ufw.png" class="balloon" />
|
320 |
+
<p>If you want to create floating/sticky sidebar widgets, then Ultimate floating widgets plugins lets you do that. Check it out.</p></div>';
|
321 |
|
322 |
echo '<a class="rate_review" href="https://wordpress.org/support/plugin/shortcoder/reviews/?rate=5#new-post" target="_blank">
|
323 |
<h4>Rate & Review</h4>
|
admin/js/script.js
CHANGED
@@ -89,6 +89,9 @@ $(document).ready(function(){
|
|
89 |
if(stream.match(/%%.*?%%/)){
|
90 |
return 'atom sc_param';
|
91 |
}
|
|
|
|
|
|
|
92 |
stream.next();
|
93 |
}
|
94 |
};
|
89 |
if(stream.match(/%%.*?%%/)){
|
90 |
return 'atom sc_param';
|
91 |
}
|
92 |
+
if(stream.match(/\[(.+?)?\](?:(.+?)?\[\/\])?/)){
|
93 |
+
return 'string sc_param';
|
94 |
+
}
|
95 |
stream.next();
|
96 |
}
|
97 |
};
|
readme.txt
CHANGED
@@ -1,4 +1,4 @@
|
|
1 |
-
|
2 |
Contributors: vaakash
|
3 |
Author URI: https://www.aakashweb.com/
|
4 |
Plugin URI: https://www.aakashweb.com/wordpress-plugins/shortcoder/
|
@@ -7,32 +7,37 @@ Donate link: https://www.paypal.me/vaakash/
|
|
7 |
License: GPLv2 or later
|
8 |
Requires PHP: 5.3
|
9 |
Requires at least: 4.4
|
10 |
-
Tested up to: 5.
|
11 |
-
Stable tag: 5.3.
|
12 |
|
13 |
Create custom "Shortcodes" easily for HTML, JavaScript snippets and use the shortcodes within posts, pages & widgets.
|
14 |
|
15 |
-
|
|
|
|
|
16 |
|
17 |
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.
|
18 |
|
19 |
-
|
20 |
1. Give a name for the shortcode
|
21 |
-
1. Paste the HTML/JavaScript as content
|
22 |
1. Save !
|
23 |
1. Now insert the shortcode `[sc name="my_shortcode"]` in your post/page.
|
24 |
-
1. **Voila !** You got the HTML/Javascript in your post.
|
25 |
|
26 |
-
|
27 |
|
28 |
-
* Create **
|
29 |
-
*
|
30 |
* Insert: **Custom parameters** in shortcode
|
31 |
* Insert: **WordPress parameters** in shortcode
|
32 |
* Multiple editors: Code, Visual and text modes.
|
33 |
* Globally disable the shortcode when not needed.
|
|
|
|
|
|
|
34 |
|
35 |
-
|
36 |
|
37 |
1. Create a shortcode named "adsenseAd" in the Shortcoder admin page.
|
38 |
1. Paste the adsense code in the box given and save it.
|
@@ -40,34 +45,39 @@ Shortcoder plugin allows to create a custom shortcodes for HTML, JavaScript and
|
|
40 |
1. Tada !!! the ad code is replaced and it appears in the post.
|
41 |
1. Now you can edit the ad code at one place and the code is updated in all the locations where the shortcode is used.
|
42 |
|
43 |
-
|
44 |
-
* You can also add [custom parameters](https://www.aakashweb.com/docs/shortcoder-doc/) (like `%%id%%`) inside the snippets, and change it's value like `[sc name="youtube" id="GrlRADfvjII"]`
|
45 |
|
46 |
-
=
|
|
|
|
|
47 |
|
48 |
* [Documentation](https://www.aakashweb.com/docs/shortcoder-doc/)
|
49 |
* [FAQs](https://www.aakashweb.com/docs/shortcoder-doc/)
|
50 |
-
* [Support/Report bugs](https://www.aakashweb.com/forum/)
|
|
|
51 |
|
52 |
-
|
|
|
53 |
|
54 |
1. Extract the zipped file and upload the folder `Shortcoder` to to `/wp-content/plugins/` directory.
|
55 |
1. Activate the plugin through the `Plugins` menu in WordPress.
|
56 |
1. Open the admin page from the "Shortcoder" link in the navigation menu.
|
57 |
|
58 |
-
|
|
|
|
|
59 |
|
60 |
Please visit the [plugin documentation page](https://www.aakashweb.com/docs/shortcoder-doc/) for complete list of FAQs.
|
61 |
|
62 |
-
|
63 |
|
64 |
Allowed characters are alphabets, numbers, hyphens and underscores.
|
65 |
|
66 |
-
|
67 |
|
68 |
Please check with your page builder plugin to confirm if the block/place/area where the shortcode is being used can execute shortcodes. If yes, then shortcode should work fine just like regular WordPress shortcodes.
|
69 |
|
70 |
-
|
71 |
|
72 |
Please check the following if you notice that the shortcode content is not printed or when the output is not as expected.
|
73 |
|
@@ -75,7 +85,13 @@ Please check the following if you notice that the shortcode content is not print
|
|
75 |
* If shortcode is printed but the output is not as expected, please try the shortcode content in an isolated environment and confirm if the shortcode content is working correctly as expected. Sometimes it might be external factors like theme, other plugin might conflict with the shortcode content being used.
|
76 |
* There is a known limitation in shortcodes API when there is a combination of unclosed and closed shortcodes. Please refer [this document](https://codex.wordpress.org/Shortcode_API#Unclosed_Shortcodes) for more information.
|
77 |
|
78 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
79 |
|
80 |
1. Shortcoder admin page.
|
81 |
2. Editing a shortcode.
|
@@ -86,28 +102,33 @@ Please check the following if you notice that the shortcode content is not print
|
|
86 |
|
87 |
[More Screenshots](https://www.aakashweb.com/wordpress-plugins/shortcoder/)
|
88 |
|
89 |
-
== Changelog ==
|
90 |
|
91 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
92 |
* New: Code editor is now made the default editor.
|
93 |
* Fix: Minor changes to admin UI.
|
94 |
|
95 |
-
|
96 |
* New: Added support for underscores in custom parameters.
|
97 |
* New: Getting ready for internationalization of the plugin.
|
98 |
* Fix: Insert shortcode popup shows duplicate available parameters in case of same parameter with different case.
|
99 |
|
100 |
-
|
101 |
* Fix: Custom parameters being not replaced in some scenarios.
|
102 |
* Fix: Minor enhancement to insert custom parameter form.
|
103 |
|
104 |
-
|
105 |
* New: Default values can now be provided to custom parameters.
|
106 |
* Fix: Script tags, custom field placeholder and backslash being stripped after saving the shortcode sometimes.
|
107 |
* Fix: Rel attribute being modified for links.
|
108 |
* New: Added "Manage shortcodes" link to plugin list page for easy access after activation.
|
109 |
|
110 |
-
|
111 |
* New: Import/Export link added to the shortcoder list page.
|
112 |
* Fix: `empty()` was throwing error at some places for users using PHP 5.5 below as function return value was passed to it.
|
113 |
* Fix: Shortcoder QTTags button was loading in frontends.
|
@@ -115,36 +136,36 @@ Please check the following if you notice that the shortcode content is not print
|
|
115 |
* Fix: `array_key_exists` array but bool given warning.
|
116 |
* Fix: Hide comments metabox in shortcode edit page as it was shown in certain conditions.
|
117 |
|
118 |
-
|
119 |
* Fix: `script` and `style` tags stripped after 4.x upgrade. New migration will run in this version and shortcode content will now be fixed.
|
120 |
|
121 |
-
|
122 |
* Fix: Shortcode content is not escaped when code editor is used. This is requirement because `post_content` behaves strangely when user has rich editing enabled.
|
123 |
|
124 |
-
|
125 |
* Fix: Shortcodes inside shortcode content not getting executed.
|
126 |
* Fix: Disable Gutenberg block for older not supported WordPress versions.
|
127 |
|
128 |
-
|
129 |
* Fix: Code editor escaping HTML characters.
|
130 |
* Fix: `get_current_screen()` undefined.
|
131 |
* Fix: Code editor breaks if there is any other plugin which loads codemirror.
|
132 |
* Fix: `tools.php` is not found.
|
133 |
|
134 |
-
|
135 |
* New: Brand new version. Plugin rewritten from scratch.
|
136 |
* New: Shortcoder block for the block editor.
|
137 |
|
138 |
-
|
139 |
* New: Insert shortcode automatically adds "closing tag" if the shortcode has enclosed content parameter.
|
140 |
* Fix: Codemirror has been updated to latest version.
|
141 |
|
142 |
-
|
143 |
* New: Edit shortcode name after creating.
|
144 |
* New: Post modified date parameter added.
|
145 |
* Fix: Date parameters now display in site language.
|
146 |
|
147 |
-
|
148 |
* Fix: Some plugins fail to fire onload JS event since it was overwritten by shortcoder.
|
149 |
* Fix: Javascript in insert shortcode popup not working in IE 11.
|
150 |
* Fix: Missing parenthesis while calling `is_year`.
|
@@ -153,15 +174,15 @@ Please check the following if you notice that the shortcode content is not print
|
|
153 |
* Fix: Load latest version 5.42.0 of codemirror.
|
154 |
* Fix: Updated minimum required WordPress version.
|
155 |
|
156 |
-
|
157 |
* Fix: Minor UI refinements for better experience.
|
158 |
* Fix: Import error where some exported JSON files have 0 as EOF.
|
159 |
|
160 |
-
|
161 |
* New: Insert custom fields in shortcode content.
|
162 |
* Fix: Removed comments in shortcode output
|
163 |
|
164 |
-
|
165 |
* New: Categorize, search and filter shortcodes using "tags".
|
166 |
* New: Last used shortcode editor will be saved along with shortcode.
|
167 |
* New: Enclosed shortcode content can now be used as shortcode parameter.
|
@@ -169,17 +190,17 @@ Please check the following if you notice that the shortcode content is not print
|
|
169 |
* Fix: Codemirror has been updated to latest version.
|
170 |
* Fix: Minor admin interface enhancements.
|
171 |
|
172 |
-
|
173 |
* New: Date variables can noe be added into shortcode content.
|
174 |
* Fix: Error "trying to get property of non-object" is handled.
|
175 |
|
176 |
-
|
177 |
* New: Bloginfo variables can now be added into shortcode content.
|
178 |
|
179 |
-
|
180 |
* New: Codemirror powered syntax highlighted shortcode content code editor (beta).
|
181 |
|
182 |
-
|
183 |
* Fix: Shortcode names with not-allowed characters cannot be edited/deleted.
|
184 |
* New: Shortcode imports made can now be fresh or overwritten.
|
185 |
* New: Only users with `manage_options` capability will see "edit shortcode" option in insert window.
|
@@ -187,28 +208,28 @@ Please check the following if you notice that the shortcode content is not print
|
|
187 |
* Fix: Case sensitive search in admin pages.
|
188 |
* Fix: Minor admin interface changes.
|
189 |
|
190 |
-
|
191 |
* New: Search box for shortcodes in admin page.
|
192 |
|
193 |
-
|
194 |
* Fix: HTTP 500 error because of syntax error in import module.
|
195 |
|
196 |
-
|
197 |
* New: Import/export feature for shortcodes.
|
198 |
* Fix: Visual editor is now disabled by default.
|
199 |
* Fix: Added instructions in admin page.
|
200 |
|
201 |
-
|
202 |
* New: Added feature to sort created shortcodes list.
|
203 |
* Fix: HTML errors in admin page
|
204 |
|
205 |
-
|
206 |
* Fix: Sometimes `get_current_screen()` was called early in some setups.
|
207 |
|
208 |
-
|
209 |
* Fix: Servers with PHP version < 5.5 were facing HTTP 500 error because of misuse of PHP language construct in code.
|
210 |
|
211 |
-
|
212 |
* New: Plugin rewritten from scratch.
|
213 |
* New: Brand new administration page
|
214 |
* New: Shortcode visibility settings, show/hide in desktop/mobile devices
|
@@ -216,8 +237,8 @@ Please check the following if you notice that the shortcode content is not print
|
|
216 |
* Fix: Insert shortcode window is not loading.
|
217 |
* Fix: Unable to delete the shortcodes
|
218 |
|
219 |
-
(Older
|
220 |
|
221 |
-
|
222 |
|
223 |
-
Version 5.0 is a major release.
|
1 |
+
# Shortcoder — Create Shortcodes for Anything
|
2 |
Contributors: vaakash
|
3 |
Author URI: https://www.aakashweb.com/
|
4 |
Plugin URI: https://www.aakashweb.com/wordpress-plugins/shortcoder/
|
7 |
License: GPLv2 or later
|
8 |
Requires PHP: 5.3
|
9 |
Requires at least: 4.4
|
10 |
+
Tested up to: 5.5
|
11 |
+
Stable tag: 5.3.2
|
12 |
|
13 |
Create custom "Shortcodes" easily for HTML, JavaScript snippets and use the shortcodes within posts, pages & widgets.
|
14 |
|
15 |
+
|
16 |
+
|
17 |
+
## Description
|
18 |
|
19 |
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.
|
20 |
|
21 |
+
### ✍ Create shortcodes easily
|
22 |
1. Give a name for the shortcode
|
23 |
+
1. Paste the HTML/JavaScript/CSS as shortcode content
|
24 |
1. Save !
|
25 |
1. Now insert the shortcode `[sc name="my_shortcode"]` in your post/page.
|
26 |
+
1. **Voila !** You got the HTML/Javascript/CSS in your post.
|
27 |
|
28 |
+
### ✨ Features
|
29 |
|
30 |
+
* Create **custom shortcodes** easily and use them in any place where shortcode is supported.
|
31 |
+
* Have any **HTML**, **Javascript**, **CSS** as Shortcode content.
|
32 |
* Insert: **Custom parameters** in shortcode
|
33 |
* Insert: **WordPress parameters** in shortcode
|
34 |
* Multiple editors: Code, Visual and text modes.
|
35 |
* Globally disable the shortcode when not needed.
|
36 |
+
* Disable shortcode on desktop, mobile devices.
|
37 |
+
* A button in post editor to pick the shortcodes to insert.
|
38 |
+
* Supports Gutenberg.
|
39 |
|
40 |
+
### 🎲 An example usage
|
41 |
|
42 |
1. Create a shortcode named "adsenseAd" in the Shortcoder admin page.
|
43 |
1. Paste the adsense code in the box given and save it.
|
45 |
1. Tada !!! the ad code is replaced and it appears in the post.
|
46 |
1. Now you can edit the ad code at one place and the code is updated in all the locations where the shortcode is used.
|
47 |
|
48 |
+
Similarly shortcodes can be created for frequently used snippets.
|
|
|
49 |
|
50 |
+
You can also add [custom parameters](https://www.aakashweb.com/docs/shortcoder-doc/) (like `%%id%%`) inside the snippets, and change it's value like `[sc name="youtube" id="GrlRADfvjII"]` when using them.
|
51 |
+
|
52 |
+
### Links
|
53 |
|
54 |
* [Documentation](https://www.aakashweb.com/docs/shortcoder-doc/)
|
55 |
* [FAQs](https://www.aakashweb.com/docs/shortcoder-doc/)
|
56 |
+
* [Support forum/Report bugs](https://www.aakashweb.com/forum/)
|
57 |
+
|
58 |
|
59 |
+
|
60 |
+
## Installation
|
61 |
|
62 |
1. Extract the zipped file and upload the folder `Shortcoder` to to `/wp-content/plugins/` directory.
|
63 |
1. Activate the plugin through the `Plugins` menu in WordPress.
|
64 |
1. Open the admin page from the "Shortcoder" link in the navigation menu.
|
65 |
|
66 |
+
|
67 |
+
|
68 |
+
## Frequently Asked Questions
|
69 |
|
70 |
Please visit the [plugin documentation page](https://www.aakashweb.com/docs/shortcoder-doc/) for complete list of FAQs.
|
71 |
|
72 |
+
### What are the allowed characters for shortcode name ?
|
73 |
|
74 |
Allowed characters are alphabets, numbers, hyphens and underscores.
|
75 |
|
76 |
+
### My shortcode is not working in my page builder !
|
77 |
|
78 |
Please check with your page builder plugin to confirm if the block/place/area where the shortcode is being used can execute shortcodes. If yes, then shortcode should work fine just like regular WordPress shortcodes.
|
79 |
|
80 |
+
### My shortcode is not working !
|
81 |
|
82 |
Please check the following if you notice that the shortcode content is not printed or when the output is not as expected.
|
83 |
|
85 |
* If shortcode is printed but the output is not as expected, please try the shortcode content in an isolated environment and confirm if the shortcode content is working correctly as expected. Sometimes it might be external factors like theme, other plugin might conflict with the shortcode content being used.
|
86 |
* There is a known limitation in shortcodes API when there is a combination of unclosed and closed shortcodes. Please refer [this document](https://codex.wordpress.org/Shortcode_API#Unclosed_Shortcodes) for more information.
|
87 |
|
88 |
+
### Can I insert PHP code in shortcode content ?
|
89 |
+
|
90 |
+
No, right now the plugin supports only HTML, Javascript and CSS as shortcode content.
|
91 |
+
|
92 |
+
|
93 |
+
|
94 |
+
## Screenshots
|
95 |
|
96 |
1. Shortcoder admin page.
|
97 |
2. Editing a shortcode.
|
102 |
|
103 |
[More Screenshots](https://www.aakashweb.com/wordpress-plugins/shortcoder/)
|
104 |
|
|
|
105 |
|
106 |
+
|
107 |
+
## Changelog
|
108 |
+
|
109 |
+
### 5.3.2
|
110 |
+
* New: In code editor, shortcodes will be highlighted and code editor font size is slightly bigger.
|
111 |
+
|
112 |
+
### 5.3.1
|
113 |
* New: Code editor is now made the default editor.
|
114 |
* Fix: Minor changes to admin UI.
|
115 |
|
116 |
+
### 5.3
|
117 |
* New: Added support for underscores in custom parameters.
|
118 |
* New: Getting ready for internationalization of the plugin.
|
119 |
* Fix: Insert shortcode popup shows duplicate available parameters in case of same parameter with different case.
|
120 |
|
121 |
+
### 5.2.1
|
122 |
* Fix: Custom parameters being not replaced in some scenarios.
|
123 |
* Fix: Minor enhancement to insert custom parameter form.
|
124 |
|
125 |
+
### 5.2
|
126 |
* New: Default values can now be provided to custom parameters.
|
127 |
* Fix: Script tags, custom field placeholder and backslash being stripped after saving the shortcode sometimes.
|
128 |
* Fix: Rel attribute being modified for links.
|
129 |
* New: Added "Manage shortcodes" link to plugin list page for easy access after activation.
|
130 |
|
131 |
+
### 5.1
|
132 |
* New: Import/Export link added to the shortcoder list page.
|
133 |
* Fix: `empty()` was throwing error at some places for users using PHP 5.5 below as function return value was passed to it.
|
134 |
* Fix: Shortcoder QTTags button was loading in frontends.
|
136 |
* Fix: `array_key_exists` array but bool given warning.
|
137 |
* Fix: Hide comments metabox in shortcode edit page as it was shown in certain conditions.
|
138 |
|
139 |
+
### 5.0.4
|
140 |
* Fix: `script` and `style` tags stripped after 4.x upgrade. New migration will run in this version and shortcode content will now be fixed.
|
141 |
|
142 |
+
### 5.0.3
|
143 |
* Fix: Shortcode content is not escaped when code editor is used. This is requirement because `post_content` behaves strangely when user has rich editing enabled.
|
144 |
|
145 |
+
### 5.0.2
|
146 |
* Fix: Shortcodes inside shortcode content not getting executed.
|
147 |
* Fix: Disable Gutenberg block for older not supported WordPress versions.
|
148 |
|
149 |
+
### 5.0.1
|
150 |
* Fix: Code editor escaping HTML characters.
|
151 |
* Fix: `get_current_screen()` undefined.
|
152 |
* Fix: Code editor breaks if there is any other plugin which loads codemirror.
|
153 |
* Fix: `tools.php` is not found.
|
154 |
|
155 |
+
### 5.0
|
156 |
* New: Brand new version. Plugin rewritten from scratch.
|
157 |
* New: Shortcoder block for the block editor.
|
158 |
|
159 |
+
### 4.4
|
160 |
* New: Insert shortcode automatically adds "closing tag" if the shortcode has enclosed content parameter.
|
161 |
* Fix: Codemirror has been updated to latest version.
|
162 |
|
163 |
+
### 4.3
|
164 |
* New: Edit shortcode name after creating.
|
165 |
* New: Post modified date parameter added.
|
166 |
* Fix: Date parameters now display in site language.
|
167 |
|
168 |
+
### 4.2
|
169 |
* Fix: Some plugins fail to fire onload JS event since it was overwritten by shortcoder.
|
170 |
* Fix: Javascript in insert shortcode popup not working in IE 11.
|
171 |
* Fix: Missing parenthesis while calling `is_year`.
|
174 |
* Fix: Load latest version 5.42.0 of codemirror.
|
175 |
* Fix: Updated minimum required WordPress version.
|
176 |
|
177 |
+
### 4.1.9
|
178 |
* Fix: Minor UI refinements for better experience.
|
179 |
* Fix: Import error where some exported JSON files have 0 as EOF.
|
180 |
|
181 |
+
### 4.1.8
|
182 |
* New: Insert custom fields in shortcode content.
|
183 |
* Fix: Removed comments in shortcode output
|
184 |
|
185 |
+
### 4.1.7
|
186 |
* New: Categorize, search and filter shortcodes using "tags".
|
187 |
* New: Last used shortcode editor will be saved along with shortcode.
|
188 |
* New: Enclosed shortcode content can now be used as shortcode parameter.
|
190 |
* Fix: Codemirror has been updated to latest version.
|
191 |
* Fix: Minor admin interface enhancements.
|
192 |
|
193 |
+
### 4.1.6
|
194 |
* New: Date variables can noe be added into shortcode content.
|
195 |
* Fix: Error "trying to get property of non-object" is handled.
|
196 |
|
197 |
+
### 4.1.5
|
198 |
* New: Bloginfo variables can now be added into shortcode content.
|
199 |
|
200 |
+
### 4.1.4
|
201 |
* New: Codemirror powered syntax highlighted shortcode content code editor (beta).
|
202 |
|
203 |
+
### 4.1.3
|
204 |
* Fix: Shortcode names with not-allowed characters cannot be edited/deleted.
|
205 |
* New: Shortcode imports made can now be fresh or overwritten.
|
206 |
* New: Only users with `manage_options` capability will see "edit shortcode" option in insert window.
|
208 |
* Fix: Case sensitive search in admin pages.
|
209 |
* Fix: Minor admin interface changes.
|
210 |
|
211 |
+
### 4.1.2
|
212 |
* New: Search box for shortcodes in admin page.
|
213 |
|
214 |
+
### 4.1.1
|
215 |
* Fix: HTTP 500 error because of syntax error in import module.
|
216 |
|
217 |
+
### 4.1
|
218 |
* New: Import/export feature for shortcodes.
|
219 |
* Fix: Visual editor is now disabled by default.
|
220 |
* Fix: Added instructions in admin page.
|
221 |
|
222 |
+
### 4.0.3
|
223 |
* New: Added feature to sort created shortcodes list.
|
224 |
* Fix: HTML errors in admin page
|
225 |
|
226 |
+
### 4.0.2
|
227 |
* Fix: Sometimes `get_current_screen()` was called early in some setups.
|
228 |
|
229 |
+
### 4.0.1
|
230 |
* Fix: Servers with PHP version < 5.5 were facing HTTP 500 error because of misuse of PHP language construct in code.
|
231 |
|
232 |
+
### 4.0
|
233 |
* New: Plugin rewritten from scratch.
|
234 |
* New: Brand new administration page
|
235 |
* New: Shortcode visibility settings, show/hide in desktop/mobile devices
|
237 |
* Fix: Insert shortcode window is not loading.
|
238 |
* Fix: Unable to delete the shortcodes
|
239 |
|
240 |
+
(Older change logs are removed from this list)
|
241 |
|
242 |
+
## Upgrade Notice
|
243 |
|
244 |
+
Version 5.0 is a major release. Shortcodes from v4 will be migrated to the new way of how shortcodes are stored in v5. Also the navigation is moved to the top level under posts/pages.
|
shortcoder.php
CHANGED
@@ -4,13 +4,13 @@ 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.3.
|
8 |
Author URI: https://www.aakashweb.com/
|
9 |
Text Domain: shortcoder
|
10 |
Domain Path: /languages
|
11 |
*/
|
12 |
|
13 |
-
define( 'SC_VERSION', '5.3.
|
14 |
define( 'SC_PATH', plugin_dir_path( __FILE__ ) ); // All have trailing slash
|
15 |
define( 'SC_URL', plugin_dir_url( __FILE__ ) );
|
16 |
define( 'SC_ADMIN_URL', trailingslashit( plugin_dir_url( __FILE__ ) . 'admin' ) );
|
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.3.2
|
8 |
Author URI: https://www.aakashweb.com/
|
9 |
Text Domain: shortcoder
|
10 |
Domain Path: /languages
|
11 |
*/
|
12 |
|
13 |
+
define( 'SC_VERSION', '5.3.2' );
|
14 |
define( 'SC_PATH', plugin_dir_path( __FILE__ ) ); // All have trailing slash
|
15 |
define( 'SC_URL', plugin_dir_url( __FILE__ ) );
|
16 |
define( 'SC_ADMIN_URL', trailingslashit( plugin_dir_url( __FILE__ ) . 'admin' ) );
|