Opened 8 years ago
Closed 8 years ago
#43783 closed defect (bug) (duplicate)
Bulk Actions for Large Post Counts will create request URL which is too long, and browsers reject
| Reported by: |
|
Owned by: | |
|---|---|---|---|
| Milestone: | Priority: | normal | |
| Severity: | normal | Version: | 4.9.5 |
| Component: | Quick/Bulk Edit | Keywords: | |
| Focuses: | administration | Cc: |
Description
When applying bulk actions to large post counts (over 30), WP generates, at times, a URL which is so long, it will be automatically rejected by browsers and fail to even send the request.
For instance, Chrome (as well as most other browsers) limit their URL requests to a maximum of 2083 characters.
It seems that bulk actions create a set of actions to be applied to each post, and then create a post, post-id, security, and http_referer param for each post selected, which very quickly will become longer than that 2083 limit.
Our use case was in trying to set post status from draft to publish on upwards of 100 posts, the most we found we were able to do in one request was ~30. The original request created a URL which, including params, was over 11,000 characters long.
Perhaps running an AJAX call, or using post-data would alleviate this issue.
Hi @brianjfleming, welcome to WordPress Trac!
Thanks for the report, we're already tracking this issue in #10762.