Version Description
- Added two new types of link checking tools: Check Secondary Links and Check image links
Download this release
Release Info
Developer | jackdewey |
Plugin | Link Library |
Version | 7.3.14 |
Comparing to | |
See all releases |
Code changes from version 7.3.13 to 7.3.14
- link-library-admin.php +2 -2
- link-library.php +10 -5
- readme.txt +4 -1
link-library-admin.php
CHANGED
@@ -7451,7 +7451,7 @@ function general_custom_fields_meta_box( $data ) {
|
|
7451 |
<input class="button" type='submit' id="duplicatecheck" name="duplicatecheck" value="<?php _e( 'Check Duplicate Links', 'link-library' ); ?>" />
|
7452 |
</td>
|
7453 |
</tr>
|
7454 |
-
|
7455 |
<td>
|
7456 |
<input class="button" type='submit' id="secondaryurlcheck" name="secondaryurlcheck" value="<?php _e( 'Check Secondary URL Links', 'link-library' ); ?>" />
|
7457 |
</td>
|
@@ -7460,7 +7460,7 @@ function general_custom_fields_meta_box( $data ) {
|
|
7460 |
<td>
|
7461 |
<input class="button" type='submit' id="imagelinkcheck" name="imagelinkcheck" value="<?php _e( 'Check Image Links', 'link-library' ); ?>" />
|
7462 |
</td>
|
7463 |
-
</tr>
|
7464 |
<tr>
|
7465 |
<td>
|
7466 |
<input class="button" type='submit' id="emptycatcheck" name="emptycatcheck" value="<?php _e( 'Check Links Missing Categories', 'link-library' ); ?>" />
|
7451 |
<input class="button" type='submit' id="duplicatecheck" name="duplicatecheck" value="<?php _e( 'Check Duplicate Links', 'link-library' ); ?>" />
|
7452 |
</td>
|
7453 |
</tr>
|
7454 |
+
<tr>
|
7455 |
<td>
|
7456 |
<input class="button" type='submit' id="secondaryurlcheck" name="secondaryurlcheck" value="<?php _e( 'Check Secondary URL Links', 'link-library' ); ?>" />
|
7457 |
</td>
|
7460 |
<td>
|
7461 |
<input class="button" type='submit' id="imagelinkcheck" name="imagelinkcheck" value="<?php _e( 'Check Image Links', 'link-library' ); ?>" />
|
7462 |
</td>
|
7463 |
+
</tr>
|
7464 |
<tr>
|
7465 |
<td>
|
7466 |
<input class="button" type='submit' id="emptycatcheck" name="emptycatcheck" value="<?php _e( 'Check Links Missing Categories', 'link-library' ); ?>" />
|
link-library.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
Plugin Name: Link Library
|
4 |
Plugin URI: http://wordpress.org/extend/plugins/link-library/
|
5 |
Description: Display links on pages with a variety of options
|
6 |
-
Version: 7.3.
|
7 |
Author: Yannick Lefebvre
|
8 |
Author URI: http://ylefebvre.github.io/
|
9 |
Text Domain: link-library
|
@@ -1155,10 +1155,15 @@ class link_library_plugin {
|
|
1155 |
$response = wp_remote_get( $external_link, array( 'user-agent' => 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/104.0.0.0 Safari/537.36', 'timeout' => 10 ) );
|
1156 |
|
1157 |
if( is_wp_error( $response ) ) {
|
1158 |
-
$
|
1159 |
-
if (
|
1160 |
-
return '
|
1161 |
-
}
|
|
|
|
|
|
|
|
|
|
|
1162 |
} elseif ( $response['response']['code'] == '200' ) {
|
1163 |
|
1164 |
$original_protocol = '';
|
3 |
Plugin Name: Link Library
|
4 |
Plugin URI: http://wordpress.org/extend/plugins/link-library/
|
5 |
Description: Display links on pages with a variety of options
|
6 |
+
Version: 7.3.14
|
7 |
Author: Yannick Lefebvre
|
8 |
Author URI: http://ylefebvre.github.io/
|
9 |
Text Domain: link-library
|
1155 |
$response = wp_remote_get( $external_link, array( 'user-agent' => 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/104.0.0.0 Safari/537.36', 'timeout' => 10 ) );
|
1156 |
|
1157 |
if( is_wp_error( $response ) ) {
|
1158 |
+
$data = file_get_contents( $external_link );
|
1159 |
+
if ( false !== $data ) {
|
1160 |
+
return 'exists_found';
|
1161 |
+
} else {
|
1162 |
+
$response_code = $response->get_error_code();
|
1163 |
+
if ( 'http_request_failed' == $response_code ) {
|
1164 |
+
return 'error_403';
|
1165 |
+
}
|
1166 |
+
}
|
1167 |
} elseif ( $response['response']['code'] == '200' ) {
|
1168 |
|
1169 |
$original_protocol = '';
|
readme.txt
CHANGED
@@ -4,7 +4,7 @@ Donate link: https://ylefebvre.github.io/wordpress-plugins/link-library/
|
|
4 |
Tags: link, list, directory, page, library, AJAX, RSS, feeds, inline, search, paging, add, submit, import, batch, pop-up
|
5 |
Requires at least: 4.4
|
6 |
Tested up to: 6.0.1
|
7 |
-
Stable tag: 7.3.
|
8 |
|
9 |
The purpose of this plugin is to add the ability to output a list of link categories and a complete list of links with notes and descriptions.
|
10 |
|
@@ -50,6 +50,9 @@ Further configuration is available under the Link Library Settings panel.
|
|
50 |
|
51 |
== Changelog ==
|
52 |
|
|
|
|
|
|
|
53 |
= 7.3.13 =
|
54 |
* Added new tool under Global Options > Import/Export to export list of categories with IDs
|
55 |
|
4 |
Tags: link, list, directory, page, library, AJAX, RSS, feeds, inline, search, paging, add, submit, import, batch, pop-up
|
5 |
Requires at least: 4.4
|
6 |
Tested up to: 6.0.1
|
7 |
+
Stable tag: 7.3.14
|
8 |
|
9 |
The purpose of this plugin is to add the ability to output a list of link categories and a complete list of links with notes and descriptions.
|
10 |
|
50 |
|
51 |
== Changelog ==
|
52 |
|
53 |
+
= 7.3.14 =
|
54 |
+
* Added two new types of link checking tools: Check Secondary Links and Check image links
|
55 |
+
|
56 |
= 7.3.13 =
|
57 |
* Added new tool under Global Options > Import/Export to export list of categories with IDs
|
58 |
|