#23302 closed defect (bug) (fixed)
Feeds or Feed - add_permastruct missunderstanding.
Reported by: |
|
Owned by: |
|
---|---|---|---|
Milestone: | 3.7 | Priority: | normal |
Severity: | normal | Version: | 3.5.1 |
Component: | Posts, Post Types | Keywords: | has-patch |
Focuses: | Cc: |
Description
In case of register_post_type you "can" specify to add feeds to permalink structure or not. You actualy can do that by specifing a 'feeds' element to false in rewrite array.
But add_permastruct doesn't accept feeds element of rewrite argument. Its accept 'feed' element which default is true. So in this case its not posible to disable feeds for any post type via register_post_type API.
Attachments (4)
Change History (10)
#2
@
12 years ago
I updated the original fix to use array merge so that 'feed' doesn't get added to the post type's rewrite array. I also added a patch for the unit test.
#3
@
12 years ago
In 1324/tests:
#4
@
12 years ago
- Owner set to nacin
- Resolution set to fixed
- Status changed from new to closed
In 24830:
Note: See
TracTickets for help on using
tickets.
patch