Make WordPress Core

Changeset 7480


Ignore:
Timestamp:
03/22/2008 10:19:25 PM (17 years ago)
Author:
westi
Message:

Tabindex for the Preview/View links. See #6352.

Location:
trunk
Files:
3 edited

Legend:

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

    r7472 r7480  
    7575<div id="previewview">
    7676<?php if ( 'publish' == $post->post_status ) { ?>
    77 <a href="<?php echo clean_url(get_permalink($post->ID)); ?>" target="_blank"><?php _e('View this Post'); ?></a>
     77<a href="<?php echo clean_url(get_permalink($post->ID)); ?>" target="_blank" tabindex="4"><?php _e('View this Post'); ?></a>
    7878<?php } elseif ( 'edit' == $action ) { ?>
    79 <a href="<?php echo clean_url(apply_filters('preview_post_link', add_query_arg('preview', 'true', get_permalink($post->ID)))); ?>" target="_blank"><?php _e('Preview this Post'); ?></a>
     79<a href="<?php echo clean_url(apply_filters('preview_post_link', add_query_arg('preview', 'true', get_permalink($post->ID)))); ?>" target="_blank"  tabindex="4"><?php _e('Preview this Post'); ?></a>
    8080<?php } ?>
    8181</div>
  • trunk/wp-admin/edit-page-form.php

    r7473 r7480  
    5959<div id="previewview">
    6060<?php if ( 'publish' == $post->post_status ) { ?>
    61 <a href="<?php echo clean_url(get_permalink($post->ID)); ?>" target="_blank"><?php _e('View this Page'); ?></a>
     61<a href="<?php echo clean_url(get_permalink($post->ID)); ?>" target="_blank"  tabindex="4"><?php _e('View this Page'); ?></a>
    6262<?php } elseif ( 'edit' == $action ) { ?>
    63 <a href="<?php echo clean_url(apply_filters('preview_post_link', add_query_arg('preview', 'true', get_permalink($post->ID)))); ?>" target="_blank"><?php _e('Preview this Page'); ?></a>
     63<a href="<?php echo clean_url(apply_filters('preview_post_link', add_query_arg('preview', 'true', get_permalink($post->ID)))); ?>" target="_blank" tabindex="4"><?php _e('Preview this Page'); ?></a>
    6464<?php } ?>
    6565</div>
  • trunk/wp-includes/js/autosave.js

    r7468 r7480  
    8484            getpermalinknonce: jQuery('#getpermalinknonce').val()
    8585        }, function(permalink) {
    86             jQuery('#previewview').html('<a target="_blank" href="'+permalink+'">'+previewText+'</a>');
     86            jQuery('#previewview').html('<a target="_blank" href="'+permalink+'" tabindex="4">'+previewText+'</a>');
    8787        });
    8888    }
Note: See TracChangeset for help on using the changeset viewer.