• Hiya,

    Thanks for this plugin. Please find the below fixes as a compliment to your plugin. Hope they make it into the next version. Line numbers based on the current version 1.31

    Hope this helps!

    Smile,
    Juliette

    **************************

    File: class-wp-external-links.php

    Find line 331-333:

    $original_head = $matches[ 0 ];
    $content = str_replace( $original_head, $clean_head, $content );

    Replace with:

    if( count( $matches ) > 0 ) {
    	$original_head = $matches[ 0 ];
    	$content = str_replace( $original_head, $clean_head, $content );
    }

    Find line 392-393:

    // recover original <head> with attributes
    $content = str_replace( $clean_head, $original_head, $content );

    Replace with:

    if( isset( $original_head ) ) {
    	// recover original <head> with attributes
    	$content = str_replace( $clean_head, $original_head, $content );
    }

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

Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘[Bugs fix] Two small code errors’ is closed to new replies.