Support » Plugins » WP-Print links in print template are missing slash

  • The internal links to other pages in my WP install are built without a slash between the baseurl and the pageurl. This is how I fixed it in wp-print.php, starting on line 239:

    if(stristr($link_url, 'https://')) {
      $link_url =(strtolower(substr($link_url,0,8)) != 'https://') ?get_option('home') .'/'.$link_url : '/'.$link_url;
    } else if( stristr($link_url, 'mailto:')) {
      $link_url =(strtolower(substr($link_url,0,7)) != 'mailto:') ?get_option('home') . '/'.$link_url : '/'.$link_url;
    } else if( $link_url[0] == '#' ) {
      $link_url = $link_url;
    } else {
      $link_url =(strtolower(substr($link_url,0,7)) != 'http://') ?get_option('home') . '/'.$link_url : '/'.$link_url;
    }

  • The topic ‘WP-Print links in print template are missing slash’ is closed to new replies.