Broken Link Checker - Version 0.4.7

Version Description

Download this release

Release Info

Developer whiteshadow
Plugin Icon 128x128 Broken Link Checker
Version 0.4.7
Comparing to
See all releases

Code changes from version 0.4.6 to 0.4.7

Files changed (3) hide show
  1. broken-link-checker.php +5 -3
  2. readme.txt +1 -1
  3. wsblc_ajax.php +8 -1
broken-link-checker.php CHANGED
@@ -3,7 +3,7 @@
3
  Plugin Name: Broken Link Checker
4
  Plugin URI: http://w-shadow.com/blog/2007/08/05/broken-link-checker-for-wordpress/
5
  Description: Checks your posts for broken links and missing images and notifies you on the dashboard if any are found.
6
- Version: 0.4.6
7
  Author: Janis Elsts
8
  Author URI: http://w-shadow.com/blog/
9
  */
@@ -20,7 +20,7 @@ class ws_broken_link_checker {
20
  var $options_name='wsblc_options';
21
  var $postdata_name;
22
  var $linkdata_name;
23
- var $version='0.4.6';
24
  var $myfile='';
25
  var $myfolder='';
26
  var $mybasename='';
@@ -539,7 +539,7 @@ class ws_broken_link_checker {
539
 
540
  <td>$link->link_text</td>
541
  <td>
542
- <a href='$link->url'>".$this->mytruncate($link->url)."</a>
543
  | <a href='javascript:editBrokenLink($link->id, \"$link->url\")'
544
  id='link-editor-button-$link->id'>Edit</a>
545
  <br />
@@ -631,6 +631,8 @@ class ws_broken_link_checker {
631
  function editBrokenLink(link_id, orig_link){
632
  if ($('link-editor-button-'+link_id).innerHTML == 'Edit'){
633
  $('link-editor-'+link_id).show();
 
 
634
  $('link-editor-button-'+link_id).innerHTML = 'Save';
635
  } else {
636
  $('link-editor-'+link_id).hide();
3
  Plugin Name: Broken Link Checker
4
  Plugin URI: http://w-shadow.com/blog/2007/08/05/broken-link-checker-for-wordpress/
5
  Description: Checks your posts for broken links and missing images and notifies you on the dashboard if any are found.
6
+ Version: 0.4.7
7
  Author: Janis Elsts
8
  Author URI: http://w-shadow.com/blog/
9
  */
20
  var $options_name='wsblc_options';
21
  var $postdata_name;
22
  var $linkdata_name;
23
+ var $version='0.4.7';
24
  var $myfile='';
25
  var $myfolder='';
26
  var $mybasename='';
539
 
540
  <td>$link->link_text</td>
541
  <td>
542
+ <a href='$link->url' target='_blank'>".$this->mytruncate($link->url)."</a>
543
  | <a href='javascript:editBrokenLink($link->id, \"$link->url\")'
544
  id='link-editor-button-$link->id'>Edit</a>
545
  <br />
631
  function editBrokenLink(link_id, orig_link){
632
  if ($('link-editor-button-'+link_id).innerHTML == 'Edit'){
633
  $('link-editor-'+link_id).show();
634
+ $('link-editor-'+link_id).focus();
635
+ $('link-editor-'+link_id).select();
636
  $('link-editor-button-'+link_id).innerHTML = 'Save';
637
  } else {
638
  $('link-editor-'+link_id).hide();
readme.txt CHANGED
@@ -3,7 +3,7 @@ Contributors: whiteshadow
3
  Tags: links, broken, maintenance
4
  Requires at least: 2.0.2
5
  Tested up to: 2.6.1
6
- Stable tag: 0.4.6
7
 
8
  This plugin will check your posts for broken links and missing images in background and notify you on the dashboard if any are found.
9
 
3
  Tags: links, broken, maintenance
4
  Requires at least: 2.0.2
5
  Tested up to: 2.6.1
6
+ Stable tag: 0.4.7
7
 
8
  This plugin will check your posts for broken links and missing images in background and notify you on the dashboard if any are found.
9
 
wsblc_ajax.php CHANGED
@@ -308,7 +308,14 @@
308
  $parts=parse_url($url);
309
  if(!$parts) return false;
310
 
311
- if(!isset($parts['scheme'])) $url='http://'.$url;
 
 
 
 
 
 
 
312
 
313
  $ch = curl_init();
314
  curl_setopt($ch, CURLOPT_URL, $url);
308
  $parts=parse_url($url);
309
  if(!$parts) return false;
310
 
311
+ if(!isset($parts['scheme'])) {
312
+ $url='http://'.$url;
313
+ $parts['scheme'] = 'http';
314
+ }
315
+
316
+ //Only HTTP links are checked. All others are automatically considered okay.
317
+ if ( ($parts['scheme'] != 'http') && ($parts['scheme'] != 'https') )
318
+ return true;
319
 
320
  $ch = curl_init();
321
  curl_setopt($ch, CURLOPT_URL, $url);