Version Description
Download this release
Release Info
Developer | whiteshadow |
Plugin | Broken Link Checker |
Version | 0.4.11 |
Comparing to | |
See all releases |
Code changes from version 0.4.10 to 0.4.11
- broken-link-checker.php +6 -3
- readme.txt +2 -2
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.
|
7 |
Author: Janis Elsts
|
8 |
Author URI: http://w-shadow.com/blog/
|
9 |
*/
|
@@ -23,7 +23,7 @@ class ws_broken_link_checker {
|
|
23 |
var $options_name='wsblc_options';
|
24 |
var $postdata_name;
|
25 |
var $linkdata_name;
|
26 |
-
var $version='0.4.
|
27 |
var $myfile='';
|
28 |
var $myfolder='';
|
29 |
var $mybasename='';
|
@@ -246,8 +246,11 @@ class ws_broken_link_checker {
|
|
246 |
|
247 |
$ch = curl_init();
|
248 |
curl_setopt($ch, CURLOPT_URL, $url);
|
|
|
249 |
curl_setopt($ch, CURLOPT_USERAGENT, 'Mozilla/4.0 (compatible; MSIE 5.01; Windows NT 5.0)');
|
250 |
-
//
|
|
|
|
|
251 |
curl_setopt($ch, CURLOPT_RETURNTRANSFER,1);
|
252 |
|
253 |
@curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1);
|
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.11
|
7 |
Author: Janis Elsts
|
8 |
Author URI: http://w-shadow.com/blog/
|
9 |
*/
|
23 |
var $options_name='wsblc_options';
|
24 |
var $postdata_name;
|
25 |
var $linkdata_name;
|
26 |
+
var $version='0.4.11';
|
27 |
var $myfile='';
|
28 |
var $myfolder='';
|
29 |
var $mybasename='';
|
246 |
|
247 |
$ch = curl_init();
|
248 |
curl_setopt($ch, CURLOPT_URL, $url);
|
249 |
+
//Masquerade as Internet explorer
|
250 |
curl_setopt($ch, CURLOPT_USERAGENT, 'Mozilla/4.0 (compatible; MSIE 5.01; Windows NT 5.0)');
|
251 |
+
//Add a semi-plausible referer header to avoid tripping up some bot traps
|
252 |
+
curl_setopt($ch, CURLOPT_REFERER, get_option('home'));
|
253 |
+
|
254 |
curl_setopt($ch, CURLOPT_RETURNTRANSFER,1);
|
255 |
|
256 |
@curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1);
|
readme.txt
CHANGED
@@ -2,8 +2,8 @@
|
|
2 |
Contributors: whiteshadow
|
3 |
Tags: links, broken, maintenance
|
4 |
Requires at least: 2.0.2
|
5 |
-
Tested up to: 2.
|
6 |
-
Stable tag: 0.4.
|
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 |
|
2 |
Contributors: whiteshadow
|
3 |
Tags: links, broken, maintenance
|
4 |
Requires at least: 2.0.2
|
5 |
+
Tested up to: 2.7.1
|
6 |
+
Stable tag: 0.4.11
|
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 |
|