Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Check for object_type before creating object_slug #44

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

nine-2-five
Copy link

No description provided.

@@ -369,6 +369,13 @@ public function get_nav_menu_item_children( $parent_id, $nav_menu_items, $depth
public function format_menu_item( $menu_item, $children = false, $menu = array() ) {

$item = (array) $menu_item;

if($item['type'] == 'taxonomy'){
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe factor this out into a getSlug function?

@jenessawhite
Copy link

Any updates on this?

@nine-2-five
Copy link
Author

I have created a pull request for this, not sure if it went through

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants