Version Description
- Fixed a minor bug where the plugin would display an incorrect number of links in the "Displaying x-y of z" label when the user moves to a different page of the results.
- Added Ukrainian translation.
Download this release
Release Info
| Developer | whiteshadow |
| Plugin | |
| Version | 0.7.4 |
| Comparing to | |
| See all releases | |
Code changes from version 0.7.3 to 0.7.4
- broken-link-checker.php +2 -3
- core.php +14 -12
- languages/broken-link-checker-uk_UK.mo +0 -0
- readme.txt +6 -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.7.
|
| 8 |
Author: Janis Elsts
|
| 9 |
Author URI: http://w-shadow.com/blog/
|
| 10 |
Text Domain: broken-link-checker
|
|
@@ -15,10 +15,9 @@ Created by Janis Elsts (email : whiteshadow@w-shadow.com)
|
|
| 15 |
MySQL 4.0 compatibility by Jeroen (www.yukka.eu)
|
| 16 |
*/
|
| 17 |
|
| 18 |
-
define('BLC_DEBUG', false);
|
| 19 |
-
|
| 20 |
/*
|
| 21 |
//FirePHP for debugging
|
|
|
|
| 22 |
if ( !class_exists('FB') ) {
|
| 23 |
require_once 'FirePHPCore/fb.php4';
|
| 24 |
}
|
| 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.7.4
|
| 8 |
Author: Janis Elsts
|
| 9 |
Author URI: http://w-shadow.com/blog/
|
| 10 |
Text Domain: broken-link-checker
|
| 15 |
MySQL 4.0 compatibility by Jeroen (www.yukka.eu)
|
| 16 |
*/
|
| 17 |
|
|
|
|
|
|
|
| 18 |
/*
|
| 19 |
//FirePHP for debugging
|
| 20 |
+
define('BLC_DEBUG', true);
|
| 21 |
if ( !class_exists('FB') ) {
|
| 22 |
require_once 'FirePHPCore/fb.php4';
|
| 23 |
}
|
core.php
CHANGED
|
@@ -387,7 +387,7 @@ class wsBrokenLinkChecker {
|
|
| 387 |
KEY link_id (link_id),
|
| 388 |
KEY source_id (source_id,source_type),
|
| 389 |
FULLTEXT KEY link_text (link_text)
|
| 390 |
-
)";
|
| 391 |
dbDelta($q);
|
| 392 |
|
| 393 |
//Create the synchronization table
|
|
@@ -1252,7 +1252,7 @@ class wsBrokenLinkChecker {
|
|
| 1252 |
echo '<div class="tablenav-pages">';
|
| 1253 |
$page_links_text = sprintf( '<span class="displaying-num">' . __( 'Displaying %s–%s of <span class="current-link-count">%s</span>', 'broken-link-checker' ) . '</span>%s',
|
| 1254 |
number_format_i18n( ( $page - 1 ) * $per_page + 1 ),
|
| 1255 |
-
number_format_i18n( min( $page * $per_page, count
|
| 1256 |
number_format_i18n( $current_filter['count'] ),
|
| 1257 |
$page_links
|
| 1258 |
);
|
|
@@ -1428,7 +1428,7 @@ class wsBrokenLinkChecker {
|
|
| 1428 |
echo '<div class="tablenav"><div class="tablenav-pages">';
|
| 1429 |
$page_links_text = sprintf( '<span class="displaying-num">' . __( 'Displaying %s–%s of <span class="current-link-count">%s</span>', 'broken-link-checker' ) . '</span>%s',
|
| 1430 |
number_format_i18n( ( $page - 1 ) * $per_page + 1 ),
|
| 1431 |
-
number_format_i18n( min( $page * $per_page, count
|
| 1432 |
number_format_i18n( $current_filter['count'] ),
|
| 1433 |
$page_links
|
| 1434 |
);
|
|
@@ -1549,7 +1549,7 @@ jQuery(function($){
|
|
| 1549 |
url_el.attr('href', new_url);
|
| 1550 |
|
| 1551 |
if ( data.cnt_error > 0 ){
|
| 1552 |
-
//TODO:
|
| 1553 |
var msg = "The link was successfully modifed.";
|
| 1554 |
msg = msg + "\nHowever, "+data.cnt_error+" instances couldn't be edited and still point to the old URL."
|
| 1555 |
alert(msg);
|
|
@@ -2106,14 +2106,16 @@ div.search-box{
|
|
| 2106 |
//This reduces resource usage and may solve the mysterious slowdowns certain users have
|
| 2107 |
//encountered when activating the plugin.
|
| 2108 |
//(Comment out when debugging or you won't get the FirePHP output)
|
| 2109 |
-
|
| 2110 |
-
|
| 2111 |
-
|
| 2112 |
-
|
| 2113 |
-
|
| 2114 |
-
|
| 2115 |
-
|
| 2116 |
-
|
|
|
|
|
|
|
| 2117 |
|
| 2118 |
$check_threshold = date('Y-m-d H:i:s', strtotime('-'.$this->conf->options['check_threshold'].' hours'));
|
| 2119 |
$recheck_threshold = date('Y-m-d H:i:s', strtotime('-20 minutes'));
|
| 387 |
KEY link_id (link_id),
|
| 388 |
KEY source_id (source_id,source_type),
|
| 389 |
FULLTEXT KEY link_text (link_text)
|
| 390 |
+
) ENGINE = MYISAM";
|
| 391 |
dbDelta($q);
|
| 392 |
|
| 393 |
//Create the synchronization table
|
| 1252 |
echo '<div class="tablenav-pages">';
|
| 1253 |
$page_links_text = sprintf( '<span class="displaying-num">' . __( 'Displaying %s–%s of <span class="current-link-count">%s</span>', 'broken-link-checker' ) . '</span>%s',
|
| 1254 |
number_format_i18n( ( $page - 1 ) * $per_page + 1 ),
|
| 1255 |
+
number_format_i18n( min( $page * $per_page, $current_filter['count'] ) ),
|
| 1256 |
number_format_i18n( $current_filter['count'] ),
|
| 1257 |
$page_links
|
| 1258 |
);
|
| 1428 |
echo '<div class="tablenav"><div class="tablenav-pages">';
|
| 1429 |
$page_links_text = sprintf( '<span class="displaying-num">' . __( 'Displaying %s–%s of <span class="current-link-count">%s</span>', 'broken-link-checker' ) . '</span>%s',
|
| 1430 |
number_format_i18n( ( $page - 1 ) * $per_page + 1 ),
|
| 1431 |
+
number_format_i18n( min( $page * $per_page, $current_filter['count'] ) ),
|
| 1432 |
number_format_i18n( $current_filter['count'] ),
|
| 1433 |
$page_links
|
| 1434 |
);
|
| 1549 |
url_el.attr('href', new_url);
|
| 1550 |
|
| 1551 |
if ( data.cnt_error > 0 ){
|
| 1552 |
+
//TODO: Internationalize this error message
|
| 1553 |
var msg = "The link was successfully modifed.";
|
| 1554 |
msg = msg + "\nHowever, "+data.cnt_error+" instances couldn't be edited and still point to the old URL."
|
| 1555 |
alert(msg);
|
| 2106 |
//This reduces resource usage and may solve the mysterious slowdowns certain users have
|
| 2107 |
//encountered when activating the plugin.
|
| 2108 |
//(Comment out when debugging or you won't get the FirePHP output)
|
| 2109 |
+
if ( !defined('BLC_DEBUG') ){
|
| 2110 |
+
ob_end_clean();
|
| 2111 |
+
header("Connection: close");
|
| 2112 |
+
ob_start();
|
| 2113 |
+
echo ('Connection closed'); //This could be anything
|
| 2114 |
+
$size = ob_get_length();
|
| 2115 |
+
header("Content-Length: $size");
|
| 2116 |
+
ob_end_flush(); // Strange behaviour, will not work
|
| 2117 |
+
flush(); // Unless both are called !
|
| 2118 |
+
}
|
| 2119 |
|
| 2120 |
$check_threshold = date('Y-m-d H:i:s', strtotime('-'.$this->conf->options['check_threshold'].' hours'));
|
| 2121 |
$recheck_threshold = date('Y-m-d H:i:s', strtotime('-20 minutes'));
|
languages/broken-link-checker-uk_UK.mo
ADDED
|
Binary file
|
readme.txt
CHANGED
|
@@ -3,7 +3,7 @@ Contributors: whiteshadow
|
|
| 3 |
Tags: links, broken, maintenance, blogroll, custom fields, admin
|
| 4 |
Requires at least: 2.8.0
|
| 5 |
Tested up to: 2.9
|
| 6 |
-
Stable tag: 0.7.
|
| 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 |
|
|
@@ -52,6 +52,7 @@ There are several actions associated with each link listed -
|
|
| 52 |
* Italian - [Gianni Diurno](http://gidibao.net/index.php/portfolio/) and [Giacomo Ross](http://www.luxemozione.com/) (alternative)
|
| 53 |
* Russian - [Anna Ozeritskaya](http://hweia.ru/)
|
| 54 |
* Spanish - [Omi](http://equipajedemano.info/)
|
|
|
|
| 55 |
|
| 56 |
== Installation ==
|
| 57 |
|
|
@@ -74,6 +75,10 @@ To upgrade your installation
|
|
| 74 |
|
| 75 |
*This is an automatically generated changelog*
|
| 76 |
|
|
|
|
|
|
|
|
|
|
|
|
|
| 77 |
= 0.7.3 =
|
| 78 |
* Reverted to the old access-checking algorithm + some error suppression.
|
| 79 |
|
| 3 |
Tags: links, broken, maintenance, blogroll, custom fields, admin
|
| 4 |
Requires at least: 2.8.0
|
| 5 |
Tested up to: 2.9
|
| 6 |
+
Stable tag: 0.7.4
|
| 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 |
|
| 52 |
* Italian - [Gianni Diurno](http://gidibao.net/index.php/portfolio/) and [Giacomo Ross](http://www.luxemozione.com/) (alternative)
|
| 53 |
* Russian - [Anna Ozeritskaya](http://hweia.ru/)
|
| 54 |
* Spanish - [Omi](http://equipajedemano.info/)
|
| 55 |
+
* Ukrainian - [Stas Mykhajlyuk](http://www.kosivart.com/)
|
| 56 |
|
| 57 |
== Installation ==
|
| 58 |
|
| 75 |
|
| 76 |
*This is an automatically generated changelog*
|
| 77 |
|
| 78 |
+
= 0.7.4 =
|
| 79 |
+
* Fixed a minor bug where the plugin would display an incorrect number of links in the "Displaying x-y of z" label when the user moves to a different page of the results.
|
| 80 |
+
* Added Ukrainian translation.
|
| 81 |
+
|
| 82 |
= 0.7.3 =
|
| 83 |
* Reverted to the old access-checking algorithm + some error suppression.
|
| 84 |
|
