Created
March 12, 2014 17:16
-
-
Save tchebb/9511674 to your computer and use it in GitHub Desktop.
A patch to fix the incorrect filter behavior of the "MailChimp Multiple Newsletter Signup" WordPress plugin.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff -ru readykommerce-multi-newsletter-signup-light-orig/nl_signup.php readykommerce-multi-newsletter-signup-light/nl_signup.php | |
--- readykommerce-multi-newsletter-signup-light-orig/nl_signup.php 2014-02-13 09:40:23.000000000 -0500 | |
+++ readykommerce-multi-newsletter-signup-light/nl_signup.php 2014-03-12 12:58:08.000000000 -0400 | |
@@ -278,13 +278,13 @@ | |
// If is the home page, an archive, or search results | |
if(is_front_page() || is_archive() || is_search() || is_single() || is_page()) : | |
global $post; | |
- // $content = $post->post_excerpt; | |
+ | |
$file = get_post_meta( $post->ID, 'nl_file_upload', true ); | |
$file_dl_link = ''; | |
if ($file!='') { | |
$file_dl_link .= ' <a class="nl_file_dl_link" href="'.$file.'" target="_blank">'. __('Download', 'nl_signup') .'</a>'; | |
} | |
- $content = $post->post_content . $file_dl_link; | |
+ $content = $content . $file_dl_link; | |
$options = get_option( 'nl_option_name' ); | |
$nl_content_lock_enable = get_post_meta( $post->ID, 'nl_content_lock_enable', true ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment