Version Description
Download this release
Release Info
| Developer | whiteshadow |
| Plugin | |
| Version | 0.5.17 |
| Comparing to | |
| See all releases | |
Code changes from version 0.5.16.1 to 0.5.17
- broken-link-checker.php +1 -1
- core.php +7 -4
- link-classes.php +9 -0
- readme.txt +1 -1
broken-link-checker.php
CHANGED
|
@@ -4,7 +4,7 @@
|
|
| 4 |
Plugin Name: Broken Link Checker
|
| 5 |
Plugin URI: http://w-shadow.com/blog/2007/08/05/broken-link-checker-for-wordpress/
|
| 6 |
Description: Checks your posts for broken links and missing images and notifies you on the dashboard if any are found.
|
| 7 |
-
Version: 0.5.
|
| 8 |
Author: Janis Elsts
|
| 9 |
Author URI: http://w-shadow.com/blog/
|
| 10 |
*/
|
| 4 |
Plugin Name: Broken Link Checker
|
| 5 |
Plugin URI: http://w-shadow.com/blog/2007/08/05/broken-link-checker-for-wordpress/
|
| 6 |
Description: Checks your posts for broken links and missing images and notifies you on the dashboard if any are found.
|
| 7 |
+
Version: 0.5.17
|
| 8 |
Author: Janis Elsts
|
| 9 |
Author URI: http://w-shadow.com/blog/
|
| 10 |
*/
|
core.php
CHANGED
|
@@ -2215,14 +2215,17 @@ jQuery(function($){
|
|
| 2215 |
if ( is_writable( dirname(__FILE__) ) ){
|
| 2216 |
return dirname(__FILE__) . '/wp_blc_lock';
|
| 2217 |
} else {
|
| 2218 |
-
|
| 2219 |
-
|
|
|
|
|
|
|
|
|
|
| 2220 |
if ( $path && is_writable($path)){
|
| 2221 |
return trailingslashit($path) . 'wp_blc_lock';
|
| 2222 |
}
|
| 2223 |
|
| 2224 |
-
//
|
| 2225 |
-
$path =
|
| 2226 |
if ( $path && is_writable($path)){
|
| 2227 |
return trailingslashit($path) . 'wp_blc_lock';
|
| 2228 |
}
|
| 2215 |
if ( is_writable( dirname(__FILE__) ) ){
|
| 2216 |
return dirname(__FILE__) . '/wp_blc_lock';
|
| 2217 |
} else {
|
| 2218 |
+
|
| 2219 |
+
//Try the upload directory. I know it's weird to try the upload dir. before
|
| 2220 |
+
//trying the system-wide /tmp, but trying them in this order *may* fix
|
| 2221 |
+
//open_basedir problems for some users.
|
| 2222 |
+
$path = ini_get('upload_tmp_dir');
|
| 2223 |
if ( $path && is_writable($path)){
|
| 2224 |
return trailingslashit($path) . 'wp_blc_lock';
|
| 2225 |
}
|
| 2226 |
|
| 2227 |
+
//Try the system-wide temp directory
|
| 2228 |
+
$path = sys_get_temp_dir();
|
| 2229 |
if ( $path && is_writable($path)){
|
| 2230 |
return trailingslashit($path) . 'wp_blc_lock';
|
| 2231 |
}
|
link-classes.php
CHANGED
|
@@ -231,6 +231,15 @@ class blcLink {
|
|
| 231 |
$this->final_url = $info['url'];
|
| 232 |
$this->request_duration = $info['total_time'];
|
| 233 |
$this->redirect_count = $info['redirect_count'];
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 234 |
|
| 235 |
curl_close($ch);
|
| 236 |
|
| 231 |
$this->final_url = $info['url'];
|
| 232 |
$this->request_duration = $info['total_time'];
|
| 233 |
$this->redirect_count = $info['redirect_count'];
|
| 234 |
+
|
| 235 |
+
//When safe_mode or open_basedir is enabled CURL will be forbidden from following redirects,
|
| 236 |
+
//so redirect_count will be 0 for all URLs. As a workaround, set it to 1 when the HTTP
|
| 237 |
+
//response codes indicates a redirect but redirect_count is zero.
|
| 238 |
+
//Note to self : Extracting the Location header might also be helpful.
|
| 239 |
+
if ( ($this->redirect_count == 0) && ( in_array( $this->http_code, array(301, 302, 307) ) ) ){
|
| 240 |
+
$this->redirect_count = 1;
|
| 241 |
+
}
|
| 242 |
+
|
| 243 |
|
| 244 |
curl_close($ch);
|
| 245 |
|
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.
|
| 7 |
|
| 8 |
This plugin will check your posts, custom fields and the blogroll for broken links and missing images and notify you 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.17
|
| 7 |
|
| 8 |
This plugin will check your posts, custom fields and the blogroll for broken links and missing images and notify you if any are found.
|
| 9 |
|
