Log1x / poet

Configuration-based post type, taxonomy, block category, and block registration for Sage 10.

Home Page:https://github.com/Log1x/poet

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Changing labels post not working

huubl opened this issue · comments

commented

Hi,

When I add the code below to the Poet config it causes the label to show up blank. Any idea why?

...
'post' => [
    'post' => [
        'labels' => [
            'singular' => 'Article',
            'plural' => 'Articles',
        ],
    ],
],
...
commented

I found that the labels show up when commenting out:

poet/src/Poet.php

Lines 64 to 74 in 0d183c1

if (empty($key) || is_int($key)) {
return register_extended_post_type(...Arr::wrap($value));
}
if ($this->exists($key)) {
if ($value === false) {
return $this->remove($key);
}
return $this->modify($key, $value);
}

But can't locate the exact problem.