WordPress.org

Make WordPress Core

Changeset 23395


Ignore:
Timestamp:
02/08/2013 06:30:09 PM (9 years ago)
Author:
markjaquith
Message:

Fix some tabbing issues on the post editing screen. Add Media no longer skipped when going backwards from content. Save Draft no longer skipped when going forwards from content.

props adamsilverstein. fixes #23195 and #22933

Location:
trunk/wp-admin
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/edit-form-advanced.php

    r23083 r23395  
    361361<div id="postdivrich" class="postarea">
    362362
    363 <?php wp_editor($post->post_content, 'content', array('dfw' => true, 'tabfocus_elements' => 'sample-permalink,post-preview', 'editor_height' => 360) ); ?>
     363<?php wp_editor($post->post_content, 'content', array('dfw' => true, 'tabfocus_elements' => 'insert-media-button,save-post', 'editor_height' => 360) ); ?>
    364364
    365365<table id="post-status-info" cellspacing="0"><tbody><tr>
  • trunk/wp-admin/includes/media.php

    r23290 r23395  
    394394    $img = '<span class="wp-media-buttons-icon"></span> ';
    395395
    396     echo '<a href="#" class="button insert-media add_media" data-editor="' . esc_attr( $editor_id ) . '" title="' . esc_attr__( 'Add Media' ) . '">' . $img . __( 'Add Media' ) . '</a>';
     396    echo '<a href="#" id="insert-media-button" class="button insert-media add_media" data-editor="' . esc_attr( $editor_id ) . '" title="' . esc_attr__( 'Add Media' ) . '">' . $img . __( 'Add Media' ) . '</a>';
    397397
    398398    // Don't use this filter. Want to add a button? Use the media_buttons action.
Note: See TracChangeset for help on using the changeset viewer.