Empty Page Title Not Handled in Menu System
|Reported by:||cais||Owned by:|
|Cc:||DrewAPicture, nashwan.doaqan@…, sunnyratilal5@…|
I noticed some peculiar menu layouts and sorted it out to having some pages with no titles (not sure the actual use case for a page without a title but it is in my test environments).
The Walker class is recognizing the page exists and creating an appropriate <a href=...> wrapper for it but with no Page Title it is not being displayed. If this is by design I think it should be revisited and if this is a defect then the included patch (not very pretty) may offer a possible solution or at least a consideration.
The patch checks if the Page Title is empty and if it is uses the Page ID as the title.
Change History (15)
- Cc DrewAPicture added
- Milestone changed from Awaiting Review to 3.6
- Keywords commit added; needs-testing removed
- Version changed from 3.5 to 3.0