Rename function
[MAILPOET-2639]
This commit is contained in:
committed by
Jack Kitterhing
parent
f001542b3e
commit
1a1099013e
@@ -25,7 +25,7 @@ class DisplayFormInWPContent {
|
|||||||
|
|
||||||
$forms = $this->getForms();
|
$forms = $this->getForms();
|
||||||
if (count($forms) === 0) {
|
if (count($forms) === 0) {
|
||||||
$this->saveNoPosts();
|
$this->saveNoForms();
|
||||||
return $content;
|
return $content;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -45,7 +45,7 @@ class DisplayFormInWPContent {
|
|||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
private function saveNoPosts() {
|
private function saveNoForms() {
|
||||||
$stored = $this->wp->getTransient(DisplayFormInWPContent::NO_FORM_TRANSIENT_KEY);
|
$stored = $this->wp->getTransient(DisplayFormInWPContent::NO_FORM_TRANSIENT_KEY);
|
||||||
if (!is_array($stored)) $stored = [];
|
if (!is_array($stored)) $stored = [];
|
||||||
$stored[$this->wp->getPostType()] = true;
|
$stored[$this->wp->getPostType()] = true;
|
||||||
|
Reference in New Issue
Block a user