• Hi All,

    I am not sure where else to post this, so I figured that I should post it here. It seems that I have encountered a small bug in WordPress 1.5.

    I typically upload my images for my site via the WP admin panel as opposed to using FTP.

    Once WP says it has uploaded the file, it spits out an HTML code snippet that looks like:

    <img src='/wp-content/content-images//yle_thumb.jpg' alt='' />

    However, in my blog setup, all images are uploaded to /wp-images/content-images/

    Further more, WP seems to be adding an extra / in the path and is not using “” around the attribute values.

    Anyways, it’s not a show-stopper by any means, just something that I noticed.

    Cheers,

    Justin

Viewing 6 replies - 1 through 6 (of 6 total)
  • WordPress 1.5 or 1.5.2? which version are you refering this issue with?

    Thread Starter functionjunkie

    (@functionjunkie)

    Oops… my bad… WP 1.5.2

    Cheers,

    Moderator James Huff

    (@macmanx)

    As far as XHTML is concerned, single quotes are the same as double quotes when used within <a> and <img> tags. So, in this case, the single quotes are just fine. As for the URL issue, check the “Destination directory” and “URI of this directory” in Options/Miscellanious. Like the recommended examples below them, neither should have a trailing slash.

    Yes, single quotes are 110% valid code. And as macmanx said, check your URL to the uploaded files. I suspect you have a trailing slash on it.

    I’ve got the same problem. When I upload an image, I get the HTML to cut & paste, which has a \ at the start. When it’s in the blog, it therefore gets two \ in the URL – so no image.

    Do I need to upgrade WordPress to stop the double \\, or can I tweak something now?
    (I’m planning to upgrade to 2.0 in the New Year, so not overly keen to upgrade now, particularly for something that I can get over just by remembering to delete a \ )

    Thanks.

    Again, check the value for “URI of this directory:” in Options -> Miscellaneous and remove the trailing slash.

    And none of this applies to 2.0. It uses a completely different method for uploads.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Bug in WordPress 1.5’ is closed to new replies.