Changeset 7275
- Timestamp:
- 06/29/2024 05:15:20 PM (6 weeks ago)
- Location:
- trunk
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk
- Property svn:mergeinfo changed
/branches/2.6 merged: 7272-7273
- Property svn:mergeinfo changed
-
trunk/package.json
r7269 r7275 1 1 { 2 2 "name": "bbpress", 3 3 4 "author": "The bbPress Contributors", 4 5 "description": "Forum software with a twist from the creators of WordPress.", -
trunk/src/includes/common/functions.php
r7268 r7275 843 843 * @param string $title The title of the content 844 844 * @param string $content The content being posted 845 * @param mixed $strict False for moderation_keys. True for blacklist_keys.845 * @param mixed $strict False for moderation_keys. True for _keys. 846 846 * String for custom keys. 847 847 * @return bool True if test is passed, false if fail … … 864 864 } 865 865 866 // Strict mode uses WordPress " blacklist" settings866 // Strict mode uses WordPress "" settings 867 867 if ( true === $strict ) { 868 868 $hook_name = 'blacklist'; 869 $option_name = ' blacklist_keys';869 $option_name = '_keys'; 870 870 871 871 // Non-strict uses WordPress "moderation" settings -
trunk/src/includes/forums/functions.php
r7268 r7275 2310 2310 $post_types = array_filter( (array) $posts_query->get( 'post_type' ) ); 2311 2311 2312 2313 2314 2315 2316 2312 2317 // Forums 2313 2318 if ( in_array( bbp_get_forum_post_type(), $post_types, true ) ) { … … 2335 2340 } 2336 2341 2337 // Some other post type besides Forums, Topics, or Replies2342 // 2338 2343 if ( ! array_diff( $post_types, bbp_get_post_types() ) ) { 2339 2344 -
trunk/src/readme.txt
r7268 r7275 7 7 Requires at least: 6.0 8 8 Tested up to: 6.5 9 Stable tag: 2. 7.0-alpha-29 Stable tag: 2. 10 10 11 11 bbPress is forum software for WordPress. -
trunk/tests/phpunit/testcases/common/functions.php
r6869 r7275 961 961 $content = 'Beware, they maybe bees hibernating.'; 962 962 963 update_option( ' blacklist_keys',"hibernating\nfoo" );963 update_option( '_keys',"hibernating\nfoo" ); 964 964 965 965 $result = bbp_check_for_moderation( $anonymous_data, $author_id, $title, $content, true ); … … 967 967 $this->assertFalse( $result ); 968 968 969 update_option( ' blacklist_keys',"foo\nbar" );969 update_option( '_keys',"foo\nbar" ); 970 970 971 971 $result = bbp_check_for_moderation( $anonymous_data, $author_id, $title, $content, true ); … … 993 993 $content = bbp_get_topic_content( $t ); 994 994 995 update_option( ' blacklist_keys',"http://example.net/banned\nfoo" );995 update_option( '_keys',"http://example.net/banned\nfoo" ); 996 996 997 997 $result = bbp_check_for_moderation( $anonymous_data, $author_id, $title, $content, true ); … … 1019 1019 $content = bbp_get_topic_content( $t ); 1020 1020 1021 update_option( ' blacklist_keys',"banned@example.net\nfoo" );1021 update_option( '_keys',"banned@example.net\nfoo" ); 1022 1022 1023 1023 $result = bbp_check_for_moderation( $anonymous_data, $author_id, $title, $content, true ); … … 1043 1043 $content = bbp_get_topic_content( $t ); 1044 1044 1045 update_option( ' blacklist_keys',"127.0.0.1\nfoo" );1045 update_option( '_keys',"127.0.0.1\nfoo" ); 1046 1046 1047 1047 $result = bbp_check_for_moderation( $anonymous_data, $author_id, $title, $content, true ); … … 1071 1071 $content = bbp_get_topic_content( $t ); 1072 1072 1073 update_option( ' blacklist_keys',"hibernating\nfoo" );1073 update_option( '_keys',"hibernating\nfoo" ); 1074 1074 1075 1075 $result = bbp_check_for_moderation( $anonymous_data, $author_id, $title, $content, true ); … … 1102 1102 $content = bbp_get_topic_content( $t ); 1103 1103 1104 update_option( ' blacklist_keys',"hibernating\nfoo" );1104 update_option( '_keys',"hibernating\nfoo" ); 1105 1105 1106 1106 $result = bbp_check_for_moderation( $anonymous_data, $author_id, $title, $content, true ); … … 1121 1121 $content = 'Beware, there maybe bees <a href="http://example.com/hibernating/>buzzing</a>, buzzing.'; 1122 1122 1123 update_option( ' blacklist_keys',"hibernating\nfoo" );1123 update_option( '_keys',"hibernating\nfoo" ); 1124 1124 1125 1125 $result = bbp_check_for_moderation( $anonymous_data, $author_id, $title, $content, true ); … … 1145 1145 $content = bbp_get_topic_content( $t ); 1146 1146 1147 update_option( ' blacklist_keys',"hibernating\nfoo" );1147 update_option( '_keys',"hibernating\nfoo" ); 1148 1148 1149 1149 $result = bbp_check_for_moderation( $anonymous_data, $author_id, $title, $content, true );
Note: See TracChangeset
for help on using the changeset viewer.