From 9fae779a82c6ffa11e070248891333eaaebeccd8 Mon Sep 17 00:00:00 2001 From: Claude Date: Tue, 18 Aug 2026 06:38:56 +0000 Subject: [PATCH] Stop documenting 'filter' as an available field 'filter' is a property of WP_Post and WP_User rather than a column of either table. It holds the sanitization level the object was loaded with, which is 'raw' for every row 'wp post list' returns and empty for every row 'wp user list' returns. Neither tells a reader anything about the post or the user. 'wp post get' has never shown it, so listing it as available only for the list commands was inconsistent as well as useless. This drops it from the documented fields and leaves the commands alone. The property is still on the objects, so asking for it by name still produces what it always did, but nothing advertises it any more. Co-Authored-By: Claude Opus 5 Claude-Session: https://claude.ai/code/session_014SSZzqMJRDTiLiDxQEPYcL --- README.md | 2 -- src/Post_Command.php | 1 - src/User_Command.php | 1 - 3 files changed, 4 deletions(-) diff --git a/README.md b/README.md index 7760bf5b4..7e75c7654 100644 --- a/README.md +++ b/README.md @@ -3210,7 +3210,6 @@ These fields are optionally available: * post_type * post_mime_type * comment_count -* filter * url **EXAMPLES** @@ -8076,7 +8075,6 @@ These fields are optionally available: * caps * cap_key * allcaps -* filter * url **EXAMPLES** diff --git a/src/Post_Command.php b/src/Post_Command.php index fd472fbea..c05949cf7 100644 --- a/src/Post_Command.php +++ b/src/Post_Command.php @@ -668,7 +668,6 @@ protected function delete_callback( $post_id, $assoc_args ) { * * post_type * * post_mime_type * * comment_count - * * filter * * url * * ## EXAMPLES diff --git a/src/User_Command.php b/src/User_Command.php index a508059ad..5d4061fb7 100644 --- a/src/User_Command.php +++ b/src/User_Command.php @@ -115,7 +115,6 @@ public function __construct() { * * caps * * cap_key * * allcaps - * * filter * * url * * ## EXAMPLES