Version Description
Download this release
Release Info
| Developer | whiteshadow |
| Plugin | |
| Version | 0.3.4 |
| Comparing to | |
| See all releases | |
Code changes from version 0.3.3 to 0.3.4
- broken-link-checker.php +4 -3
- readme.txt +1 -1
- wsblc_ajax.php +3 -0
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.3.
|
| 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.3.
|
| 24 |
var $myfile='';
|
| 25 |
var $myfolder='';
|
| 26 |
var $mybasename='';
|
|
@@ -122,8 +122,9 @@ class ws_broken_link_checker {
|
|
| 122 |
),
|
| 123 |
array('','','&','',''),
|
| 124 |
$url);
|
| 125 |
-
|
| 126 |
$url=trim($url);
|
|
|
|
|
|
|
| 127 |
if($url=='') return false;
|
| 128 |
|
| 129 |
// turn relative URLs into absolute URLs
|
| 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.3.4
|
| 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.3.4';
|
| 24 |
var $myfile='';
|
| 25 |
var $myfolder='';
|
| 26 |
var $mybasename='';
|
| 122 |
),
|
| 123 |
array('','','&','',''),
|
| 124 |
$url);
|
|
|
|
| 125 |
$url=trim($url);
|
| 126 |
+
|
| 127 |
+
if (strpos($url, 'mailto:')!==false) return false;
|
| 128 |
if($url=='') return false;
|
| 129 |
|
| 130 |
// turn relative URLs into absolute URLs
|
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.3.3
|
| 6 |
-
Stable tag: 0.3.
|
| 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.3.3
|
| 6 |
+
Stable tag: 0.3.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 |
|
wsblc_ajax.php
CHANGED
|
@@ -219,6 +219,9 @@
|
|
| 219 |
//gather links (<a href=...>)
|
| 220 |
global $url_pattern;
|
| 221 |
|
|
|
|
|
|
|
|
|
|
| 222 |
if(preg_match_all($url_pattern, $content, $matches, PREG_SET_ORDER)){
|
| 223 |
foreach($matches as $link){
|
| 224 |
parse_link($link, $post_id);
|
| 219 |
//gather links (<a href=...>)
|
| 220 |
global $url_pattern;
|
| 221 |
|
| 222 |
+
//remove all <code></code> blocks first
|
| 223 |
+
$content = preg_replace('/<code>.+?<\/code>/i', ' ', $content);
|
| 224 |
+
|
| 225 |
if(preg_match_all($url_pattern, $content, $matches, PREG_SET_ORDER)){
|
| 226 |
foreach($matches as $link){
|
| 227 |
parse_link($link, $post_id);
|
