WordPress.org

Make WordPress Core

Changes between Initial Version and Version 1 of Ticket #38195, comment 18


Ignore:
Timestamp:
07/02/2019 12:20:50 AM (8 months ago)
Author:
SergeyBiryukov
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #38195, comment 18

    initial v1  
    22> Yes, I thinks this is good idea. My only suggestion for another group would be Archives and maybe Spreadsheets (if not put to into Documents). Maybe as a next step.
    33
    4 Thanks for the feedback! [attachment:"38195.4.diff"] adds Documents, Spreadsheets, and Archives groups, and also makes the code easier to add other groups in the future. It should be as easy as adding a new array entry to `wp_get_ext_types()`, where the key is a group as returned by `wp_get_ext_types()`, and the value is an array of labels.
     4Thanks for the feedback! [attachment:"38195.4.diff"] adds Documents, Spreadsheets, and Archives groups, and also makes the code easier to add other groups in the future. It should be as easy as adding a new array entry to `$post_mime_types`, where the key is a group as returned by `wp_get_ext_types()`, and the value is an array of labels.
    55
    66For reference, the only non-supported groups for now would be `interactive`, `text`, `code`.