Hi @skatox
I found some other issue while creating new statuses with the counting of posts and pages in the status overview page, but PHP 7.4 doen’t throw any notices belonging to the code part from line 183 to 214 as you said.
public function register_post_status()
{
$status = self::get_status();
foreach ($status as $single_status) {
$term_meta = get_option("taxonomy_term_$single_status->term_id");
$args = [
'label' => $single_status->name,
'label_count' => _n_noop($single_status->name . ' <span class="count">(%s)</span>', $single_status->name . ' <span class="count">(%s)</span>'),
];
if ($term_meta['public'] == 1) {
$args['public'] = true;
} else {
$args['public'] = false;
}
if ($term_meta['show_in_admin_all_list'] == 1) {
$args['show_in_admin_all_list'] = true;
} else {
$args['show_in_admin_all_list'] = false;
}
if ($term_meta['show_in_admin_status_list'] == 1) {
$args['show_in_admin_status_list'] = true;
} else {
$args['show_in_admin_status_list'] = false;
}
if ($term_meta['hide_in_drop_down'] == 1) {
$args['hide_in_drop_down'] = true;
} else {
$args['hide_in_drop_down'] = false;
}
register_post_status($single_status->slug, $args);
}
}
It makes sense, that the $term_meta variable may not contain the needed information and that I have to check this beforehand, but I can not reproduce the notice in PHP. Is there anything I should add extra, to provoke this notice?
I just used the current WP version 5.3.2 as a blank setup and installed the plugin.
Thanks for your help.
Greetings Felix