Opened 3 years ago
Last modified 11 months ago
#14077 new enhancement
Add support for removal of multiple features from a post type in remove_post_type_support
| Reported by: |
|
Owned by: | |
|---|---|---|---|
| Priority: | normal | Milestone: | Future Release |
| Component: | Post Types | Version: | 3.0 |
| Severity: | minor | Keywords: | has-patch |
| Cc: | admin@… |
Description
From this thread
add_post_type_support allows an array to be passed as the 2nd parameter, but remove_post_type_support doesn't.
The patch attached adds the functionality.
Attachments (4)
Change History (11)
- Keywords needs-refresh added; needs-testing removed
- Milestone changed from Awaiting Triage to Future Release
- Keywords has-patch dev-feedback added; needs-refresh removed
Updated Utkarsh's previous patch to current SVN and formatted.
- Component changed from General to Post Types
- Keywords dev-feedback removed
- Type changed from defect (bug) to enhancement
comment:6
DrewAPicture — 11 months ago
Closed #21224 as duplicate. Would be nice to get some traction on this in 3.5.
comment:7
jeremyfelt — 11 months ago
Refreshed previous patch with additional code formatting in 14077.3.diff.
Tested remove_post_type_support() with both a single string and an array of features and works.
SergeyBiryukov — 11 months ago
Brings similar formatting cleanup to add_post_type_support() for consistency
Note: See
TracTickets for help on using
tickets.

Patch doesn't adhere to coding standards. Needs whitespace, also, the cast should probably be within the foreach directly.