Skip to content
This repository has been archived by the owner on Dec 16, 2022. It is now read-only.

Focus on specific post fields that have conflicts #35

Closed
westonruter opened this issue Mar 4, 2016 · 1 comment
Closed

Focus on specific post fields that have conflicts #35

westonruter opened this issue Mar 4, 2016 · 1 comment
Assignees
Milestone

Comments

@westonruter
Copy link
Contributor

When there are post save conflicts due to concurrent editing of a post, the post fields get an error message indicating the their version of each conflicted field. In addition to showing the error message, we should focus on the first specific conflicted field (if the section is expanded), instead of just focusing on the first control regardless.

@westonruter
Copy link
Contributor Author

The \WP_Customize_Post_Setting::is_post_data_conflicted() method should return an array of the fields that are conflicted, and then the sanitize method should return a WP_Error that has each setting_property identifying the property that is conflicted.

# for free to subscribe to this conversation on GitHub. Already have an account? #.
Projects
None yet
Development

No branches or pull requests

3 participants