Shortcode in Menus - Version 2.1

Version Description

  • Bug fix for custom links with ShortCode like structure not being displayed in the nav menus.
Download this release

Release Info

Developer gagan0123
Plugin Icon 128x128 Shortcode in Menus
Version 2.1
Comparing to
See all releases

Code changes from version 2.0 to 2.1

Files changed (2) hide show
  1. index.php +2 -2
  2. readme.txt +4 -1
index.php CHANGED
@@ -3,7 +3,7 @@
3
  Plugin Name: Shortcodes in Menus
4
  Description: Allows you to add shortcodes in WordPress Navigation Menus
5
  Plugin URI: http://wordpress.org/plugins/shortcode-in-menus/
6
- Version: 2.0
7
  Author URI: http://gagan.pro
8
  Author: Gagan Deep Singh
9
  */
@@ -154,7 +154,7 @@ if (!class_exists('gsShortCodeInMenu')) {
154
  if ($item->object != 'gs_sim') {
155
 
156
  // check the legacy hack
157
- if ($item->post_title == 'FULL HTML OUTPUT' || $this->has_shortcode($item->url)) {
158
 
159
  // trigger notice for deprecation
160
  trigger_error('Using Custom Links is deprecated.'
3
  Plugin Name: Shortcodes in Menus
4
  Description: Allows you to add shortcodes in WordPress Navigation Menus
5
  Plugin URI: http://wordpress.org/plugins/shortcode-in-menus/
6
+ Version: 2.1
7
  Author URI: http://gagan.pro
8
  Author: Gagan Deep Singh
9
  */
154
  if ($item->object != 'gs_sim') {
155
 
156
  // check the legacy hack
157
+ if ($item->post_title == 'FULL HTML OUTPUT') {
158
 
159
  // trigger notice for deprecation
160
  trigger_error('Using Custom Links is deprecated.'
readme.txt CHANGED
@@ -3,7 +3,7 @@ Contributors: gagan0123, saurabhshukla
3
  Tags: Shortcode, Menus, Custom Link
4
  Requires at least: 3.5
5
  Tested up to: 4.0
6
- Stable tag: 2.0
7
  License: GPLv2 or later
8
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
9
 
@@ -62,3 +62,6 @@ Also, see a [great tutorial](https://wordpress.org/support/topic/how-does-it-wor
62
  * Deprecated Links box basis.
63
  * Added screenshots
64
  * Updated readme and instructions
 
 
 
3
  Tags: Shortcode, Menus, Custom Link
4
  Requires at least: 3.5
5
  Tested up to: 4.0
6
+ Stable tag: 2.1
7
  License: GPLv2 or later
8
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
9
 
62
  * Deprecated Links box basis.
63
  * Added screenshots
64
  * Updated readme and instructions
65
+
66
+ = 2.1 =
67
+ * Bug fix for custom links with ShortCode like structure not being displayed in the nav menus.