The breadcrumbs have been updated to account for the virtual nodes
and the depth method has been updated to rely on the fixed breadcrumb logic.
Reviewed by jonsurrell, zieladam, gziolo.
Merges [58588] to the 6.6 branch.
Follow-up to [58304].
Props dmsnell, hellofromtonya, joemcgill, jonsurrell, zieladam.
Fixes#61348.
Built from https://develop.svn.wordpress.org/branches/6.6@58590
git-svn-id: http://core.svn.wordpress.org/branches/6.6@58037 1a063a9b-81f0-0310-95a4-ce76da25c4cd