Changeset 1999795
- Timestamp:
- 12/21/2018 02:22:58 PM (7 years ago)
- Location:
- asyncronous-bbpress-subscriptions
- Files:
-
- 4 edited
- 1 copied
-
tags/3.5 (copied) (copied from asyncronous-bbpress-subscriptions/trunk)
-
tags/3.5/asyncronous-bbpress-subscriptions.php (modified) (7 diffs)
-
tags/3.5/readme.txt (modified) (2 diffs)
-
trunk/asyncronous-bbpress-subscriptions.php (modified) (7 diffs)
-
trunk/readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
asyncronous-bbpress-subscriptions/tags/3.5/asyncronous-bbpress-subscriptions.php
r1997840 r1999795 6 6 Author: Markus Echterhoff 7 7 Author URI: https://www.markusechterhoff.com 8 Version: 3. 48 Version: 3.5 9 9 License: GPLv3 or later 10 10 Text Domain: asyncronous-bbpress-subscriptions … … 71 71 $recipients = array(); 72 72 73 if ( !$user_ids ) { 74 $recipients = apply_filters( 'abbps_recipients', $recipients ); // abbps 1.5 compatibility 75 $recipients = apply_filters( 'bbp_subscription_email_recipients', $recipients ); // bbpress forwards compatibility 76 } else { 73 if ( !empty( $user_ids ) ) { 77 74 global $wpdb; 78 75 $ids_substitution = substr( str_repeat( ',%d', count( $user_ids ) ), 1 ); … … 82 79 $recipients = array(); 83 80 } 84 $recipients = apply_filters( 'abbps_recipients', $recipients ); // abbps 1.5 compatibility 85 $recipients = apply_filters( 'bbp_subscription_email_recipients', $recipients ); // bbpress forwards compatibility 86 } 81 } 82 83 $recipients = apply_filters( 'abbps_recipients', $recipients ); // abbps 1.5 compatibility 84 $recipients = apply_filters( 'bbp_subscription_email_recipients', $recipients ); // bbpress forwards compatibility 87 85 88 86 return $recipients; … … 101 99 // Remove filters from reply content and topic title to prevent content 102 100 // from being encoded with HTML entities, wrapped in paragraph tags, etc... 103 remove_all_filters( 'bbp_get_topic_content' ); 104 remove_all_filters( 'bbp_get_topic_title' ); 101 bbp_remove_all_filters( 'bbp_get_reply_content' ); 102 bbp_remove_all_filters( 'bbp_get_topic_title' ); 103 bbp_remove_all_filters( 'the_title' ); 105 104 106 105 // collect various pieces of information … … 112 111 $user_id = bbp_get_topic_author_id( $topic_id ); // for backwards compatible filters below 113 112 113 // Restore previously removed filters 114 bbp_restore_all_filters( 'bbp_get_topic_content' ); 115 bbp_restore_all_filters( 'bbp_get_topic_title' ); 116 bbp_restore_all_filters( 'the_title' ); 117 114 118 // subject 115 119 $this->subject = sprintf( __( "[%s Forums] New Topic: \"%s\"", 'asyncronous-bbpress-subscriptions' ), $blog_name, $topic_title ); … … 172 176 // Remove filters from reply content and topic title to prevent content 173 177 // from being encoded with HTML entities, wrapped in paragraph tags, etc... 174 remove_all_filters( 'bbp_get_reply_content' ); 175 remove_all_filters( 'bbp_get_topic_title' ); 178 bbp_remove_all_filters( 'bbp_get_reply_content' ); 179 bbp_remove_all_filters( 'bbp_get_topic_title' ); 180 bbp_remove_all_filters( 'the_title' ); 176 181 177 182 // collect various pieces of information … … 181 186 $reply_url = bbp_get_reply_url( $reply_id ); 182 187 $reply_content = wp_specialchars_decode( strip_tags( bbp_get_reply_content( $reply_id ) ), ENT_QUOTES ); 188 189 // Restore previously removed filters 190 bbp_restore_all_filters( 'bbp_get_topic_content' ); 191 bbp_restore_all_filters( 'bbp_get_topic_title' ); 192 bbp_restore_all_filters( 'the_title' ); 183 193 184 194 // subject -
asyncronous-bbpress-subscriptions/tags/3.5/readme.txt
r1998592 r1999795 5 5 Requires at least: 3.6 6 6 Tested up to: 5.0 7 Stable tag: 3. 47 Stable tag: 3.5 8 8 License: GPLv3 or later 9 9 License URI: http://www.gnu.org/licenses/gpl-3.0.html … … 85 85 == Changelog == 86 86 87 = 3.5 = 88 89 * fix: in some cases email subjects contained html entities. They now contain proper characters. 90 * code improvements 91 87 92 = 3.4 = 88 93 -
asyncronous-bbpress-subscriptions/trunk/asyncronous-bbpress-subscriptions.php
r1997840 r1999795 6 6 Author: Markus Echterhoff 7 7 Author URI: https://www.markusechterhoff.com 8 Version: 3. 48 Version: 3.5 9 9 License: GPLv3 or later 10 10 Text Domain: asyncronous-bbpress-subscriptions … … 71 71 $recipients = array(); 72 72 73 if ( !$user_ids ) { 74 $recipients = apply_filters( 'abbps_recipients', $recipients ); // abbps 1.5 compatibility 75 $recipients = apply_filters( 'bbp_subscription_email_recipients', $recipients ); // bbpress forwards compatibility 76 } else { 73 if ( !empty( $user_ids ) ) { 77 74 global $wpdb; 78 75 $ids_substitution = substr( str_repeat( ',%d', count( $user_ids ) ), 1 ); … … 82 79 $recipients = array(); 83 80 } 84 $recipients = apply_filters( 'abbps_recipients', $recipients ); // abbps 1.5 compatibility 85 $recipients = apply_filters( 'bbp_subscription_email_recipients', $recipients ); // bbpress forwards compatibility 86 } 81 } 82 83 $recipients = apply_filters( 'abbps_recipients', $recipients ); // abbps 1.5 compatibility 84 $recipients = apply_filters( 'bbp_subscription_email_recipients', $recipients ); // bbpress forwards compatibility 87 85 88 86 return $recipients; … … 101 99 // Remove filters from reply content and topic title to prevent content 102 100 // from being encoded with HTML entities, wrapped in paragraph tags, etc... 103 remove_all_filters( 'bbp_get_topic_content' ); 104 remove_all_filters( 'bbp_get_topic_title' ); 101 bbp_remove_all_filters( 'bbp_get_reply_content' ); 102 bbp_remove_all_filters( 'bbp_get_topic_title' ); 103 bbp_remove_all_filters( 'the_title' ); 105 104 106 105 // collect various pieces of information … … 112 111 $user_id = bbp_get_topic_author_id( $topic_id ); // for backwards compatible filters below 113 112 113 // Restore previously removed filters 114 bbp_restore_all_filters( 'bbp_get_topic_content' ); 115 bbp_restore_all_filters( 'bbp_get_topic_title' ); 116 bbp_restore_all_filters( 'the_title' ); 117 114 118 // subject 115 119 $this->subject = sprintf( __( "[%s Forums] New Topic: \"%s\"", 'asyncronous-bbpress-subscriptions' ), $blog_name, $topic_title ); … … 172 176 // Remove filters from reply content and topic title to prevent content 173 177 // from being encoded with HTML entities, wrapped in paragraph tags, etc... 174 remove_all_filters( 'bbp_get_reply_content' ); 175 remove_all_filters( 'bbp_get_topic_title' ); 178 bbp_remove_all_filters( 'bbp_get_reply_content' ); 179 bbp_remove_all_filters( 'bbp_get_topic_title' ); 180 bbp_remove_all_filters( 'the_title' ); 176 181 177 182 // collect various pieces of information … … 181 186 $reply_url = bbp_get_reply_url( $reply_id ); 182 187 $reply_content = wp_specialchars_decode( strip_tags( bbp_get_reply_content( $reply_id ) ), ENT_QUOTES ); 188 189 // Restore previously removed filters 190 bbp_restore_all_filters( 'bbp_get_topic_content' ); 191 bbp_restore_all_filters( 'bbp_get_topic_title' ); 192 bbp_restore_all_filters( 'the_title' ); 183 193 184 194 // subject -
asyncronous-bbpress-subscriptions/trunk/readme.txt
r1998592 r1999795 5 5 Requires at least: 3.6 6 6 Tested up to: 5.0 7 Stable tag: 3. 47 Stable tag: 3.5 8 8 License: GPLv3 or later 9 9 License URI: http://www.gnu.org/licenses/gpl-3.0.html … … 85 85 == Changelog == 86 86 87 = 3.5 = 88 89 * fix: in some cases email subjects contained html entities. They now contain proper characters. 90 * code improvements 91 87 92 = 3.4 = 88 93
Note: See TracChangeset
for help on using the changeset viewer.