Version Description
Download this release
Release Info
Developer | whiteshadow |
Plugin | Broken Link Checker |
Version | 0.4.10 |
Comparing to | |
See all releases |
Code changes from version 0.4.9 to 0.4.10
- broken-link-checker.php +3 -3
- readme.txt +2 -2
- wsblc_ajax.php +3 -3
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.4.
|
7 |
Author: Janis Elsts
|
8 |
Author URI: http://w-shadow.com/blog/
|
9 |
*/
|
@@ -23,7 +23,7 @@ class ws_broken_link_checker {
|
|
23 |
var $options_name='wsblc_options';
|
24 |
var $postdata_name;
|
25 |
var $linkdata_name;
|
26 |
-
var $version='0.4.
|
27 |
var $myfile='';
|
28 |
var $myfolder='';
|
29 |
var $mybasename='';
|
@@ -545,7 +545,7 @@ class ws_broken_link_checker {
|
|
545 |
if (current_user_can('manage_options'))
|
546 |
add_filter('plugin_action_links', array(&$this, 'plugin_action_links'), 10, 2);
|
547 |
|
548 |
-
add_management_page('View Broken Links', 'Broken Links', '
|
549 |
__FILE__,array(&$this, 'broken_links_page'));
|
550 |
}
|
551 |
|
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.4.10
|
7 |
Author: Janis Elsts
|
8 |
Author URI: http://w-shadow.com/blog/
|
9 |
*/
|
23 |
var $options_name='wsblc_options';
|
24 |
var $postdata_name;
|
25 |
var $linkdata_name;
|
26 |
+
var $version='0.4.10';
|
27 |
var $myfile='';
|
28 |
var $myfolder='';
|
29 |
var $mybasename='';
|
545 |
if (current_user_can('manage_options'))
|
546 |
add_filter('plugin_action_links', array(&$this, 'plugin_action_links'), 10, 2);
|
547 |
|
548 |
+
add_management_page('View Broken Links', 'Broken Links', 'edit_others_posts',
|
549 |
__FILE__,array(&$this, 'broken_links_page'));
|
550 |
}
|
551 |
|
readme.txt
CHANGED
@@ -2,8 +2,8 @@
|
|
2 |
Contributors: whiteshadow
|
3 |
Tags: links, broken, maintenance
|
4 |
Requires at least: 2.0.2
|
5 |
-
Tested up to: 2.6.
|
6 |
-
Stable tag: 0.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 |
|
2 |
Contributors: whiteshadow
|
3 |
Tags: links, broken, maintenance
|
4 |
Requires at least: 2.0.2
|
5 |
+
Tested up to: 2.6.3
|
6 |
+
Stable tag: 0.4.10
|
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
@@ -145,7 +145,7 @@
|
|
145 |
die('<!-- /run_check -->');
|
146 |
|
147 |
} else if ($action=='discard_link'){
|
148 |
-
if (!current_user_can('
|
149 |
die("Error: You can't do that. Access denied.");
|
150 |
}
|
151 |
$id=intval($_GET['id']);
|
@@ -158,7 +158,7 @@
|
|
158 |
} else if ($action=='remove_link'){
|
159 |
|
160 |
//actually deletes the link from the post
|
161 |
-
if (!current_user_can('
|
162 |
die("Error: You can't do that. Access denied.");
|
163 |
}
|
164 |
|
@@ -194,7 +194,7 @@
|
|
194 |
|
195 |
} else if ($action == 'edit_link'){
|
196 |
//edits the link's URL inside the post
|
197 |
-
if (!current_user_can('
|
198 |
die("Error: You can't do that. Access denied.");
|
199 |
}
|
200 |
|
145 |
die('<!-- /run_check -->');
|
146 |
|
147 |
} else if ($action=='discard_link'){
|
148 |
+
if (!current_user_can('edit_others_posts')) {
|
149 |
die("Error: You can't do that. Access denied.");
|
150 |
}
|
151 |
$id=intval($_GET['id']);
|
158 |
} else if ($action=='remove_link'){
|
159 |
|
160 |
//actually deletes the link from the post
|
161 |
+
if (!current_user_can('edit_others_posts')) {
|
162 |
die("Error: You can't do that. Access denied.");
|
163 |
}
|
164 |
|
194 |
|
195 |
} else if ($action == 'edit_link'){
|
196 |
//edits the link's URL inside the post
|
197 |
+
if (!current_user_can('edit_others_posts')) {
|
198 |
die("Error: You can't do that. Access denied.");
|
199 |
}
|
200 |
|