From 176125efdfa3a848f1ff70f1d32f0137e75cc357 Mon Sep 17 00:00:00 2001 From: James Collings Date: Thu, 6 Nov 2014 09:42:54 +0000 Subject: [PATCH] Changed version number, and reset enable_public_walker default value --- Gruntfile.js | 5 +++-- readme.txt | 13 +++++++++---- submenu.php | 8 ++++---- 3 files changed, 16 insertions(+), 10 deletions(-) diff --git a/Gruntfile.js b/Gruntfile.js index 7c84238..bc4979c 100644 --- a/Gruntfile.js +++ b/Gruntfile.js @@ -9,6 +9,7 @@ module.exports = function(grunt) { {expand: true, src: ['assets/**'], dest: 'build/'}, {expand: true, src: ['views/**'], dest: 'build/'}, {expand: true, src: ['walkers/**'], dest: 'build/'}, + {expand: true, src: ['widgets/**'], dest: 'build/'}, {expand: false, src: ['readme.txt'], dest: 'build/readme.txt'}, {expand: false, src: ['screenshot-1.png'], dest: 'build/screenshot-1.png'}, {expand: false, src: ['screenshot-2.png'], dest: 'build/screenshot-2.png'}, @@ -20,7 +21,7 @@ module.exports = function(grunt) { ] } }, - clean: ["build"], + clean: ["build/*", "!build/.svn/*"], uglify: { my_target: { files: { @@ -45,6 +46,6 @@ module.exports = function(grunt) { grunt.loadNpmTasks('grunt-contrib-cssmin'); // Default task(s). - grunt.registerTask('default', ['clean', 'copy', 'uglify', 'cssmin']); + grunt.registerTask('default', ['clean', 'copy']); }; \ No newline at end of file diff --git a/readme.txt b/readme.txt index 24690df..7b88525 100644 --- a/readme.txt +++ b/readme.txt @@ -4,7 +4,7 @@ Donate link: Tags: submenu, menu, dynamic, custom post type, taxonomy, child pages Requires at least: 3.0.1 Tested up to: 4 -Stable tag: 0.8.3 +Stable tag: 0.8.4 License: GPLv2 or later License URI: http://www.gnu.org/licenses/gpl-2.0.html @@ -22,9 +22,6 @@ Also output a selected section of your dynamic menu through our advanced submenu 1. Extract the plugin to your wordpress plugins folder. 1. Activate the plugin from your wordpress administration area (under the plugins section). 1. You should thee should now be able to use JC Submenu Plugin. -1. Optional - If your theme already has a custom walker specified for outputing your menu, JC Submenu will not automatically override it, to do this locate the file your theme outputs the menu (usually header.php) and look for "wp\_nav\_menu()", and pass an extra argument so it looks similar: - -`wp_nav_menu(array('walker' => new JC_Submenu_Nav_Walker()));` For further documentation on installing and using JC Submneu features can be found [here](http://jamescollings.co.uk/wordpress-plugins/jc-submenu/). @@ -46,6 +43,10 @@ The documentation for automatically populating menu items can be found [here](ht A list of all actions and filters can be found [here](http://jamescollings.co.uk/jc-submenu/sections/actions-filters/) += How do i use JC Submenu when my theme uses a custom menu walker = + +The documentation to disable JC_Submenu_Nav_Walker and use your own can be found [here](http://jamescollings.co.uk/docs/v1/jc-submenu/how-tos/enable-menu-walker-compatability/) + == Screenshots == @@ -56,6 +57,10 @@ A list of all actions and filters can be found [here](http://jamescollings.co.uk == Changelog == +**0.8.4** + +* Fix menu highlighting when not using JC_Submenu_Nav_Walker + **0.8.3** * Fix add_post_meta not set to unique when saving menu items, causing multiple entries to be saved. diff --git a/submenu.php b/submenu.php index e45bdff..ec36779 100644 --- a/submenu.php +++ b/submenu.php @@ -3,7 +3,7 @@ Plugin Name: JC Submenu Plugin URI: http://jamescollings.co.uk/blog/jc-submenu-dynamic-wordpress-menu-plugin/ Description: Wordpress Submenu Plugin, automatically populate your navigation menus with custom post_types, taxonomies, or child pages. An easy to use plugin created to be a lightweight menu extension. - Version: 0.8.3 + Version: 0.8.4 Author: James Collings Author URI: http://www.jamescollings.co.uk */ @@ -14,11 +14,11 @@ * Core plugin file, load all required classes * * @author James Collings - * @version 0.8.3 + * @version 0.8.4 */ class JCSubmenu{ - var $version = '0.8.3'; + var $version = '0.8.4'; var $version_check = 70; var $plugin_dir = false; var $plugin_url = false; @@ -55,7 +55,7 @@ function __construct(){ */ public function init(){ - $this->public_walker = apply_filters('jcs/enable_public_walker', false ); + $this->public_walker = apply_filters('jcs/enable_public_walker', true ); if(!$this->public_walker){ add_filter( 'wp_nav_menu_objects', array( $this, 'populate_menu_items' ));