Make WordPress Core

Changes between Initial Version and Version 1 of Ticket #20299, comment 47


Ignore:
Timestamp:
01/12/2015 10:29:32 PM (9 years ago)
Author:
adamsilverstein
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #20299, comment 47

    initial v1  
    22 * First take, feedback welcome!
    33 * 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 autosave
    5  * Adds wp_updating_autosave when actually updating autosave
     4 * Changes wp_updating_autosave hook to wp_creating_autosave when creating autosave
     5 * Adds wp_updating_autosave hook when actually updating autosave
    66 * Sets DOING_PREVIEW so plugins know not to save meta on previews
    77 * Includes revisioned meta field values as part of autosaves (expects key name to match element ID)
     
    1111 
    1212Testing:
    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 speciy 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]