Remove ParserOutput::hasDynamicContent(), deprecated since 1.38

This was just an alias for ::hasReducedExpiry(), introduced in 1.37.

Bug: T305161
Change-Id: I3f6caeb9ae4b2164824f9bed274e76d6e61ad7cc
This commit is contained in:
C. Scott Ananian 2023-07-27 22:20:04 -04:00
parent f33e71f1f4
commit 92a5a28ed1
2 changed files with 1 additions and 11 deletions

View file

@ -360,6 +360,7 @@ because of Phabricator reports.
* The following methods in the ParserOutput class, deprecated since 1.38, have
been removed:
- ::addWarning()
- ::hasDynamicContent()
- ::hideNewSection()
- ::preventClickjacking()
* OutputPage::allowClickjacking() and ::preventClickjacking(), deprecated

View file

@ -2126,17 +2126,6 @@ class ParserOutput extends CacheTime implements ContentMetadataCollector {
return $this->getCacheExpiry() < $parserCacheExpireTime;
}
/**
* @see ParserOutput::hasReducedExpiry
* @return bool
* @since 1.25
* @deprecated since 1.38: use ::hasReducedExpiry()
*/
public function hasDynamicContent(): bool {
wfDeprecated( __METHOD__, '1.38' );
return $this->hasReducedExpiry();
}
/**
* Set the prevent-clickjacking flag. If set this will cause an
* `X-Frame-Options` header appropriate for edit pages to be sent.