Use comment_statuses in context
[PREMIUM-248]
This commit is contained in:
@@ -18,7 +18,7 @@ class ContextFactory {
|
|||||||
/** @return mixed[] */
|
/** @return mixed[] */
|
||||||
public function getContextData(): array {
|
public function getContextData(): array {
|
||||||
return [
|
return [
|
||||||
'comment_stati' => $this->getCommentStati(),
|
'comment_statuses' => $this->getCommentStatuses(),
|
||||||
'post_types' => $this->getPostTypes(),
|
'post_types' => $this->getPostTypes(),
|
||||||
'taxonomies' => $this->getTaxonomies(),
|
'taxonomies' => $this->getTaxonomies(),
|
||||||
];
|
];
|
||||||
@@ -27,7 +27,7 @@ class ContextFactory {
|
|||||||
/**
|
/**
|
||||||
* @return string[][]
|
* @return string[][]
|
||||||
*/
|
*/
|
||||||
private function getCommentStati(): array {
|
private function getCommentStatuses(): array {
|
||||||
$statiMap = $this->wp->getCommentStatuses();
|
$statiMap = $this->wp->getCommentStatuses();
|
||||||
$stati = [];
|
$stati = [];
|
||||||
foreach ($statiMap as $id => $name) {
|
foreach ($statiMap as $id => $name) {
|
||||||
|
Reference in New Issue
Block a user