Opened 14 years ago
Last modified 5 years ago
#15924 new enhancement
Add 'media_default_link_type' option to parallel 'image_default_link_type'
Reported by: | goldenapples | Owned by: | |
---|---|---|---|
Milestone: | Future Release | Priority: | normal |
Severity: | normal | Version: | |
Component: | Upload | Keywords: | dev-feedback needs-patch |
Focuses: | Cc: |
Description
It is often recommended that site owners change the 'image_default_link_type' option to "none" if they don't plan on linking to full size images often from their posts. The problem is that this also affects the default link type for other media (uploaded zip files, pdfs, etc.) Adding an additional option for 'media_default_link_type' which behaves in the same way would get around this problem.
Attachments (1)
Change History (11)
#2
@
14 years ago
- Keywords dev-feedback added
- Milestone changed from Awaiting Review to Future Release
Could also put a filter in image_link_input_fields()
.
#3
@
13 years ago
agree. Images shouldn't default link to themselves. or the attachement page.. no need to index that. Images should be default w/ no link.
#5
@
13 years ago
Rather than adding a new option, we can just drop a filter on that value and ensure that $post gets passed to it.
#6
@
13 years ago
I agree a filter is much better than adding a new option. I would like to see it default to "link to file", though, whatever the image_default_link_type
setting is. Would this break much current usage?
I'm trying to brainstorm mainstream cases where people might want to link non-image media to an attachment page, and I can't think of any offhand. Maybe podcasting? I'm not sure. In any case, I think the hassle caused to the everyday site owner who has to remember to check an additional box when inserting pdfs or .zip downloads into post content could be alleviated by treating media and image links separately.
Adds option for media_default_link_type.