#10480 closed enhancement (maybelater)
Need method to display custom errors for quickedit
Reported by: |
|
Owned by: | |
---|---|---|---|
Milestone: | Priority: | normal | |
Severity: | normal | Version: | 2.8.2 |
Component: | Quick/Bulk Edit | Keywords: | |
Focuses: | Cc: |
Description
Some time ago I wrote Wypiekacz plugin. It checks if post satisfies some rules. When check result is negative, plugin displays message for the logged user. Unfortunately when post is edited with quickedit, user do not get any error message. It will be good do add mechanism do return custom error message to the client for quickedit.
Attachments (1)
Change History (8)
#3
@
15 years ago
- Keywords reporter-feedback added; 2nd-opinion removed
shouldn't there also be an is_wp_error() check over in wp_insert_post()?
#4
@
15 years ago
- Component changed from General to Quick Edit
- Keywords has-patch needs-testing removed
- Milestone changed from 3.0 to Future Release
#5
@
14 years ago
I will answer Denis' question later.
I have found another case when this update is useful - do not create/update post if custom validation done in wp_insert_post_data
fails - no matter if editing is done via QuickEdit or normal editor. Now the only way is to hook the query
filter and replace SQL with some invalid one.
Related: #18266
Note: See
TracTickets for help on using
tickets.
1st attempt