Version Description
Download this release
Release Info
Developer | whiteshadow |
Plugin | Broken Link Checker |
Version | 0.5.11 |
Comparing to | |
See all releases |
Code changes from version 0.5.10.1 to 0.5.11
- broken-link-checker.php +10 -9
- core.php +1 -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 |
*/
|
@@ -41,8 +41,9 @@ if ( ! defined('BLC_CHECKING') )
|
|
41 |
if ( ! defined('BLC_TIMEOUT') )
|
42 |
define('BLC_TIMEOUT', 0); //The code used for links that timed out and didn't return an actual response.
|
43 |
|
44 |
-
//Load and initialize the plugin's configuration
|
45 |
-
|
|
|
46 |
$blc_config_manager = new blcConfigurationManager(
|
47 |
//Save the plugin's configuration into this DB option
|
48 |
'wsblc_options',
|
@@ -74,16 +75,16 @@ if ( !is_admin() ){
|
|
74 |
//This is user-side request, so the only thing we may need to do is run the broken link highlighter.
|
75 |
if ( $blc_config_manager->options['mark_broken_links'] ){
|
76 |
//Load some utilities (used by the higlighter) and the highlighter itself
|
77 |
-
require 'utility-class.php';
|
78 |
-
require 'highlighter-class.php';
|
79 |
$blc_link_highlighter = new blcLinkHighlighter( $blc_config_manager->options['broken_link_css'] );
|
80 |
}
|
81 |
} else {
|
82 |
//Load everything
|
83 |
-
require 'utility-class.php';
|
84 |
-
require 'instance-classes.php';
|
85 |
-
require 'link-classes.php';
|
86 |
-
require 'core.php';
|
87 |
|
88 |
$ws_link_checker = new wsBrokenLinkChecker( __FILE__ , $blc_config_manager );
|
89 |
}
|
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.11
|
8 |
Author: Janis Elsts
|
9 |
Author URI: http://w-shadow.com/blog/
|
10 |
*/
|
41 |
if ( ! defined('BLC_TIMEOUT') )
|
42 |
define('BLC_TIMEOUT', 0); //The code used for links that timed out and didn't return an actual response.
|
43 |
|
44 |
+
//Load and initialize the plugin's configuration
|
45 |
+
$blc_directory = dirname(__FILE__);
|
46 |
+
require $blc_directory . '/config-manager.php';
|
47 |
$blc_config_manager = new blcConfigurationManager(
|
48 |
//Save the plugin's configuration into this DB option
|
49 |
'wsblc_options',
|
75 |
//This is user-side request, so the only thing we may need to do is run the broken link highlighter.
|
76 |
if ( $blc_config_manager->options['mark_broken_links'] ){
|
77 |
//Load some utilities (used by the higlighter) and the highlighter itself
|
78 |
+
require $blc_directory . '/utility-class.php';
|
79 |
+
require $blc_directory . '/highlighter-class.php';
|
80 |
$blc_link_highlighter = new blcLinkHighlighter( $blc_config_manager->options['broken_link_css'] );
|
81 |
}
|
82 |
} else {
|
83 |
//Load everything
|
84 |
+
require $blc_directory . '/utility-class.php';
|
85 |
+
require $blc_directory . '/instance-classes.php';
|
86 |
+
require $blc_directory . '/link-classes.php';
|
87 |
+
require $blc_directory . '/core.php';
|
88 |
|
89 |
$ws_link_checker = new wsBrokenLinkChecker( __FILE__ , $blc_config_manager );
|
90 |
}
|
core.php
CHANGED
@@ -1,6 +1,7 @@
|
|
1 |
<?php
|
2 |
|
3 |
//The plugin will use Snoopy in case CURL is not available
|
|
|
4 |
if (!class_exists('Snoopy')) require_once(ABSPATH.'/wp-includes/class-snoopy.php');
|
5 |
|
6 |
/**
|
1 |
<?php
|
2 |
|
3 |
//The plugin will use Snoopy in case CURL is not available
|
4 |
+
//TODO: Use WP_HTTP instead of Snoopy
|
5 |
if (!class_exists('Snoopy')) require_once(ABSPATH.'/wp-includes/class-snoopy.php');
|
6 |
|
7 |
/**
|
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.11
|
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 |
|