WordPress.org

Make WordPress Core


Ignore:
Timestamp:
10/03/2017 12:21:06 AM (3 years ago)
Author:
westonruter
Message:

Customize: Add button in Publish Settings to discard unsaved changes (including drafted and scheduled), reverting Customizer to the last published state.

Props westonruter, melchoyce.
Amends [41667].
See #39896, #21666.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/class-wp-customize-manager.php

    r41670 r41694  
    36403640        </script>
    36413641        <script type="text/html" id="tmpl-customize-trash-changeset-control">
    3642             <button type="button" class="button-link button-link-delete"><?php _e( 'Trash unpublished changes' ); ?></button>
     3642            <button type="button" class="button-link button-link-delete"><?php _e( 'Discard changes' ); ?></button>
    36433643        </script>
    36443644        <?php
Note: See TracChangeset for help on using the changeset viewer.