Link Library - Version 7.1.5

Version Description

  • Added new RSS Feed checking tool under Link Checking Tools
Download this release

Release Info

Developer jackdewey
Plugin Icon 128x128 Link Library
Version 7.1.5
Comparing to
See all releases

Code changes from version 7.1.4 to 7.1.5

link-library-admin.php CHANGED
@@ -1178,20 +1178,60 @@ wp_editor( $post->post_content, 'content', $editor_config );
1178
 
1179
  if ( isset( $_GET['message'] ) && $_GET['message'] == '1' ) {
1180
  echo "<div id='message' class='updated fade'><p><strong>" . __( 'Settings updated', 'link-library' ) . ".</strong></p></div>";
1181
- } elseif ( isset( $_GET['message'] ) && ( $_GET['message'] == '2' || $_GET['message'] == '3' ) ) { ?>
1182
  <div id='message' class='updated fade'><p>
1183
  <strong>
1184
  <?php
1185
- if ( $_GET['message'] == '2' ) {
 
1186
  _e( 'Reciprocal Link Checker Report', 'link-library' );
1187
- } else {
 
1188
  _e( 'Broken Link Checker Report', 'link-library' );
 
 
 
 
1189
  }
1190
  ?></strong><br />
1191
  <span class="loadingicon"><img src="<?php echo plugins_url( 'icons/Ajax-loader.gif', __FILE__ ); ?> " /></span><span class="processinglinks">Processing Link <span class="currentlinknumber">0</span> / <span class="totallinknumber">
1192
  <?php
1193
- $post_count = wp_count_posts( 'link_library_links' );
1194
- $total_post_count = $post_count->publish + $post_count->future + $post_count->draft + $post_count->pending + $post_count->private;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1195
  echo $total_post_count;
1196
  ?>
1197
  </span></span>
@@ -1216,7 +1256,7 @@ wp_editor( $post->post_content, 'content', $editor_config );
1216
  data : {
1217
  action : 'link_library_recipbrokencheck',
1218
  _ajax_nonce : '<?php echo wp_create_nonce( 'link_library_recipbrokencheck' ); ?>',
1219
- mode : '<?php if ( $_GET['message'] == '2' ) { echo 'reciprocal'; } elseif ( $_GET['message'] == 3 ) { echo 'broken'; } ?>',
1220
  index : currentlinkindex,
1221
  RecipCheckAddress: jQuery('#recipcheckaddress').val(),
1222
  recipcheckdelete403 : jQuery('#recipcheckdelete403').is(':checked')
@@ -2448,7 +2488,7 @@ wp_editor( $post->post_content, 'content', $editor_config );
2448
  array(
2449
  'numberstylesets', 'includescriptcss', 'pagetitleprefix', 'pagetitlesuffix', 'schemaversion', 'thumbshotscid', 'approvalemailtitle',
2450
  'moderatorname', 'moderatoremail', 'rejectedemailtitle', 'approvalemailbody', 'rejectedemailbody', 'moderationnotificationtitle',
2451
- 'linksubmissionthankyouurl', 'recipcheckaddress', 'imagefilepath', 'catselectmethod', 'expandiconpath', 'collapseiconpath', 'updatechannel',
2452
  'extraprotocols', 'thumbnailsize', 'thumbnailgenerator', 'rsscachedelay', 'single_link_layout', 'rolelevel', 'editlevel', 'cptslug',
2453
  'defaultlinktarget', 'bp_link_page_url', 'bp_link_settings', 'defaultprotocoladmin', 'pagepeekerid', 'pagepeekersize', 'stwthumbnailsize', 'shrinkthewebaccesskey', 'customurl1label', 'customurl2label',
2454
  'customurl3label', 'customurl4label', 'customurl5label', 'customtext1label', 'customtext2label', 'customtext3label', 'customtext4label', 'customtext5label', 'customlist1label', 'customlist2label', 'customlist3label', 'customlist4label', 'customlist5label', 'customlist1values', 'customlist2values', 'customlist3values', 'customlist4values', 'customlist5values',
@@ -3044,8 +3084,9 @@ wp_editor( $post->post_content, 'content', $editor_config );
3044
 
3045
  $genoptions = get_option( 'LinkLibraryGeneral' );
3046
 
3047
- $genoptions['recipcheckaddress'] = ( ( isset( $_POST['recipcheckaddress'] ) && $_POST['recipcheckaddress'] !== '' ) ? $_POST['recipcheckaddress'] : "" );
3048
- $genoptions['recipcheckdelete403'] = ( ( isset( $_POST['recipcheckdelete403'] ) && $_POST['recipcheckdelete403'] !== '' ) ? $_POST['recipcheckdelete403'] : "" );
 
3049
 
3050
  foreach (
3051
  array(
@@ -3062,7 +3103,7 @@ wp_editor( $post->post_content, 'content', $editor_config );
3062
 
3063
  update_option( 'LinkLibraryGeneral', $genoptions );
3064
 
3065
- if ( !isset( $_POST['recipcheck'] ) && !isset( $_POST['brokencheck'] ) && !isset( $_POST['duplicatecheck'] ) && !isset( $_POST['emptycatcheck'] ) ) {
3066
  $message = 1;
3067
  } elseif ( isset( $_POST['recipcheck'] ) ) {
3068
  $message = 2;
@@ -3072,6 +3113,8 @@ wp_editor( $post->post_content, 'content', $editor_config );
3072
  $message = 4;
3073
  } elseif ( isset( $_POST['emptycatcheck'] ) ) {
3074
  $message = 5;
 
 
3075
  }
3076
 
3077
  //lets redirect the post request into get request (you may add additional params at the url, if you need to show save results
@@ -7194,6 +7237,18 @@ function general_custom_fields_meta_box( $data ) {
7194
  <input type="checkbox" id="suppressbadconfigredirection" name="suppressbadconfigredirection" <?php checked( $genoptions['suppressbadconfigredirection'] ); ?>/></td>
7195
  </tr>
7196
  <tr><td colspan="2"><hr /></td></tr>
 
 
 
 
 
 
 
 
 
 
 
 
7197
  <tr>
7198
  <td>
7199
  <input class="button" type='submit' id="duplicatecheck" name="duplicatecheck" value="<?php _e( 'Check Duplicate Links', 'link-library' ); ?>" />
@@ -8260,14 +8315,15 @@ function link_library_reciprocal_link_checker() {
8260
  'meta_value' => ' ',
8261
  'meta_compare' => '!=',
8262
  'posts_per_page' => 1,
8263
- 'paged' => ( isset( $_POST['index'] ) ? $_POST['index'] : 1 )
8264
  );
8265
 
8266
  if ( 'reciprocal' == $check_type ) {
8267
  $args['meta_key'] = 'link_reciprocal';
8268
-
8269
  } elseif ( 'broken' == $check_type ) {
8270
  $args['meta_key'] = 'link_url';
 
 
8271
  }
8272
 
8273
  $the_link_query = new WP_Query( $args );
@@ -8278,13 +8334,16 @@ function link_library_reciprocal_link_checker() {
8278
 
8279
  global $my_link_library_plugin;
8280
  $link_url = get_post_meta( get_the_ID(), 'link_url', true );
 
8281
 
8282
  if ( 'reciprocal' == $check_type ) {
8283
  $link_reciprocal = get_post_meta( get_the_ID(), 'link_reciprocal', true );
8284
  $reciprocal_result = $my_link_library_plugin->CheckReciprocalLink( $RecipCheckAddress, $link_reciprocal, 'reciprocal' );
8285
  } elseif ( 'broken' == $check_type ) {
8286
  $reciprocal_result = $my_link_library_plugin->CheckReciprocalLink( $RecipCheckAddress, $link_url, 'broken' );
8287
- }
 
 
8288
 
8289
  $broken_responses = array( 'exists_redirected', 'exists_protocol_redirect', 'exists_subdomain_redirect', 'exists_redirected_subfolder', 'exists_redirected_fileurl' );
8290
 
@@ -8308,20 +8367,51 @@ function link_library_reciprocal_link_checker() {
8308
 
8309
  if ( ( 'reciprocal' == $check_type && $reciprocal_result == 'exists_found' ) || 'broken' == $check_type && !in_array( $reciprocal_result, $broken_responses ) && strpos( $reciprocal_result, 'exists' ) !== false ) {
8310
  echo '<div class="nextcheckitem"></div>';
8311
- continue;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
8312
  }
8313
 
8314
  echo '<a href="' . $link_url . '">' . get_the_title() . '</a>: ';
8315
 
8316
- if ( 'broken' == $check_type && $reciprocal_result == 'exists_redirected' ) {
8317
  echo '<span style="color: #FF0000">' . __( 'Redirected to a different address', 'link-library' ) . '</span>';
8318
- } elseif ( 'broken' == $check_type && $reciprocal_result == 'exists_protocol_redirect' ) {
8319
  echo '<span style="color: #ff7948">' . __( 'Redirection to a different protocol', 'link-library' ) . '</span>';
8320
- } elseif ( 'broken' == $check_type && $reciprocal_result == 'exists_subdomain_redirect' ) {
8321
  echo '<span style="color: #6581ce">' . __( 'Redirected to a sub-domain on same server', 'link-library' ) . '</span>';
8322
- } elseif ( 'broken' == $check_type && $reciprocal_result == 'exists_redirected_subfolder' ) {
8323
  echo '<span style="color: #b362b9">' . __( 'Redirected to a different subfolder on same server', 'link-library' ) . '</span>';
8324
- } elseif ( 'broken' == $check_type && $reciprocal_result == 'exists_redirected_fileurl' ) {
8325
  echo '<span style="color: #ff4887">' . __( 'Redirected to a different subfolder on same server with bad configuration', 'link-library' ) . '</span>';
8326
  } elseif ( 'reciprocal' == $check_type && $reciprocal_result == 'exists_notfound' ) {
8327
  echo '<span style="color: #FF0000">' . __( 'Not Found', 'link-library' ) . '</span>';
@@ -8334,18 +8424,30 @@ function link_library_reciprocal_link_checker() {
8334
  echo '<span style="color: #FF0000">' . __( 'Website Unreachable', 'link-library' ) . '</span>';
8335
  }
8336
 
 
 
 
 
 
 
 
8337
  echo ' - <a target="linkedit' . get_the_ID() . '" href="' . esc_url( add_query_arg( array( 'action' => 'edit', 'post' => get_the_ID() ), admin_url( 'post.php' ) ) );
8338
  echo '">(' . __('Edit', 'link-library') . ')</a><br />';
8339
 
8340
  echo '<div class="nextcheckitem"></div>';
8341
  }
8342
  } else {
8343
- if ( 'reciprocal' == $check_type ) {
8344
- echo __( 'There are no links with reciprocal links associated with them', 'link-library' ) . ".<br />";
8345
- } elseif ( 'broken' == $check_type ) {
8346
- echo __( 'There are no links to check', 'link-library' ) . ".<br />";
 
 
 
 
 
 
8347
  }
8348
-
8349
  }
8350
 
8351
  wp_reset_postdata();
1178
 
1179
  if ( isset( $_GET['message'] ) && $_GET['message'] == '1' ) {
1180
  echo "<div id='message' class='updated fade'><p><strong>" . __( 'Settings updated', 'link-library' ) . ".</strong></p></div>";
1181
+ } elseif ( isset( $_GET['message'] ) && ( $_GET['message'] == '2' || $_GET['message'] == '3' || $_GET['message'] == 6 ) ) { ?>
1182
  <div id='message' class='updated fade'><p>
1183
  <strong>
1184
  <?php
1185
+ $mode = '';
1186
+ if ( intval( $_GET['message'] ) == 2 ) {
1187
  _e( 'Reciprocal Link Checker Report', 'link-library' );
1188
+ $mode = 'reciprocal';
1189
+ } elseif ( intval( $_GET['message'] ) == 3 ) {
1190
  _e( 'Broken Link Checker Report', 'link-library' );
1191
+ $mode = 'broken';
1192
+ } elseif ( intval( $_GET['message'] ) == 6 ) {
1193
+ _e( 'RSS Link Checker Report', 'link-library' );
1194
+ $mode = 'rss';
1195
  }
1196
  ?></strong><br />
1197
  <span class="loadingicon"><img src="<?php echo plugins_url( 'icons/Ajax-loader.gif', __FILE__ ); ?> " /></span><span class="processinglinks">Processing Link <span class="currentlinknumber">0</span> / <span class="totallinknumber">
1198
  <?php
1199
+ $args = array(
1200
+ 'post_type' => 'link_library_links',
1201
+ 'post_status' => array( 'publish', 'pending', 'draft', 'future', 'private' ),
1202
+ 'orderby' => 'post_title',
1203
+ 'order' => 'ASC',
1204
+ 'meta_value' => ' ',
1205
+ 'meta_compare' => '!=',
1206
+ 'posts_per_page' => -1,
1207
+ 'paged' => ( isset( $_POST['index'] ) ? intval( $_POST['index'] ) : 1 )
1208
+ );
1209
+
1210
+ $the_link_query = new WP_Query( $args );
1211
+ $total_post_count = 0;
1212
+
1213
+ if ( $the_link_query->have_posts() ) {
1214
+ while ( $the_link_query->have_posts() ) {
1215
+ $the_link_query->the_post();
1216
+
1217
+ if ( 'reciprocal' == $mode ) {
1218
+ $link_reciprocal = get_post_meta( get_the_ID(), 'link_reciprocal', true );
1219
+
1220
+ if ( !empty( $link_reciprocal ) ) {
1221
+ $total_post_count++;
1222
+ }
1223
+ } elseif ( 'broken' == $mode ) {
1224
+ $total_post_count++;
1225
+ } elseif( 'rss' == $mode ) {
1226
+ $link_rss = get_post_meta( get_the_ID(), 'link_rss', true );
1227
+
1228
+ if ( !empty( $link_rss ) ) {
1229
+ $total_post_count++;
1230
+ }
1231
+ }
1232
+ }
1233
+ }
1234
+
1235
  echo $total_post_count;
1236
  ?>
1237
  </span></span>
1256
  data : {
1257
  action : 'link_library_recipbrokencheck',
1258
  _ajax_nonce : '<?php echo wp_create_nonce( 'link_library_recipbrokencheck' ); ?>',
1259
+ mode : '<?php echo $mode; ?>',
1260
  index : currentlinkindex,
1261
  RecipCheckAddress: jQuery('#recipcheckaddress').val(),
1262
  recipcheckdelete403 : jQuery('#recipcheckdelete403').is(':checked')
2488
  array(
2489
  'numberstylesets', 'includescriptcss', 'pagetitleprefix', 'pagetitlesuffix', 'schemaversion', 'thumbshotscid', 'approvalemailtitle',
2490
  'moderatorname', 'moderatoremail', 'rejectedemailtitle', 'approvalemailbody', 'rejectedemailbody', 'moderationnotificationtitle',
2491
+ 'linksubmissionthankyouurl', 'imagefilepath', 'catselectmethod', 'expandiconpath', 'collapseiconpath', 'updatechannel',
2492
  'extraprotocols', 'thumbnailsize', 'thumbnailgenerator', 'rsscachedelay', 'single_link_layout', 'rolelevel', 'editlevel', 'cptslug',
2493
  'defaultlinktarget', 'bp_link_page_url', 'bp_link_settings', 'defaultprotocoladmin', 'pagepeekerid', 'pagepeekersize', 'stwthumbnailsize', 'shrinkthewebaccesskey', 'customurl1label', 'customurl2label',
2494
  'customurl3label', 'customurl4label', 'customurl5label', 'customtext1label', 'customtext2label', 'customtext3label', 'customtext4label', 'customtext5label', 'customlist1label', 'customlist2label', 'customlist3label', 'customlist4label', 'customlist5label', 'customlist1values', 'customlist2values', 'customlist3values', 'customlist4values', 'customlist5values',
3084
 
3085
  $genoptions = get_option( 'LinkLibraryGeneral' );
3086
 
3087
+ $genoptions['recipcheckaddress'] = ( ( isset( $_POST['recipcheckaddress'] ) && $_POST['recipcheckaddress'] !== '' ) ? esc_url( $_POST['recipcheckaddress'] ) : '' );
3088
+ $genoptions['rsscheckdays'] = ( ( isset( $_POST['rsscheckdays'] ) && $_POST['rsscheckdays'] !== '' ) ? sanitize_text_field( $_POST['rsscheckdays'] ) : '' );
3089
+ $genoptions['recipcheckdelete403'] = ( ( isset( $_POST['recipcheckdelete403'] ) && $_POST['recipcheckdelete403'] !== '' ) ? $_POST['recipcheckdelete403'] : '' );
3090
 
3091
  foreach (
3092
  array(
3103
 
3104
  update_option( 'LinkLibraryGeneral', $genoptions );
3105
 
3106
+ if ( !isset( $_POST['recipcheck'] ) && !isset( $_POST['brokencheck'] ) && !isset( $_POST['duplicatecheck'] ) && !isset( $_POST['emptycatcheck'] ) && !isset( $_POST['rsscheck'] ) ) {
3107
  $message = 1;
3108
  } elseif ( isset( $_POST['recipcheck'] ) ) {
3109
  $message = 2;
3113
  $message = 4;
3114
  } elseif ( isset( $_POST['emptycatcheck'] ) ) {
3115
  $message = 5;
3116
+ } elseif ( isset( $_POST['rsscheck'] ) ) {
3117
+ $message = 6;
3118
  }
3119
 
3120
  //lets redirect the post request into get request (you may add additional params at the url, if you need to show save results
7237
  <input type="checkbox" id="suppressbadconfigredirection" name="suppressbadconfigredirection" <?php checked( $genoptions['suppressbadconfigredirection'] ); ?>/></td>
7238
  </tr>
7239
  <tr><td colspan="2"><hr /></td></tr>
7240
+ <tr>
7241
+ <td>
7242
+ <input class="button" type='submit' id="rsscheck" name="rsscheck" value="<?php _e( 'Check RSS Feed Links', 'link-library' ); ?>" />
7243
+ </td>
7244
+ </tr>
7245
+ <tr>
7246
+ <td style='width: 250px'><?php _e( 'RSS Feed freshnesh threshold (days)', 'link-library' ); ?></td>
7247
+ <td>
7248
+ <input type="text" id="rsscheckdays" name="rsscheckdays" size="3" value="<?php echo $genoptions['rsscheckdays']; ?>" />
7249
+ </td>
7250
+ </tr>
7251
+ <tr><td colspan="2"><hr /></td></tr>
7252
  <tr>
7253
  <td>
7254
  <input class="button" type='submit' id="duplicatecheck" name="duplicatecheck" value="<?php _e( 'Check Duplicate Links', 'link-library' ); ?>" />
8315
  'meta_value' => ' ',
8316
  'meta_compare' => '!=',
8317
  'posts_per_page' => 1,
8318
+ 'paged' => ( isset( $_POST['index'] ) ? intval( $_POST['index'] ) : 1 )
8319
  );
8320
 
8321
  if ( 'reciprocal' == $check_type ) {
8322
  $args['meta_key'] = 'link_reciprocal';
 
8323
  } elseif ( 'broken' == $check_type ) {
8324
  $args['meta_key'] = 'link_url';
8325
+ } elseif( 'rss' == $check_type ) {
8326
+ $args['meta_key'] = 'link_rss';
8327
  }
8328
 
8329
  $the_link_query = new WP_Query( $args );
8334
 
8335
  global $my_link_library_plugin;
8336
  $link_url = get_post_meta( get_the_ID(), 'link_url', true );
8337
+ $link_rss = get_post_meta( get_the_ID(), 'link_rss', true );
8338
 
8339
  if ( 'reciprocal' == $check_type ) {
8340
  $link_reciprocal = get_post_meta( get_the_ID(), 'link_reciprocal', true );
8341
  $reciprocal_result = $my_link_library_plugin->CheckReciprocalLink( $RecipCheckAddress, $link_reciprocal, 'reciprocal' );
8342
  } elseif ( 'broken' == $check_type ) {
8343
  $reciprocal_result = $my_link_library_plugin->CheckReciprocalLink( $RecipCheckAddress, $link_url, 'broken' );
8344
+ } elseif ( 'rss' == $check_type ) {
8345
+ $reciprocal_result = $my_link_library_plugin->CheckReciprocalLink( $RecipCheckAddress, $link_rss, 'rss' );
8346
+ }
8347
 
8348
  $broken_responses = array( 'exists_redirected', 'exists_protocol_redirect', 'exists_subdomain_redirect', 'exists_redirected_subfolder', 'exists_redirected_fileurl' );
8349
 
8367
 
8368
  if ( ( 'reciprocal' == $check_type && $reciprocal_result == 'exists_found' ) || 'broken' == $check_type && !in_array( $reciprocal_result, $broken_responses ) && strpos( $reciprocal_result, 'exists' ) !== false ) {
8369
  echo '<div class="nextcheckitem"></div>';
8370
+ wp_reset_postdata();
8371
+ die();
8372
+ }
8373
+
8374
+ $old_rss = false;
8375
+
8376
+ if ( 'rss' == $check_type ) {
8377
+ if ( !empty( $link_rss ) ) {
8378
+ $rss = fetch_feed( $link_rss );
8379
+ if ( !is_wp_error( $rss ) ) {
8380
+ $maxitems = $rss->get_item_quantity( 1 );
8381
+
8382
+ $current_link_simplepie_objects = $rss->get_items( 0, $maxitems );
8383
+
8384
+ if ( $current_link_simplepie_objects ) {
8385
+ foreach ( $current_link_simplepie_objects as $index => $item ) {
8386
+ $pub_timestamp = strtotime( $item->get_date( 'F j, Y, g:i a' ) );
8387
+
8388
+ $date_diff = time() - $pub_timestamp;
8389
+ $time_limit = intval( $genoptions['rsscheckdays'] ) * 86400;
8390
+
8391
+ if ( $date_diff > $time_limit ) {
8392
+ $old_rss = true;
8393
+ } elseif ( !in_array( $reciprocal_result, $broken_responses ) && strpos( $reciprocal_result, 'exists' ) !== false ) {
8394
+ echo '<div class="nextcheckitem"></div>';
8395
+ wp_reset_postdata();
8396
+ die();
8397
+ }
8398
+ }
8399
+ }
8400
+ }
8401
+ }
8402
  }
8403
 
8404
  echo '<a href="' . $link_url . '">' . get_the_title() . '</a>: ';
8405
 
8406
+ if ( ( 'rss' == $check_type || 'broken' == $check_type ) && $reciprocal_result == 'exists_redirected' ) {
8407
  echo '<span style="color: #FF0000">' . __( 'Redirected to a different address', 'link-library' ) . '</span>';
8408
+ } elseif ( ( 'rss' == $check_type || 'broken' == $check_type ) && $reciprocal_result == 'exists_protocol_redirect' ) {
8409
  echo '<span style="color: #ff7948">' . __( 'Redirection to a different protocol', 'link-library' ) . '</span>';
8410
+ } elseif ( ( 'rss' == $check_type || 'broken' == $check_type ) && $reciprocal_result == 'exists_subdomain_redirect' ) {
8411
  echo '<span style="color: #6581ce">' . __( 'Redirected to a sub-domain on same server', 'link-library' ) . '</span>';
8412
+ } elseif ( ( 'rss' == $check_type || 'broken' == $check_type ) && $reciprocal_result == 'exists_redirected_subfolder' ) {
8413
  echo '<span style="color: #b362b9">' . __( 'Redirected to a different subfolder on same server', 'link-library' ) . '</span>';
8414
+ } elseif ( ( 'rss' == $check_type || 'broken' == $check_type ) && $reciprocal_result == 'exists_redirected_fileurl' ) {
8415
  echo '<span style="color: #ff4887">' . __( 'Redirected to a different subfolder on same server with bad configuration', 'link-library' ) . '</span>';
8416
  } elseif ( 'reciprocal' == $check_type && $reciprocal_result == 'exists_notfound' ) {
8417
  echo '<span style="color: #FF0000">' . __( 'Not Found', 'link-library' ) . '</span>';
8424
  echo '<span style="color: #FF0000">' . __( 'Website Unreachable', 'link-library' ) . '</span>';
8425
  }
8426
 
8427
+ if ( 'rss' == $check_type && $old_rss ) {
8428
+ if ( in_array( $reciprocal_result, $broken_responses ) ) {
8429
+ echo ' - ';
8430
+ }
8431
+ echo '<span style="color: #FF0000">' . __( 'Latest item is older than limit', 'link-library' ) . '</span>';
8432
+ }
8433
+
8434
  echo ' - <a target="linkedit' . get_the_ID() . '" href="' . esc_url( add_query_arg( array( 'action' => 'edit', 'post' => get_the_ID() ), admin_url( 'post.php' ) ) );
8435
  echo '">(' . __('Edit', 'link-library') . ')</a><br />';
8436
 
8437
  echo '<div class="nextcheckitem"></div>';
8438
  }
8439
  } else {
8440
+ if ( intval( $_POST['index'] ) == 1 ) {
8441
+ if ( 'reciprocal' == $check_type ) {
8442
+ echo __( 'There are no links with reciprocal links associated with them', 'link-library' ) . ".<br />";
8443
+ } elseif ( 'broken' == $check_type ) {
8444
+ echo __( 'There are no links to check', 'link-library' ) . ".<br />";
8445
+ } elseif ( 'rss' == $check_type ) {
8446
+ echo __( 'There are no links with RSS feeds associated with them or no errors', 'link-library' ) . ".<br />";
8447
+ }
8448
+ } else {
8449
+ echo __( 'End of report', 'link-library' );
8450
  }
 
8451
  }
8452
 
8453
  wp_reset_postdata();
link-library-defaults.php CHANGED
@@ -561,6 +561,7 @@ function ll_reset_gen_settings( $setoptions = 'return' ) {
561
  $genoptions['suppresssubdomainredirection'] = false;
562
  $genoptions['suppresssubfolderredirection'] = false;
563
  $genoptions['suppressbadconfigredirection'] = false;
 
564
 
565
  if ( 'return_and_set' == $setoptions ) {
566
  $stylesheetlocation = plugins_url( 'stylesheettemplate.css', __FILE__ );
561
  $genoptions['suppresssubdomainredirection'] = false;
562
  $genoptions['suppresssubfolderredirection'] = false;
563
  $genoptions['suppressbadconfigredirection'] = false;
564
+ $genoptions['rsscheckdays'] = 90;
565
 
566
  if ( 'return_and_set' == $setoptions ) {
567
  $stylesheetlocation = plugins_url( 'stylesheettemplate.css', __FILE__ );
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.4
7
  Author: Yannick Lefebvre
8
  Author URI: http://ylefebvre.github.io/
9
  Text Domain: link-library
@@ -1165,7 +1165,7 @@ class link_library_plugin {
1165
  $parse_original_url = parse_url( $external_link );
1166
  $parse_actual_url = parse_url( $response['http_response']->get_response_object()->url );
1167
 
1168
- if ( 'broken' == $request_type && $parse_original_url['host'] != $parse_actual_url['host'] ) {
1169
  $original_host_segments = explode( '.', $parse_original_url['host'] );
1170
  $actual_host_segments = explode( '.', $parse_actual_url['host'] );
1171
 
@@ -1176,7 +1176,7 @@ class link_library_plugin {
1176
  }
1177
  }
1178
 
1179
- if ( 'broken' == $request_type && $parse_original_url['host'] == $parse_actual_url['host'] && $link_url_without_protocol != $response_url_without_protocol ) {
1180
  $basename = basename( $parse_actual_url['path'] );
1181
  if ( false !== strpos( $basename, '.' ) ) {
1182
  return 'exists_redirected_fileurl';
@@ -1185,11 +1185,11 @@ class link_library_plugin {
1185
  }
1186
  }
1187
 
1188
- if ( 'broken' == $request_type && $link_url_without_protocol != $response_url_without_protocol ) {
1189
  return 'exists_redirected';
1190
- } elseif ( 'broken' == $request_type && !empty( $original_protocol ) && !empty( $actual_protocol ) && $original_protocol != $actual_protocol ) {
1191
  return 'exists_protocol_redirect';
1192
- } elseif ( 'broken' == $request_type && empty( $RecipCheckAddress ) ) {
1193
  return 'exists_notfound';
1194
  } else {
1195
  return 'exists_found';
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.5
7
  Author: Yannick Lefebvre
8
  Author URI: http://ylefebvre.github.io/
9
  Text Domain: link-library
1165
  $parse_original_url = parse_url( $external_link );
1166
  $parse_actual_url = parse_url( $response['http_response']->get_response_object()->url );
1167
 
1168
+ if ( ( 'broken' == $request_type || 'rss' == $request_type ) && $parse_original_url['host'] != $parse_actual_url['host'] ) {
1169
  $original_host_segments = explode( '.', $parse_original_url['host'] );
1170
  $actual_host_segments = explode( '.', $parse_actual_url['host'] );
1171
 
1176
  }
1177
  }
1178
 
1179
+ if ( ( 'broken' == $request_type || 'rss' == $request_type ) && $parse_original_url['host'] == $parse_actual_url['host'] && $link_url_without_protocol != $response_url_without_protocol ) {
1180
  $basename = basename( $parse_actual_url['path'] );
1181
  if ( false !== strpos( $basename, '.' ) ) {
1182
  return 'exists_redirected_fileurl';
1185
  }
1186
  }
1187
 
1188
+ if ( ( 'broken' == $request_type || 'rss' == $request_type ) && $link_url_without_protocol != $response_url_without_protocol ) {
1189
  return 'exists_redirected';
1190
+ } elseif ( ( 'broken' == $request_type || 'rss' == $request_type ) && !empty( $original_protocol ) && !empty( $actual_protocol ) && $original_protocol != $actual_protocol ) {
1191
  return 'exists_protocol_redirect';
1192
+ } elseif ( ( 'broken' == $request_type || 'rss' == $request_type ) && empty( $RecipCheckAddress ) ) {
1193
  return 'exists_notfound';
1194
  } else {
1195
  return 'exists_found';
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.4
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.4 =
52
  * Remove current page number link from pagination
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.5
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.5 =
52
+ * Added new RSS Feed checking tool under Link Checking Tools
53
+
54
  = 7.1.4 =
55
  * Remove current page number link from pagination
56