inc/registrar/Registrar.php
@@ -1312,8 +1312,10 @@ $prefix = str_replace('//', '/', $prefix); $slug = str_contains($this->slug, '_') ? str_replace('_','-', $this->slug) : $this->slug; $slug = ''; add_rewrite_rule( $base.$prefix.'/'.$slug.'/([a-z0-9-]+)/?$', $base.$prefix.'/'.$slug.'([a-z0-9-]+)/?$', 'index.php?post_type='.$registrar->getBased().'&'.$this->based.'=$matches[1]', 'top' );