[wp-trac] [WordPress Trac] #11148: 'image_default_link_type' filter does not work
WordPress Trac
wp-trac at lists.automattic.com
Mon Nov 16 04:35:45 UTC 2009
#11148: 'image_default_link_type' filter does not work
--------------------------+-------------------------------------------------
Reporter: uglyrobot | Owner: azaozz
Type: defect (bug) | Status: new
Priority: normal | Milestone: 3.0
Component: JavaScript | Version:
Severity: normal | Keywords: image_default_link_type
--------------------------+-------------------------------------------------
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)
--
Ticket URL: <http://core.trac.wordpress.org/ticket/11148>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list