fix: restrict content-query by cap before pagination, filter hidden fields
Review fix round 1: content-query now excludes posts/statuses the user cannot edit before querying (author restriction without edit_others_posts, status filtering by edit_private_posts/edit_published_posts) instead of only dropping them after fetching, and rejects unknown field/taxonomy filters. content-types' not-found hint only lists editable types. PostPresenter skips Pods password fields and readonly protected meta. Query input gains search/terms length limits. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01At3V6SjwbMe6eMzVGW3Hs7
This commit is contained in:
+1
-1
@@ -18,7 +18,7 @@ final class PodsFieldSource implements FieldSource
|
||||
{
|
||||
private const TYPES = [
|
||||
'text' => 'string', 'website' => 'string', 'phone' => 'string', 'email' => 'string',
|
||||
'password' => 'string', 'slug' => 'string', 'color' => 'string', 'oembed' => 'string',
|
||||
'password' => 'password', 'slug' => 'string', 'color' => 'string', 'oembed' => 'string',
|
||||
'paragraph' => 'text', 'wysiwyg' => 'text', 'code' => 'text',
|
||||
'number' => 'number', 'currency' => 'number',
|
||||
'boolean' => 'boolean',
|
||||
|
||||
Reference in New Issue
Block a user