“Linked to Image” by default
-
I need help.
I’d like the upload functionality in WP 2.0 to select “Linked to image” by default.
Right now “Not Linked” is the default.
So I did some hacking…
in inline-uploading.php, line 249
I changed
__not_linked
to
__linked_to_image
and I made all kinds of different combo changes to the
toggleLink
function. (lines 335-344)Currently, they look like:
if ( ol.innerHTML == notlinked ) {
od.innerHTML = ab[n]+img+'</a>';
ol.innerHTML = linkedtoimage;
} else if ( ol.innerHTML == linkedtoimage ) {
od.innerHTML = img;
ol.innerHTML = notlinked;
}
else {
od.innerHTML = ab[n]+img+'</a>';
ol.innerHTML = linkedtoimage;
}So here’s what’s happening…
you upload a photo, you click on it, it SAYS “Linked to image” but if you send to editor, it is NOT linked.
click on it again, it says “Not Linked” and indeed it is not linked.
Here’s where it gets strange. Click a third time and it SAYS “Linked to image” and this time is REALLY IS linked to image! Then every click works properly after that.
So it’s the first click that’s messed up.
Anyone know how to get “Linked to Image” the default choice and have it actually work?
Thanks!
- The topic ‘“Linked to Image” by default’ is closed to new replies.