Broken Link Checker - Version 0.5.4

Version Description

Download this release

Release Info

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

Code changes from version 0.5.3 to 0.5.4

Files changed (4) hide show
  1. broken-link-checker.php +1 -1
  2. link-classes.php +1 -2
  3. readme.txt +1 -1
  4. uninstall.php +10 -9
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.5.3
7
  Author: Janis Elsts
8
  Author URI: http://w-shadow.com/blog/
9
  */
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.5.4
7
  Author: Janis Elsts
8
  Author URI: http://w-shadow.com/blog/
9
  */
link-classes.php CHANGED
@@ -153,7 +153,7 @@ class blcLink {
153
 
154
  curl_setopt($ch, CURLOPT_RETURNTRANSFER,1);
155
 
156
- @curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1);
157
  curl_setopt($ch, CURLOPT_MAXREDIRS, 10);
158
 
159
  curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, 20);
@@ -269,7 +269,6 @@ class blcLink {
269
  }
270
 
271
  function read_header($ch, $header){
272
- //extracting example data: filename from header field Content-Disposition
273
  $this->last_headers .= $header;
274
  return strlen($header);
275
  }
153
 
154
  curl_setopt($ch, CURLOPT_RETURNTRANSFER,1);
155
 
156
+ @curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true);
157
  curl_setopt($ch, CURLOPT_MAXREDIRS, 10);
158
 
159
  curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, 20);
269
  }
270
 
271
  function read_header($ch, $header){
 
272
  $this->last_headers .= $header;
273
  return strlen($header);
274
  }
readme.txt CHANGED
@@ -3,7 +3,7 @@ Contributors: whiteshadow
3
  Tags: links, broken, maintenance, blogroll, custom fields, admin
4
  Requires at least: 2.7.0
5
  Tested up to: 2.9
6
- Stable tag: 0.5.3
7
 
8
  This plugin will check your posts, custom fields and the blogroll for broken links and missing images and notify you on the dashboard if any are found.
9
 
3
  Tags: links, broken, maintenance, blogroll, custom fields, admin
4
  Requires at least: 2.7.0
5
  Tested up to: 2.9
6
+ Stable tag: 0.5.4
7
 
8
  This plugin will check your posts, custom fields and the blogroll for broken links and missing images and notify you on the dashboard if any are found.
9
 
uninstall.php CHANGED
@@ -7,16 +7,17 @@
7
  * The terrifying uninstallation script.
8
  */
9
 
10
- if( !defined( 'ABSPATH') && !defined('WP_UNINSTALL_PLUGIN') && !current_user_can('delete_plugins') )
11
- exit();
12
-
13
- if( !isset($wpdb) )
14
- exit();
15
 
16
- //Remove the plugin's settings
17
- delete_option('wsblc_options');
18
 
19
- //EXTERMINATE!
20
- $wpdb->query( "DROP TABLE IF EXISTS {$wpdb->prefix}blc_linkdata, {$wpdb->prefix}blc_postdata, {$wpdb->prefix}blc_instances, {$wpdb->prefix}blc_links, {$wpdb->prefix}blc_synch" );
 
 
 
 
 
21
 
22
  ?>
7
  * The terrifying uninstallation script.
8
  */
9
 
10
+ if( defined( 'ABSPATH') && defined('WP_UNINSTALL_PLUGIN') ) {
 
 
 
 
11
 
12
+ //Remove the plugin's settings
13
+ delete_option('wsblc_options');
14
 
15
+ //Remove the database tables
16
+ $mywpdb = $GLOBALS['wpdb'];
17
+ if( isset($mywpdb) ) {
18
+ //EXTERMINATE!
19
+ $mywpdb->query( "DROP TABLE IF EXISTS {$mywpdb->prefix}blc_linkdata, {$mywpdb->prefix}blc_postdata, {$mywpdb->prefix}blc_instances, {$mywpdb->prefix}blc_links, {$mywpdb->prefix}blc_synch" );
20
+ }
21
+ }
22
 
23
  ?>