diff --git a/src/Umbraco.Core/Services/ContentServiceExtensions.cs b/src/Umbraco.Core/Services/ContentServiceExtensions.cs index 2e50873187..5180955542 100644 --- a/src/Umbraco.Core/Services/ContentServiceExtensions.cs +++ b/src/Umbraco.Core/Services/ContentServiceExtensions.cs @@ -11,7 +11,7 @@ namespace Umbraco.Core.Services /// public static bool RecycleBinSmells(this IContentService contentService) { - return contentService.GetContentInRecycleBin().Any(); + return contentService.CountChildren(Constants.System.RecycleBinContent) > 0; } /// @@ -21,7 +21,7 @@ namespace Umbraco.Core.Services /// public static bool RecycleBinSmells(this IMediaService mediaService) { - return mediaService.GetMediaInRecycleBin().Any(); + return mediaService.CountChildren(Constants.System.RecycleBinMedia) > 0; } } } \ No newline at end of file