Skip to content
Permalink
Browse files

wfx_walker_parent_duplicate - Correct output

Fix output (no prepend) and improve documentation on ‘wflux_menu_parent_d_text’ filter.
  • Loading branch information...
Jonnyauk committed Sep 6, 2019
1 parent 17ba3b1 commit 02cf0d8e660c2e708d3809248795c498e721076a
Showing with 3 additions and 3 deletions.
  1. +3 −3 wf-includes/wf-menu-walkers.php
@@ -11,7 +11,7 @@
* NOTE: Requires a-little JS to do anything 'pretty'!
*
* Filters available (in addition to all the normal WP ones):
* wflux_menu_parent_d_text - array, has 3 keys: 'prepend', 'text' (default: link text), 'append' (default: ' Overview')
* wflux_menu_parent_d_text - array, has 3 keys: 'prepend' (default: ''), 'text' (default: link text set in WP menu), 'append' (default: ' Overview')
*
* @since 2.6
* @version 2.6
@@ -291,9 +291,9 @@ function start_lvl( &$output, $depth = 0, $args = array() ) {
//// Text
$n_args = array(
'prepend' => ' Overview',
'prepend' => '',
'text' => $n_data_clean[ 'title' ],
'append' => ''
'append' => ' Overview'
);

0 comments on commit 02cf0d8

Please sign in to comment.
You can’t perform that action at this time.