]> git.maquefel.me Git - brevno-suite/hugo/commitdiff
langs: Remove the Language.Params deprecation message for now
authorBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>
Sat, 27 May 2023 13:56:05 +0000 (15:56 +0200)
committerBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>
Sat, 27 May 2023 14:56:54 +0000 (16:56 +0200)
Closes #11025

langs/language.go

index a1b8f432680b076fdaa18de44532b278dae4056e..4e089606c7bdae136ceb038dce66717dd031652f 100644 (file)
@@ -98,7 +98,9 @@ See https://gohugo.io/content-management/multilingual/#changes-in-hugo-01120
 // Note that this is the same as the Site.Params, but we keep it here for legacy reasons.
 // Deprecated: Use the site.Params instead.
 func (l *Language) Params() maps.Params {
-       DeprecationFunc(".Language.Params", paramsDeprecationWarning, false)
+       // TODO(bep) Remove this for now as it created a little too much noise. Need to think about this.
+       // See https://github.com/gohugoio/hugo/issues/11025
+       //DeprecationFunc(".Language.Params", paramsDeprecationWarning, false)
        return l.params
 }