WPIntell

Source evidence

Fix for start_from=parent

Gecka Submenu · support · 2014-10-16T11:45:00+00:00

complaintsentiment
mediumseverity
0.69relevance
0replies
Evidence linked to opportunitycommercial context

Proof Health

Open evidence

Commercial opportunities need traceable source links before they are treated as build-worthy.

6 / 22 rows with source links

27.3% of this page's analysis has direct source links.

0 build-decision rows missing links

0 rows here require auditable proof before promotion.

16 rows with no attached evidence

0 rows have source counts but still need direct links.

Conversation

support
chaman unresolved
In wp-content/plugins/gecka-submenu/models/Submenu.php line 159 find: // top parent page is the top level element else if( $submenu === 'top' ) { global $post, $wp_query; if( ( is_a($post, 'stdClass') || is_a($post, 'WP_Post') ) && (int)$post->ID ) { if( $submenu = $this->get_top_ancestor ($wp_query->get_queried_object_id(), $menu_items, $_type) ) $submenu = $submenu->ID; } } replace with: // top parent page is the top level element else if( $submenu === 'top' ) { global $post, $wp_query; if( ( is_a($post, 'stdClass') || is_a($post, 'WP_Post') ) && (int)$post->ID ) { if( $submenu = $this->get_top_ancestor ($wp_query->get_queried_object_id(), $menu_items, $_type) ) $submenu = $submenu->ID; } } // parent page is the top level element else if( $submenu === 'parent' ) { global $post, $wp_query; $allants = get_post_ancestors( $post );// all ancestors // direct parent is first ancestor $submenu = $this->get_associated_nav_menu_item($allants[0], $menu_items, $_type); } https://wordpress.org/plugins/gecka-submenu/

Comments

0 shown

No comments were stored for this source.