Version 4.7.23

This commit is contained in:
Neo committed 2025-12-19 16:21:27 -08:00
1 parent 7124a02564
commit 25ddeb65d6
1791 files changed
+76990 -44452

No files matched your search

@@ -24,6 +24,11 @@ abstract class _AbstractContentAchievementAction extends AbstractAchievementActi
protected static $includeItems = TRUE;
protected static $includeComments = TRUE;
protected static $includeReviews = TRUE;
/**
* @var bool Exclude content items that require a first comment
*/
protected static $excludeItemsWithRequiredComment = FALSE;
/**
* Get filter form elements
@@ -62,7 +67,7 @@ abstract class _AbstractContentAchievementAction extends AbstractAchievementActi
$nodeFilterKey = 'achievement_subfilter_' . $classKey . '_type_' . str_replace( '\\', '-', $class );
$contentTypeToggles[ $class ][] = $nodeFilterKey;
}
if ( static::$includeItems )
if ( static::$includeItems OR ( !static::$includeItems AND static::$excludeItemsWithRequiredComment AND !$class::$firstCommentRequired ) )
{
$contentTypeOptions[ $class ] = $class::$title;
$contentTypeToggles[ $class ] = $nodeFilterKey ? [ $nodeFilterKey ] : [];