-
-
Notifications
You must be signed in to change notification settings - Fork 14
Open
Labels
help wantedExtra attention is neededExtra attention is needed
Description
Hey @Log1x 👋🏻 not an urgent one, but wanted to drop a note in case anyone else is having/fixed this issue.
I haven't had a chance to dig in completely to figure out why, but since upgrading to WP 5.8 + latest poet (v2.0.4) renaming the default post_type throws this notice + the 'Articles' label disappears in the admin sidebar.
E_NOTICE Trying to get property 'name_admin_bar' of non-object
File: site/web/wp/wp-includes/admin-bar.php
Line: 851
Poet config
<?php
return [
'post' => [
'post' => [
'labels' => [
'singular' => 'Article',
'plural' => 'Articles',
],
],
],
];^ removing this label override gets rid of the notice + Posts appears in the admin sidebar as you'd expect.
Cheers!
Metadata
Metadata
Assignees
Labels
help wantedExtra attention is neededExtra attention is needed
