• Resolved actionscripted

    (@actionscripted)


    Sorry to keep being the annoying markup poster…

    pg_Replies_Widget doesn’t output the “after_widget” markup when there aren’t posts to show. If the site widgets are configured to use before/after widget markup — for example an opening/closing div — the final closing tag won’t be there.

    One way to fix this is to add an echo on line 645 right after the closing list tags and before the return in pg_forum_widgets.php:

    
    if ( empty( $allowed_posts )) {
    	echo '<ul><li>' ;
    	_e('No Replies', 'bbp-private-groups') ;
    	echo '</li></ul>' ;
    	echo $args['after_widget'];
    	return ;
    }
    
    • This topic was modified 7 years, 8 months ago by actionscripted.
    • This topic was modified 7 years, 8 months ago by actionscripted. Reason: Code formatting/cleanup
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘pg_Replies_Widget missing “after_widget” when $allowed_posts is empty’ is closed to new replies.