Merge branch temp8 into temp8-di2690
This commit is contained in:
@@ -151,7 +151,7 @@ namespace Umbraco.Core.Models.PublishedContent
|
||||
/// is the edited version) or false (document is published, and has not been edited, and
|
||||
/// what is returned is the published version).</para>
|
||||
/// </remarks>
|
||||
bool IsDraft { get; }
|
||||
bool IsDraft(string culture = null);
|
||||
|
||||
// fixme - consider having an IsPublished flag too
|
||||
// so that when IsDraft is true, we can check whether there is a published version?
|
||||
|
||||
@@ -109,7 +109,7 @@ namespace Umbraco.Core.Models.PublishedContent
|
||||
public virtual PublishedItemType ItemType => _content.ItemType;
|
||||
|
||||
/// <inheritdoc />
|
||||
public virtual bool IsDraft => _content.IsDraft;
|
||||
public virtual bool IsDraft(string culture = null) => _content.IsDraft(culture);
|
||||
|
||||
#endregion
|
||||
|
||||
|
||||
Reference in New Issue
Block a user