sketchbunny
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: When is image “description” ever used?Christiaan: No, this probably won’t be considered a bug. It looks like the developers purposely changed how the “description” is used, at least in this version. I liked the old style, so I made this fix.
Forum: Fixing WordPress
In reply to: When is image “description” ever used?Sorry, please disregard my first post. I actually had to change a lot of other things in inline-uploading.php to get it to work properly. Here are all the changes.
Line 143:
$attachments = $wpdb->get_results("SELECT ID, post_date, post_title,
…
Add post_content to the list between post_date and post_title.Line 243:
Find the line
$title = wp_specialchars($image['post_title'], ENT_QUOTES);
After this line, add the following line:
$descr = wp_specialchars($image['post_content'], ENT_QUOTES);
Around line 247:
Make this change for the two lines that begin withimga[{$ID}]
and withimgb[{$ID}]
. Replacealt=\"{$title}\"
, withalt=\"{$descr}\" title=\"{$title}\"
or whatever change you wanted to make.Around line 252:
Make the same change as above. It should look like
<div id='div{$ID}' class='imagewrap' onclick=\"doPopup({$ID});\">
<img id=\"image{$ID}\" src=\"$src\" alt=\"{$descr}\" title=\"{$title}\" $height_width />
</div>Forum: Fixing WordPress
In reply to: Title attribute missingSorry, please disregard my first post. I actually had to change a lot of other things in inline-uploading.php to get it to work properly. Here are all the changes.
Line 143:
$attachments = $wpdb->get_results("SELECT ID, post_date, post_title,
…
Add post_content to the list between post_date and post_title.Line 243:
Find the line
$title = wp_specialchars($image['post_title'], ENT_QUOTES);
After this line, add the following line:
$descr = wp_specialchars($image['post_content'], ENT_QUOTES);
Around line 247:
Make this change for the two lines that begin withimga[{$ID}]
and withimgb[{$ID}]
. Replacealt=\"{$title}\"
, withalt=\"{$descr}\" title=\"{$title}\"
or whatever change you wanted to make.Around line 252:
Make the same change as above. It should look like
<div id='div{$ID}' class='imagewrap' onclick=\"doPopup({$ID});\">
<img id=\"image{$ID}\" src=\"$src\" alt=\"{$descr}\" title=\"{$title}\" $height_width />
</div>Forum: Fixing WordPress
In reply to: When is image “description” ever used?You have to edit inline-uploading.php (in your wp-admin folder). Go to around line 251, and find the line that says
<img id=\"image{$ID}\" src=\"$src\" alt=\"{$title}\" $height_width />
Change this line to
<img id=\"image{$ID}\" src=\"$src\" alt=\"{$descr}\" title=\"{$title}\" $height_width />
This should take effect the next time you upload something. Unfortunately, the change won’t apply to anything you’ve already uploaded, because the HTML is already stored in your database.
Forum: Fixing WordPress
In reply to: Title attribute missingYou have to edit inline-uploading.php (in your wp-admin folder). Go to around line 251, and find the line that says
<img id=\"image{$ID}\" src=\"$src\" alt=\"{$title}\" $height_width />
Change this line to
<img id=\"image{$ID}\" src=\"$src\" alt=\"{$descr}\" title=\"{$title}\" $height_width />
This should take effect the next time you upload something. Unfortunately, the change won’t apply to anything you’ve already uploaded, because the HTML is already stored in your database.