- <button type="button" class="button-subtle draft-button" aria-live="polite">
- <span class="save-draft"><?php _e( 'Save Draft' ); ?></span>
- <span class="saving-draft"><?php _e( 'Saving...' ); ?></span>
- </button>
- <a href="<?php echo esc_url( get_edit_post_link( $post_ID ) ); ?>" class="edit-post-link" style="display: none;" target="_blank"><?php _e( 'Standard Editor' ); ?></a>
- <button type="button" class="button-subtle preview-button"><?php _e( 'Preview' ); ?></button>
- <button type="button" class="button-primary publish-button"><?php echo ( current_user_can( 'publish_posts' ) ) ? __( 'Publish' ) : __( 'Submit for Review' ); ?></button>
+ <div class="split-button">
+ <div class="split-button-head">
+ <button type="button" class="publish-button split-button-primary" aria-live="polite">
+ <span class="publish"><?php echo ( current_user_can( 'publish_posts' ) ) ? __( 'Publish' ) : __( 'Submit for Review' ); ?></span>
+ <span class="saving-draft"><?php _e( 'Saving…' ); ?></span>
+ </button><button type="button" class="split-button-toggle" aria-haspopup="true" aria-expanded="false">
+ <i class="dashicons dashicons-arrow-down-alt2"></i>
+ <span class="screen-reader-text"><?php _e('More actions'); ?></span>
+ </button>
+ </div>
+ <ul class="split-button-body">
+ <li><button type="button" class="button-link draft-button split-button-option"><?php _e( 'Save Draft' ); ?></button></li>
+ <li><button type="button" class="button-link standard-editor-button split-button-option"><?php _e( 'Standard Editor' ); ?></button></li>
+ <li><button type="button" class="button-link preview-button split-button-option"><?php _e( 'Preview' ); ?></button></li>
+ </ul>
+ </div>