Changeset 12694 for trunk/src/bp-core/bp-core-moderation.php
- Timestamp:
- 07/29/2020 06:44:23 PM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/bp-core/bp-core-moderation.php
r11447 r12694 142 142 143 143 // Get the moderation keys. 144 $ blacklist= trim( get_option( 'moderation_keys' ) );145 146 // Bail if blacklist is empty.147 if ( ! empty( $ blacklist) ) {144 $disallowed = trim( get_option( 'moderation_keys' ) ); 145 146 // Bail if list is empty. 147 if ( ! empty( $disallowed ) ) { 148 148 149 149 // Get words separated by new lines. 150 $words = explode( "\n", $ blacklist);150 $words = explode( "\n", $disallowed ); 151 151 152 152 // Loop through words. … … 227 227 228 228 // Get the moderation keys. 229 $blacklist = trim( get_option( 'blacklist_keys' ) ); 230 231 // Bail if blacklist is empty. 232 if ( empty( $blacklist ) ) { 229 $disallowed = get_option( 'disallowed_keys' ); 230 231 // Support for WP < 5.5. 232 if ( false === $disallowed ) { 233 $disallowed = get_option( 'blacklist_keys' ); 234 } 235 236 $disallowed = trim( $disallowed ); 237 238 // Bail if disallowed list is empty. 239 if ( empty( $disallowed ) ) { 233 240 return true; 234 241 } … … 263 270 264 271 // Get words separated by new lines. 265 $words = explode( "\n", $ blacklist);272 $words = explode( "\n", $disallowed ); 266 273 267 274 // Loop through words.
Note: See TracChangeset
for help on using the changeset viewer.