Skip to content

Commit

Permalink
fix tabbed content issue
Browse files Browse the repository at this point in the history
  • Loading branch information
farhan-shafi committed Mar 13, 2024
1 parent 6605a8d commit 00fd81a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,8 @@ That's it. You're done!
* IMPROVE: Change default counter, and label font size in the counter block.
* FIX: Counter bug when change animation.
* FIX: Advanced heading not working in table of content.
* FIX: Image slider not showing properly in row block
* FIX: Image slider not showing properly in row block.
* FIX: Anchor issue in tabbed content block.
* PRO: NEW: Load more pagination in post grid.
* PRO: FIX: Schema indexing error Bad escape sequence in string in review block.

Expand Down
2 changes: 1 addition & 1 deletion src/blocks/tabbed-content/block.php
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ function ub_render_tabbed_content_block($attributes, $contents){

foreach ($contents as $key => $content) {
if($useAnchors){
if($tabsAnchor[$key] !== ''){
if(isset($tabsAnchor[$key]) && $tabsAnchor[$key] !== ''){
$content->{'data-tab-anchor'} = $tabsAnchor[$key];
}
}
Expand Down

0 comments on commit 00fd81a

Please sign in to comment.