Version Description
August 7th, 2016
- Changed permissions for generated files to avoid hosting conflicts like Hostgator.
- Fixed crawling process issues when running on HTTPS sites with or without valid certificate.
Download this release
Release Info
Developer | seedplugins |
Plugin | WP Broken Link Status Checker |
Version | 1.0.3 |
Comparing to | |
See all releases |
Code changes from version 1.0.2 to 1.0.3
- core/curl.php +12 -0
- core/nonce/nonce.php +1 -1
- core/requests/http.php +0 -10
- readme.txt +12 -2
- wp-link-status.php +2 -2
core/curl.php
CHANGED
@@ -73,6 +73,18 @@ class WPLNST_Core_CURL {
|
|
73 |
return $response;
|
74 |
}
|
75 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
76 |
// Apply options
|
77 |
foreach ($setopts as $name => $value) {
|
78 |
if (defined($name))
|
73 |
return $response;
|
74 |
}
|
75 |
|
76 |
+
// IP resolve options
|
77 |
+
if (!isset($setopts['CURLOPT_IPRESOLVE']) && defined('CURL_IPRESOLVE_V4'))
|
78 |
+
$setopts['CURLOPT_IPRESOLVE'] = CURL_IPRESOLVE_V4;
|
79 |
+
|
80 |
+
// HTTPS checks
|
81 |
+
if (!empty($setopts['CURLOPT_URL']) && 0 === strpos($setopts['CURLOPT_URL'], 'https')) {
|
82 |
+
if (!isset($setopts['CURLOPT_IPRESOLVE']))
|
83 |
+
$setopts['CURLOPT_SSL_VERIFYHOST'] = false;
|
84 |
+
if (!isset($setopts['CURLOPT_SSL_VERIFYPEER']))
|
85 |
+
$setopts['CURLOPT_SSL_VERIFYPEER'] = false;
|
86 |
+
}
|
87 |
+
|
88 |
// Apply options
|
89 |
foreach ($setopts as $name => $value) {
|
90 |
if (defined($name))
|
core/nonce/nonce.php
CHANGED
@@ -145,7 +145,7 @@ class WPLNST_Core_Nonce {
|
|
145 |
if (!@is_writable(dirname($path)))
|
146 |
return false;
|
147 |
$result = @file_put_contents($path, "<?php /* Generated by WP Link Status: PLEASE DO NOT REMOVE OR MODIFY THIS FILE */"."\n"."define('WPLNST_SALT', '".self::generate_password(64, false, false)."');");
|
148 |
-
@chmod($path,
|
149 |
return (false !== $result && @file_exists($path) && @is_readable($path));
|
150 |
}
|
151 |
|
145 |
if (!@is_writable(dirname($path)))
|
146 |
return false;
|
147 |
$result = @file_put_contents($path, "<?php /* Generated by WP Link Status: PLEASE DO NOT REMOVE OR MODIFY THIS FILE */"."\n"."define('WPLNST_SALT', '".self::generate_password(64, false, false)."');");
|
148 |
+
@chmod($path, 0644);
|
149 |
return (false !== $result && @file_exists($path) && @is_readable($path));
|
150 |
}
|
151 |
|
core/requests/http.php
CHANGED
@@ -109,16 +109,6 @@ class WPLNST_Core_HTTP_Request {
|
|
109 |
'CURLOPT_WRITEFUNCTION' => 'wplnst_http_read_stream',
|
110 |
);
|
111 |
|
112 |
-
// IP resolve options
|
113 |
-
if (defined('CURL_IPRESOLVE_V4'))
|
114 |
-
$curlopts['CURLOPT_IPRESOLVE'] = CURL_IPRESOLVE_V4;
|
115 |
-
|
116 |
-
// HTTPS checks
|
117 |
-
if (0 === strpos($url, 'https')) {
|
118 |
-
$curlopts['CURLOPT_SSL_VERIFYHOST'] = false;
|
119 |
-
$curlopts['CURLOPT_SSL_VERIFYPEER'] = false;
|
120 |
-
}
|
121 |
-
|
122 |
// Do the request
|
123 |
$response = WPLNST_Core_CURL::request($curlopts, array('CURLINFO_HEADER_OUT', 'CURLINFO_TOTAL_TIME', 'CURLINFO_SIZE_DOWNLOAD', 'CURLINFO_HEADER_SIZE'));
|
124 |
|
109 |
'CURLOPT_WRITEFUNCTION' => 'wplnst_http_read_stream',
|
110 |
);
|
111 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
112 |
// Do the request
|
113 |
$response = WPLNST_Core_CURL::request($curlopts, array('CURLINFO_HEADER_OUT', 'CURLINFO_TOTAL_TIME', 'CURLINFO_SIZE_DOWNLOAD', 'CURLINFO_HEADER_SIZE'));
|
114 |
|
readme.txt
CHANGED
@@ -2,8 +2,8 @@
|
|
2 |
Contributors: seedplugins, pauiglesias
|
3 |
Tags: broken links, broken, links, crawler, headers, http, nofollow, redirections, scan, status, checker, url
|
4 |
Requires at least: 3.4
|
5 |
-
Tested up to: 4.
|
6 |
-
Stable tag: 1.0.
|
7 |
License: GPLv2 or later
|
8 |
|
9 |
Link checker of all your content links and images, looking for broken links, check link redirections, warn of nofollow links, etc.
|
@@ -55,6 +55,10 @@ The crawler module works submitting HTTP requests through internal plugin script
|
|
55 |
|
56 |
In the same way, if the site you are crawling implements browser password protection, you need to remove this password restriction in order to work properly.
|
57 |
|
|
|
|
|
|
|
|
|
58 |
= This plugin works for ACF or Advanced Custom Fields as well? =
|
59 |
|
60 |
Yes, at the end ACF works the same way that normal custom fields.
|
@@ -73,6 +77,12 @@ You can add the custom field name in the "Content options" tab of the scan, sele
|
|
73 |
|
74 |
== Changelog ==
|
75 |
|
|
|
|
|
|
|
|
|
|
|
|
|
76 |
= 1.0.2 =
|
77 |
May 30th, 2016
|
78 |
|
2 |
Contributors: seedplugins, pauiglesias
|
3 |
Tags: broken links, broken, links, crawler, headers, http, nofollow, redirections, scan, status, checker, url
|
4 |
Requires at least: 3.4
|
5 |
+
Tested up to: 4.6
|
6 |
+
Stable tag: 1.0.3
|
7 |
License: GPLv2 or later
|
8 |
|
9 |
Link checker of all your content links and images, looking for broken links, check link redirections, warn of nofollow links, etc.
|
55 |
|
56 |
In the same way, if the site you are crawling implements browser password protection, you need to remove this password restriction in order to work properly.
|
57 |
|
58 |
+
= I have activated this plugin from a multisite but seems that it does not work.
|
59 |
+
|
60 |
+
Currently there is no support for network activation in multisite installs. The plugin needs to be activated locally for each single blog of your multisite. Otherwise, it is advisable to run only one scan at the same time per each blog or web server.
|
61 |
+
|
62 |
= This plugin works for ACF or Advanced Custom Fields as well? =
|
63 |
|
64 |
Yes, at the end ACF works the same way that normal custom fields.
|
77 |
|
78 |
== Changelog ==
|
79 |
|
80 |
+
= 1.0.3 =
|
81 |
+
August 7th, 2016
|
82 |
+
|
83 |
+
* Changed permissions for generated files to avoid hosting conflicts like Hostgator.
|
84 |
+
* Fixed crawling process issues when running on HTTPS sites with or without valid certificate.
|
85 |
+
|
86 |
= 1.0.2 =
|
87 |
May 30th, 2016
|
88 |
|
wp-link-status.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
Plugin Name: WP Broken Link Status Checker
|
4 |
Plugin URI: http://seedplugins.com/wp-link-status/
|
5 |
Description: Check and manage HTTP response codes of all your content site links and images.
|
6 |
-
Version: 1.0.
|
7 |
Author: Pau Iglesias, SeedPlugins
|
8 |
License: GPLv2 or later
|
9 |
Text Domain: wplnst
|
@@ -20,7 +20,7 @@ require(dirname(__FILE__).'/core/boot.php');
|
|
20 |
// This plugin constants
|
21 |
define('WPLNST_FILE', __FILE__);
|
22 |
define('WPLNST_PATH', dirname(WPLNST_FILE));
|
23 |
-
define('WPLNST_VERSION', '1.0.
|
24 |
|
25 |
// Check scan crawling action
|
26 |
require_once(WPLNST_PATH.'/core/alive.php');
|
3 |
Plugin Name: WP Broken Link Status Checker
|
4 |
Plugin URI: http://seedplugins.com/wp-link-status/
|
5 |
Description: Check and manage HTTP response codes of all your content site links and images.
|
6 |
+
Version: 1.0.3
|
7 |
Author: Pau Iglesias, SeedPlugins
|
8 |
License: GPLv2 or later
|
9 |
Text Domain: wplnst
|
20 |
// This plugin constants
|
21 |
define('WPLNST_FILE', __FILE__);
|
22 |
define('WPLNST_PATH', dirname(WPLNST_FILE));
|
23 |
+
define('WPLNST_VERSION', '1.0.3');
|
24 |
|
25 |
// Check scan crawling action
|
26 |
require_once(WPLNST_PATH.'/core/alive.php');
|