1 Commits
Author SHA1 Message Date
clawbot 8a48b4ffd9 Core Rule Set: WordPress's names and addresses pass on more fields (closes #245)
check / check (push) Successful in 5m1s
Each field skips only the rules its recorded requests set off:

- page on all of wp-admin, and the JSON fields title, excerpt and name
  on /wp/v2/ routes: 930120, 932120, 932250 and 932260;
- p, postId and slug on all of wp-admin, and the JSON slug on /wp/v2/
  routes: 932120 and 932260, since WordPress writes these as slugs;
- url on the block editor's link previews and embeds, and a commenter's
  url: 930120 and 932120.

Every field keeps 932235. Add 61 requests recorded from WordPress 7.1.4
with these fields.

Model: opus-5-5
2026-11-09 20:27:44 +00:00
+1 -1
View File
@@ -1123,7 +1123,7 @@ func TestWordPressBodyFieldsAreCheckedInTheQuery(t *testing.T) {
get("/wp-json/wp/v2/posts/1?json.content="+url.QueryEscape(wordpressBlock)), get("/wp-json/wp/v2/posts/1?json.content="+url.QueryEscape(wordpressBlock)),
matched(941180)) matched(941180))
wantResult(t, crs, get("/wp-json/wp/v2/posts/1?json.title=python3"), matched(932260)) wantResult(t, crs, get("/wp-json/wp/v2/posts/1?json.title=python3"), matched(932260))
wantResult(t, crs, get("/wp-comments-post.php?url=python3"), matched(932260)) wantResult(t, crs, get("/wp-comments-post.php?url=powershell"), matched(932120))
} }
// TestWordPressBodyNamesAndAddressesAreExcludedOnlyThere checks the JSON // TestWordPressBodyNamesAndAddressesAreExcludedOnlyThere checks the JSON