Skip to content
This repository has been archived by the owner on Nov 21, 2023. It is now read-only.

Commit

Permalink
Fix Undefined index: sidebar-
Browse files Browse the repository at this point in the history
  • Loading branch information
dotherightthing committed Jan 23, 2021
1 parent 624cc5c commit 7fe633e
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions template-parts/wpdtrt-anchorlinks/content-anchorlinks.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,10 @@
// @link http://kb.network.dan/php/wordpress/extract/.
extract( $options, EXTR_IF_EXISTS );

if ( isset( $additional_from_sidebar_id_1 ) && ( '' === $additional_from_sidebar_id_1 ) ) {
$additional_from_sidebar_id_1 = null;
}

global $post;

if ( isset( $post ) && is_object( $post ) ) {
Expand Down

0 comments on commit 7fe633e

Please sign in to comment.