Changes between Initial Version and Version 1 of Ticket #20299, comment 47
- Timestamp:
- 01/12/2015 10:29:32 PM (11 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #20299, comment 47
initial v1 2 2 * First take, feedback welcome! 3 3 * Requires the [https://wordpress.org/plugins/wp-post-meta-revisions/ wp-post-meta-revisioning] plugin 4 * Changes wp_updating_autosave to wp_creating_autosave when creating autosave5 * Adds wp_updating_autosave when actually updating autosave4 * Changes wp_updating_autosave hook to wp_creating_autosave when creating autosave 5 * Adds wp_updating_autosave hook when actually updating autosave 6 6 * Sets DOING_PREVIEW so plugins know not to save meta on previews 7 7 * Includes revisioned meta field values as part of autosaves (expects key name to match element ID) … … 11 11 12 12 Testing: 13 * You can test the current patch using this [https://github.com/adamsilverstein/background-meta/blob/master/background-meta.php simple plugin]; set the theme to twenty-fifteen and choose a background color. Changing and previewing you will nee the new color, but the original post will remain unaffected. Notes: checks [https://github.com/adamsilverstein/background-meta/blob/master/background-meta.php#L135 DOING_PREVIEW] to avoid saving meta during preview; uses the `wp_post_revision_meta_keys` filter to [https://github.com/adamsilverstein/background-meta/blob/master/background-meta.php#L25 speci y meta for revisioning]13 * You can test the current patch using this [https://github.com/adamsilverstein/background-meta/blob/master/background-meta.php simple plugin]; set the theme to twenty-fifteen and choose a background color. Changing and previewing you will nee the new color, but the original post will remain unaffected. Notes: checks [https://github.com/adamsilverstein/background-meta/blob/master/background-meta.php#L135 DOING_PREVIEW] to avoid saving meta during preview; uses the `wp_post_revision_meta_keys` filter to [https://github.com/adamsilverstein/background-meta/blob/master/background-meta.php#L25 specify meta for revisioning]