Broken Link Checker - Version 1.11.15

Version Description

  • Added integration with WP External Links plugin
Download this release

Release Info

Developer vanyukov
Plugin Icon 128x128 Broken Link Checker
Version 1.11.15
Comparing to
See all releases

Code changes from version 1.11.14 to 1.11.15

Files changed (4) hide show
  1. broken-link-checker.php +2 -2
  2. core/core.php +39 -0
  3. php52_lint.sh +0 -11
  4. readme.txt +5 -1
broken-link-checker.php CHANGED
@@ -10,9 +10,9 @@
10
  * Plugin Name: Broken Link Checker
11
  * Plugin URI: https://wordpress.org/plugins/broken-link-checker/
12
  * Description: Checks your blog for broken links and missing images and notifies you on the dashboard if any are found.
13
- * Version: 1.11.14
14
  * Author: WPMU DEV
15
- * Author URI: https://premium.wpmudev.org/
16
  * Text Domain: broken-link-checker
17
  * License: GPLv2 or later
18
  * License URI: https://www.gnu.org/licenses/gpl-2.0.html
10
  * Plugin Name: Broken Link Checker
11
  * Plugin URI: https://wordpress.org/plugins/broken-link-checker/
12
  * Description: Checks your blog for broken links and missing images and notifies you on the dashboard if any are found.
13
+ * Version: 1.11.15
14
  * Author: WPMU DEV
15
+ * Author URI: https://wpmudev.com/
16
  * Text Domain: broken-link-checker
17
  * License: GPLv2 or later
18
  * License URI: https://www.gnu.org/licenses/gpl-2.0.html
core/core.php CHANGED
@@ -154,6 +154,14 @@ if ( ! class_exists( 'wsBrokenLinkChecker' ) ) {
154
  * @return void
155
  */
156
  public function admin_footer() {
 
 
 
 
 
 
 
 
157
  if ( ! $this->conf->options['run_in_dashboard'] ) {
158
  return;
159
  }
@@ -945,6 +953,31 @@ if ( ! class_exists( 'wsBrokenLinkChecker' ) ) {
945
  </td>
946
  </tr>
947
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
948
  <tr valign="top">
949
  <th scope="row"><?php _e( 'Link tweaks', 'broken-link-checker' ); ?></th>
950
  <td>
@@ -1668,7 +1701,13 @@ if ( ! class_exists( 'wsBrokenLinkChecker' ) ) {
1668
  */
1669
  function options_page_css() {
1670
  wp_enqueue_style( 'blc-options-page', plugins_url( 'css/options-page.css', BLC_PLUGIN_FILE ), array(), '20141113' );
 
1671
  wp_enqueue_style( 'dashboard' );
 
 
 
 
 
1672
  }
1673
 
1674
 
154
  * @return void
155
  */
156
  public function admin_footer() {
157
+ $fix = filter_input( INPUT_GET, 'fix-install-button', FILTER_VALIDATE_BOOLEAN );
158
+ $tab = filter_input( INPUT_GET, 'tab', FILTER_SANITIZE_STRING );
159
+ if ( true === $fix && 'plugin-information' === $tab ) {
160
+ echo '<script>';
161
+ echo "jQuery('#plugin_install_from_iframe').on('click', function() { window.location.href = jQuery(this).attr('href'); return false;});";
162
+ echo '</script>';
163
+ }
164
+
165
  if ( ! $this->conf->options['run_in_dashboard'] ) {
166
  return;
167
  }
953
  </td>
954
  </tr>
955
 
956
+ <tr valign="top">
957
+ <th scope="row">
958
+ <?php _ex( 'Control external links', 'settings page', 'broken-link-checker' ); ?>
959
+ </th>
960
+ <td>
961
+ <p>
962
+ <?php
963
+ if ( defined( 'TEST_WPEL_PLUGIN_FILE' ) ) {
964
+ printf(
965
+ __( 'Configure <a target="_blank" href="%s">External Links</a> settings.', 'broken-link-checker' ),
966
+ admin_url('admin.php?page=wpel-settings-page' )
967
+ );
968
+ } else {
969
+ printf(
970
+ __( 'Install the free <a href="%s" class="thickbox open-plugin-details-modal">External Links plugin</a> to control if external links open in a new tab, and their nofollow, noopener and UGC options.', 'broken-link-checker' ),
971
+ 'plugin-install.php?fix-install-button=1&tab=plugin-information&plugin=wp-external-links&TB_iframe=true&width=772&height=691'
972
+ );
973
+ echo '<br>';
974
+ esc_html_e( "It's used on over 80,000 sites just like yours.", 'broken-link-checker' );
975
+ }
976
+ ?>
977
+ </p>
978
+ </td>
979
+ </tr>
980
+
981
  <tr valign="top">
982
  <th scope="row"><?php _e( 'Link tweaks', 'broken-link-checker' ); ?></th>
983
  <td>
1701
  */
1702
  function options_page_css() {
1703
  wp_enqueue_style( 'blc-options-page', plugins_url( 'css/options-page.css', BLC_PLUGIN_FILE ), array(), '20141113' );
1704
+
1705
  wp_enqueue_style( 'dashboard' );
1706
+
1707
+ wp_enqueue_style('plugin-install');
1708
+ wp_enqueue_script('plugin-install');
1709
+
1710
+ add_thickbox();
1711
  }
1712
 
1713
 
php52_lint.sh DELETED
@@ -1,11 +0,0 @@
1
- #!/usr/bin/env bash
2
- echo "Checking PHP 5.2 syntax..."
3
- for filename in $(find ./ -maxdepth 100 -name "*.php"); do
4
- RESULT=$(php52 -l "$filename")
5
- if ! $(echo "$RESULT" | grep -q 'No syntax errors detected in'); then
6
- echo "Syntax error found in file: $filename"
7
- echo "$RESULT"
8
- fi
9
- done
10
-
11
- echo "Done!"
 
 
 
 
 
 
 
 
 
 
 
readme.txt CHANGED
@@ -3,7 +3,7 @@ Contributors: managewp, wpmudev
3
  Tags: links, broken links, internal link, external link, broken images, seo, test links, check links, bad links
4
  Requires at least: 4.6
5
  Tested up to: 5.5
6
- Stable tag: 1.11.14
7
  License: GPLv2 or later
8
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
9
 
@@ -66,8 +66,12 @@ To upgrade your installation
66
  1. Reactivate the plugin. Your settings will be retained from the previous version.
67
 
68
  == Changelog ==
 
 
 
69
  = 1.11.14 =
70
  * Added compatibility for WP 5.5.
 
71
  = 1.11.13 =
72
  * Added filter for disabling email notifications.
73
  * Added filter to use GET requests. (Thanks to [Stian Lund](https://github.com/Pathduck))
3
  Tags: links, broken links, internal link, external link, broken images, seo, test links, check links, bad links
4
  Requires at least: 4.6
5
  Tested up to: 5.5
6
+ Stable tag: 1.11.15
7
  License: GPLv2 or later
8
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
9
 
66
  1. Reactivate the plugin. Your settings will be retained from the previous version.
67
 
68
  == Changelog ==
69
+ = 1.11.15 =
70
+ * Added integration with WP External Links plugin
71
+
72
  = 1.11.14 =
73
  * Added compatibility for WP 5.5.
74
+
75
  = 1.11.13 =
76
  * Added filter for disabling email notifications.
77
  * Added filter to use GET requests. (Thanks to [Stian Lund](https://github.com/Pathduck))