Rename function

[MAILPOET-2639]
This commit is contained in:
Pavel Dohnal
2020-01-30 14:39:15 +01:00
committed by Jack Kitterhing
parent f001542b3e
commit 1a1099013e

View File

@@ -25,7 +25,7 @@ class DisplayFormInWPContent {
$forms = $this->getForms();
if (count($forms) === 0) {
$this->saveNoPosts();
$this->saveNoForms();
return $content;
}
@@ -45,7 +45,7 @@ class DisplayFormInWPContent {
return true;
}
private function saveNoPosts() {
private function saveNoForms() {
$stored = $this->wp->getTransient(DisplayFormInWPContent::NO_FORM_TRANSIENT_KEY);
if (!is_array($stored)) $stored = [];
$stored[$this->wp->getPostType()] = true;