• Resolved vralle

    (@vit-1)


    Hi!
    Very useful pluggin.

    V.1.3 does not add a space between src and next attribute.
    source:
    <class=”alingcenter” src=”ext_link”>
    after plugin:
    <src=”ext_link”class=”alingcenter” target=”_blank”>
    small fix:
    add a space after second quote:

    if (get_option("WPLINKS-nofollow")) return '<a href="' . $matches[2] . '//' . $matches[3] . '" ' . $matches[1] . $matches[4] . ' target="_blank" rel="external nofollow">' . $matches[5] . '</a>';
            else return '<a href="' . $matches[2] . '//' . $matches[3] . '" ' . $matches[1] . $matches[4] . ' target="_blank">' . $matches[5] . '</a>';
    	} else {
    		return '<a href="' . $matches[2] . '//' . $matches[3] . '" ' . $matches[1] . $matches[4] . '>' . $matches[5] . '</a>';

    With regards!

    http://wordpress.org/extend/plugins/wp-links/

Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Fix blank space’ is closed to new replies.