Make WordPress Core

Opened 6 years ago

Closed 6 years ago

#11148 closed defect (bug) (fixed)

'image_default_link_type' filter does not work

Reported by: uglyrobot Owned by: azaozz
Milestone: 2.9 Priority: normal
Severity: normal Version:
Component: JavaScript Keywords: image_default_link_type
Focuses: Cc:


The image_default_link_type filter exists in includes/media.php so plugin authors can default the link added to uploaded media. Unfortunately while the filter does replace the default value in the link field, it is immediately overwritten via JavaScript in the handlers.js file with the individual user's saved preference.

I believe a patch needs to be added to the handlers.js file to skip modifying the Link URL field if it has already been prefilled via the filter.

Aaron (for Incsub)

Change History (1)

comment:1 @azaozz6 years ago

  • Milestone changed from 3.0 to 2.9
  • Resolution set to fixed
  • Status changed from new to closed

This was just fixed in [12188]

Note: See TracTickets for help on using tickets.