Forum Replies Created

Viewing 7 replies - 1 through 7 (of 7 total)
  • Thank you @girish,

    The blank anchor is now gone, I took a peak to the code too and it’s working as it is supposed to.

    garyupham is right, I’m experiencing the same problem, when you leave the “Image URL” field black you still gets and anchor tag on your output HTML, the problem is located on function.php line 117.

    if (!empty($slideText) && filter_var($slideText, FILTER_VALIDATE_URL) !== false) {
      $value = "<a href='".$slideText."' target='".$target."'>".$value."</a>";
    } else {
      $value = "<a href='".slideText."'>".$value."</a>"; // we always get an <a> :(
    }

    The code should be as follow so the anchor tag is only included if $slideText is not empty.

    if (!empty($slideText)) {
      $value = '<a href="' . slideText . '"';
      if (filter_var($slideText, FILTER_VALIDATE_URL) !== false) {
        $value .= ' target="' . $target . '"';
      }
      $value .= '>' . $value . '</a>';
    }

    Thank you so much for your hard work, I hope this helps.

    Thread Starter altrugon

    (@altrugon)

    Rudolf45 that is a great solution when you are the only one that access to the blog, but it doesn’t work very well when you have more people posting, or even worst editing the post that you already have created.

    I hope this bug be fixed soon, it’s insane going post by post searching for bad code.

    Thread Starter altrugon

    (@altrugon)

    I also have seen that the code is totally “write” wrong when you try to validate your blog. I was going through the W3C xhtml validator and pices of code like this one

    ...
    <option value="1">1</option>
    <option value="2">2</option>
    ...

    It was being “reading” like this

    ...
    <option value="1">1</option><br/>
    <option value="2">2</option><br/>
    ...

    I don’t mind to use the code window, but at least I want my code exactly in the way that I type it.

    altrugon

    (@altrugon)

    This is crazy, I’ve been reading lines and lines of commets in the forurm about the problem with the div and the paragraph in the visual editor since Ella (WP 2.1) was launched, and the problem IS NOT FIXED YET!.

    Please can anybody tell me how to fix this problem. I’m fed up of visiting old posts to fix the code because people are editing them with the visual editor on. Yes, I can use the code editor, but not everybody fell comfortable using it.

    I added the “magic” line below line 66 in wp-includes/formatting.php as say this track, I changed the line 25 as was commented here by silence226, and nothing of that solve my problem because in one way or another my code is allways altered.

    I hope somebody can help me with this bug.

    Thanks

    Thread Starter altrugon

    (@altrugon)

    hehe 😛 I guess I worked to much that night. I can’t beleive I even didn’t try to google that.

    Thanks anyway.

    altrugon

    (@altrugon)

    Take a look here

    http://www.altrugon.com/spanish/wp_plugins.php

    The readme file is in english, just in case.

Viewing 7 replies - 1 through 7 (of 7 total)