[wp-trac] [WordPress Trac] #34993: Deleting a user no longer asks what to do with their content
WordPress Trac
noreply at wordpress.org
Thu Dec 10 23:58:43 UTC 2015
#34993: Deleting a user no longer asks what to do with their content
--------------------------+-----------------------------
Reporter: beerallica | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: 4.4.1
Component: Users | Version: 4.4
Severity: normal | Resolution:
Keywords: | Focuses: administration
--------------------------+-----------------------------
Changes (by netweb):
* version: => 4.4
* milestone: Awaiting Review => 4.4.1
Comment:
Confirming, I noticed this same thing yesterday whilst cleaning up some
users in a bbPress install.
This came from [34000]/#6405, the cause is
[https://core.trac.wordpress.org/browser/trunk/src/wp-
admin/users.php?annotate=blame#L215 wp-admin/users.php#L215] and
`'post_type' => 'any` because with `WP_Query` if the post type is set to
`any` and the post type was registered with `exclude_from_search` as
`true` (which bbPress does for all 3 CPT's registered) then WP_Query
excludes these posts from the query. Hence the "Attribute content to
another author" is not shown because the bbPress posts are excluded from
the search.
https://codex.wordpress.org/Class_Reference/WP_Query#Type_Parameters
Note: Also need to check how this has or has not changed for Multisite
([https://core.trac.wordpress.org/browser/trunk/src/wp-
admin/includes/ms.php?annotate=blame#L1057 /wp-
admin/includes/ms.php#L1057])
--
Ticket URL: <https://core.trac.wordpress.org/ticket/34993#comment:2>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list