WordPress.org

Ready to get started?Download WordPress

Forums

WP Links
[resolved] Fix blank space (4 posts)

  1. @vit
    Member
    Posted 1 year ago #

    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/

  2. Jorge A. Gonzalez
    Member
    Plugin Author

    Posted 1 year ago #

    This issue has been fixed in 1.4.

    Thanks @vit!

  3. Jorge A. Gonzalez
    Member
    Plugin Author

    Posted 1 year ago #

    Issue closed.

  4. @vit
    Member
    Posted 1 year ago #

    Jorge, many thanks for plugin!

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.