Automatically assign post-format to posts
|Reported by:||mark-k||Owned by:|
I played around with post-formats and decided that one of the annoying things with them is that you have to think what will be the best display format for what you write. IMO it is unneeded and can be automatically handled by wordpress, maybe with giving the user ability to override.
The way post formats are defined in the codex it should not be difficult to automate the decision, basically what we need is to set a number of words that should be included in the post to make it reguler post. Lets call this number N.
Asides are posts with less then N words and no media.
Links are posts with less then N words that have a valid URL as the title or one link in the text and doesn't have any media
Status is an Aside in a multi author site
Quote is a post which contains a blockquote + up to N words and no media
Image,Audio,Video,Gallery have a respective post type when there is only one media in the post and less then N additional words
Chat can be detected by the format in the text
Change History (6)
- Milestone Awaiting Review deleted
- Resolution set to wontfix
- Status changed from new to closed