Opened 9 years ago
Closed 9 years ago
#35324 closed defect (bug) (fixed)
Post Type Archives support in Nav Menus cannot read description
Reported by: |
|
Owned by: |
|
---|---|---|---|
Milestone: | 4.5 | Priority: | normal |
Severity: | normal | Version: | 4.4 |
Component: | Menus | Keywords: | has-patch has-unit-tests |
Focuses: | Cc: |
Description
Saved description data for post type archive nav menu items will be overwritten by empty.
This has been happend since #16075
Attachments (9)
Change History (24)
#4
@
9 years ago
to the description, post type description should be input by default.
Add new patch and Test.
#7
@
9 years ago
Thanks Toro_Unit for unit test!
I like your approach, but if CPT has own description, your function will overwrite menu item description even though I want to leave it empty.
Can we fix a bug this time and discuss it at new ticket?
#10
@
9 years ago
For anyone who is faced with this bug:
I made a plugin to fix this bug. Try this until the patch is merged.
https://gist.github.com/mayukojpn/6ef62c39dcf48c17ed96
#13
@
9 years ago
- Resolution fixed deleted
- Status changed from closed to reopened
36859 throws a notice when an archive menu item exists for a post type that is no longer registered. 35324.7.diff prevents the notice and adds a test for unregistered post types.
#14
@
9 years ago
35324.7.diff looks good, thanks @bradyvercher.
The words I added here and saved cannot read.