Skip to content

Instantly share code, notes, and snippets.

View eshelman's full-sized avatar

Eliot Eshelman eshelman

View GitHub Profile
@eshelman
eshelman / any-post.php.patch
Created July 22, 2013 01:34
Patches for WordPress "Broken Link Checker" Plugin (http://wordpress.org/support/plugin/broken-link-checker) Add full HTML search for Custom Fields. To apply these patches, first update Broken Link Checker to version 1.8.2. Then apply these patches inside your WordPress plugins directory (wp-content/plugins/broken-link-checker/)
--- ~/broken-link-checker/includes/any-post.php 2013-07-16 17:31:29.000000000 -0400
+++ broken-link-checker/includes/any-post.php 2013-07-21 21:27:17.000000000 -0400
@@ -74,6 +74,7 @@
//Highlight and nofollow broken links in posts & pages
if ( $this->plugin_conf->options['mark_broken_links'] || $this->plugin_conf->options['nofollow_broken_links'] ){
add_filter( 'the_content', array(&$this, 'hook_the_content') );
+ add_filter( 'blc_mark_broken_links', array(&$this, 'hook_the_content') );
if ( $this->plugin_conf->options['mark_broken_links'] && !empty( $this->plugin_conf->options['broken_link_css'] ) ){
add_action( 'wp_head', array(&$this,'hook_wp_head') );
}