Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Site Breadcrumbs: Return empty string when breadcrumbs is an empty array
In the design of most wporg sites, breadcrumbs are not needed when the level is less than 3. Therefore, a filter is usually applied to the breadcrumbs block to make the breadcrumbs an empty array. If this early return is not implemented, it would still return a div that occupies space. See WordPress/Learn@6fa130a
- Loading branch information