Skip to content

Commit

Permalink
Changed version number, and reset enable_public_walker default value
Browse files Browse the repository at this point in the history
  • Loading branch information
jcollings committed Nov 6, 2014
1 parent 4b85668 commit 176125e
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 10 deletions.
5 changes: 3 additions & 2 deletions Gruntfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -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'},
Expand All @@ -20,7 +21,7 @@ module.exports = function(grunt) {
]
}
},
clean: ["build"],
clean: ["build/*", "!build/.svn/*"],
uglify: {
my_target: {
files: {
Expand All @@ -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']);

};
13 changes: 9 additions & 4 deletions readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand All @@ -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/).

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

Expand All @@ -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.
Expand Down
8 changes: 4 additions & 4 deletions submenu.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
*/
Expand All @@ -14,11 +14,11 @@
* Core plugin file, load all required classes
*
* @author James Collings <[email protected]>
* @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;
Expand Down Expand Up @@ -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' ));
Expand Down

0 comments on commit 176125e

Please sign in to comment.