Version Description
- Fix to make RSS feed only accessible when option to publish it is actually checked
Download this release
Release Info
Developer | jackdewey |
Plugin | Link Library |
Version | 7.1.7 |
Comparing to | |
See all releases |
Code changes from version 7.1.6 to 7.1.7
- link-library-admin.php +3 -3
- link-library.php +1 -1
- readme.txt +4 -1
- rssfeed.php +6 -2
link-library-admin.php
CHANGED
@@ -8302,9 +8302,9 @@ function link_library_reciprocal_link_checker() {
|
|
8302 |
$genoptions = get_option( 'LinkLibraryGeneral' );
|
8303 |
$genoptions = wp_parse_args( $genoptions, ll_reset_gen_settings( 'return' ) );
|
8304 |
|
8305 |
-
$RecipCheckAddress = ( isset( $_POST['RecipCheckAddress'] ) && !empty( $_POST['RecipCheckAddress'] ) ? $_POST['RecipCheckAddress'] : '' );
|
8306 |
$recipcheckdelete403 = ( isset( $_POST['recipcheckdelete403'] ) && !empty( $_POST['recipcheckdelete403'] ) && 'true' == $_POST['recipcheckdelete403'] ? true : false );
|
8307 |
-
$check_type = ( isset( $_POST['mode'] ) && !empty( $_POST['mode'] ) ? $_POST['mode'] : 'reciprocal' );
|
8308 |
$rsscheckdays = ( ( isset( $_POST['rsscheckdays'] ) && !empty( $_POST['rsscheckdays'] ) ) ? intval( $_POST['rsscheckdays'] ) : $genoptions['rsscheckdays'] );
|
8309 |
|
8310 |
if ( ! empty( $RecipCheckAddress ) || ( empty( $RecipCheckAddress ) && ( 'reciprocal' != $check_type || 'emptycat' == $check_type ) ) ) {
|
@@ -8402,7 +8402,7 @@ function link_library_reciprocal_link_checker() {
|
|
8402 |
}
|
8403 |
}
|
8404 |
|
8405 |
-
echo '<a href="' . $link_url . '">' . get_the_title() . '</a>: ';
|
8406 |
|
8407 |
if ( ( 'rss' == $check_type || 'broken' == $check_type ) && $reciprocal_result == 'exists_redirected' ) {
|
8408 |
echo '<span style="color: #FF0000">' . __( 'Redirected to a different address', 'link-library' ) . '</span>';
|
8302 |
$genoptions = get_option( 'LinkLibraryGeneral' );
|
8303 |
$genoptions = wp_parse_args( $genoptions, ll_reset_gen_settings( 'return' ) );
|
8304 |
|
8305 |
+
$RecipCheckAddress = ( isset( $_POST['RecipCheckAddress'] ) && !empty( $_POST['RecipCheckAddress'] ) ? esc_url( $_POST['RecipCheckAddress'] ) : '' );
|
8306 |
$recipcheckdelete403 = ( isset( $_POST['recipcheckdelete403'] ) && !empty( $_POST['recipcheckdelete403'] ) && 'true' == $_POST['recipcheckdelete403'] ? true : false );
|
8307 |
+
$check_type = ( isset( $_POST['mode'] ) && !empty( $_POST['mode'] ) ? sanitize_text_field( $_POST['mode'] ) : 'reciprocal' );
|
8308 |
$rsscheckdays = ( ( isset( $_POST['rsscheckdays'] ) && !empty( $_POST['rsscheckdays'] ) ) ? intval( $_POST['rsscheckdays'] ) : $genoptions['rsscheckdays'] );
|
8309 |
|
8310 |
if ( ! empty( $RecipCheckAddress ) || ( empty( $RecipCheckAddress ) && ( 'reciprocal' != $check_type || 'emptycat' == $check_type ) ) ) {
|
8402 |
}
|
8403 |
}
|
8404 |
|
8405 |
+
echo '<a href="' . esc_url( $link_url ) . '">' . esc_html( get_the_title() ) . '</a>: ';
|
8406 |
|
8407 |
if ( ( 'rss' == $check_type || 'broken' == $check_type ) && $reciprocal_result == 'exists_redirected' ) {
|
8408 |
echo '<span style="color: #FF0000">' . __( 'Redirected to a different address', 'link-library' ) . '</span>';
|
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.1.
|
7 |
Author: Yannick Lefebvre
|
8 |
Author URI: http://ylefebvre.github.io/
|
9 |
Text Domain: link-library
|
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.1.7
|
7 |
Author: Yannick Lefebvre
|
8 |
Author URI: http://ylefebvre.github.io/
|
9 |
Text Domain: link-library
|
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: 5.7.1
|
7 |
-
Stable tag: 7.1.
|
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 |
|
@@ -48,6 +48,9 @@ Further configuration is available under the Link Library Settings panel.
|
|
48 |
|
49 |
== Changelog ==
|
50 |
|
|
|
|
|
|
|
51 |
= 7.1.6 =
|
52 |
* Fixed for RSS Feed Checking tool
|
53 |
|
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: 5.7.1
|
7 |
+
Stable tag: 7.1.7
|
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 |
|
48 |
|
49 |
== Changelog ==
|
50 |
|
51 |
+
= 7.1.7 =
|
52 |
+
* Fix to make RSS feed only accessible when option to publish it is actually checked
|
53 |
+
|
54 |
= 7.1.6 =
|
55 |
* Fixed for RSS Feed Checking tool
|
56 |
|
rssfeed.php
CHANGED
@@ -124,7 +124,11 @@ function link_library_generate_rss_feed () {
|
|
124 |
|
125 |
wp_reset_postdata();
|
126 |
|
127 |
-
|
128 |
-
|
|
|
|
|
|
|
|
|
129 |
exit;
|
130 |
}
|
124 |
|
125 |
wp_reset_postdata();
|
126 |
|
127 |
+
if ( $options['publishrssfeed'] ) {
|
128 |
+
header( 'Content-Type: '. feed_content_type('rss') . '; charset=' . get_option('blog_charset') );
|
129 |
+
print( $rss->getFeed() );
|
130 |
+
} else {
|
131 |
+
header( 'Location: ' . home_url() );
|
132 |
+
}
|
133 |
exit;
|
134 |
}
|