Changeset 7472
- Timestamp:
- 03/22/2008 09:14:49 AM (17 years ago)
- Location:
- trunk
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/edit-form-advanced.php
r7439 r7472 85 85 <p><strong><?php _e('Publish Status') ?></strong></p> 86 86 <p> 87 <select name='post_status' >87 <select name='post_status' tabindex='4'> 88 88 <?php if ( current_user_can('publish_posts') ) : // Contributors only get "Unpublished" and "Pending Review" ?> 89 89 <option<?php selected( $post->post_status, 'publish' ); selected( $post->post_status, 'private' );?> value='publish'><?php _e('Published') ?></option> … … 98 98 99 99 <?php if ( current_user_can( 'publish_posts' ) ) : ?> 100 <p><label for="post_status_private" class="selectit"><input id="post_status_private" name="post_status" type="checkbox" value="private" <?php checked($post->post_status, 'private'); ?> /> <?php _e('Keep this post private') ?></label></p>100 <p><label for="post_status_private" class="selectit"><input id="post_status_private" name="post_status" type="checkbox" value="private" <?php checked($post->post_status, 'private'); ?> tabindex="4" /> <?php _e('Keep this post private') ?></label></p> 101 101 <?php endif; ?> 102 102 <?php … … 121 121 <?php if ( current_user_can( 'publish_posts' ) ) : // Contributors don't get to choose the date of publish ?> 122 122 <p class="curtime"><?php printf($stamp, $date, $time); ?> 123 <a href="#edit_timestamp" class="edit-timestamp" ><?php _e('Edit') ?></a></p>124 125 <div id='timestampdiv'><?php touch_time(($action == 'edit') ); ?></div>123 <a href="#edit_timestamp" class="edit-timestamp" tabindex='4'><?php _e('Edit') ?></a></p> 124 125 <div id='timestampdiv'><?php touch_time(($action == 'edit'),1,4); ?></div> 126 126 <?php endif; ?> 127 127 … … 217 217 218 218 <div id="category-adder" class="wp-hidden-children"> 219 <h4><a id="category-add-toggle" href="#category-add" ><?php _e( '+ Add New Category' ); ?></a></h4>219 <h4><a id="category-add-toggle" href="#category-add" tabindex="3"><?php _e( '+ Add New Category' ); ?></a></h4> 220 220 <p id="category-add" class="wp-hidden-child"> 221 <input type="text" name="newcat" id="newcat" class="form-required form-input-tip" value="<?php _e( 'New category name' ); ?>" />222 <?php wp_dropdown_categories( array( 'hide_empty' => 0, 'name' => 'newcat_parent', 'orderby' => 'name', 'hierarchical' => 1, 'show_option_none' => __('Parent category') ) ); ?>223 <input type="button" id="category-add-sumbit" class="add:categorychecklist:categorydiv button" value="<?php _e( 'Add' ); ?>" />221 <input type="text" name="newcat" id="newcat" class="form-required form-input-tip" value="<?php _e( 'New category name' ); ?>" tabindex="3" /> 222 <?php wp_dropdown_categories( array( 'hide_empty' => 0, 'name' => 'newcat_parent', 'orderby' => 'name', 'hierarchical' => 1, 'show_option_none' => __('Parent category'), 'tab_index' => 3 ) ); ?> 223 <input type="button" id="category-add-sumbit" class="add:categorychecklist:categorydiv button" value="<?php _e( 'Add' ); ?>" tabindex="3" /> 224 224 <?php wp_nonce_field( 'add-category', '_ajax_nonce', false ); ?> 225 225 <span id="category-ajax-response"></span> … … 228 228 229 229 <ul id="category-tabs"> 230 <li class="ui-tabs-selected"><a href="#categories-all" ><?php _e( 'All Categories' ); ?></a></li>231 <li class="wp-no-js-hidden"><a href="#categories-pop" ><?php _e( 'Most Used' ); ?></a></li>230 <li class="ui-tabs-selected"><a href="#categories-all" tabindex="3"><?php _e( 'All Categories' ); ?></a></li> 231 <li class="wp-no-js-hidden"><a href="#categories-pop" tabindex="3"><?php _e( 'Most Used' ); ?></a></li> 232 232 </ul> 233 233 … … 239 239 240 240 <div id="categories-pop" class="ui-tabs-panel" style="display: none;"> 241 <ul id="categorychecklist-pop" class="categorychecklist form-no-clear" >241 <ul id="categorychecklist-pop" class="categorychecklist form-no-clear" > 242 242 <?php wp_popular_terms_checklist('category'); ?> 243 243 </ul> -
trunk/wp-admin/includes/template.php
r7468 r7472 193 193 ?> 194 194 195 <li id="<?php echo $id; ?>" >195 <li id="<?php echo $id; ?>" > 196 196 <label class="selectit" for="in-<?php echo $id; ?>"> 197 197 <input id="in-<?php echo $id; ?>" type="checkbox" value="<?php echo (int) $category->term_id; ?>" /> 198 198 <?php echo wp_specialchars( apply_filters( 'the_category', $category->name ) ); ?> 199 199 </label> -
trunk/wp-includes/category-template.php
r7130 r7472 217 217 'selected' => 0, 'hierarchical' => 0, 218 218 'name' => 'cat', 'class' => 'postform', 219 'depth' => 0 219 'depth' => 0, 'tab_index' => 0 220 220 ); 221 221 … … 226 226 extract( $r ); 227 227 228 $tab_index_attribute = ''; 229 if ( (int) $tab_index > 0 ) 230 $tab_index_attribute = " tabindex=\"$tab_index\""; 231 228 232 $categories = get_categories($r); 229 233 230 234 $output = ''; 231 235 if ( ! empty($categories) ) { 232 $output = "<select name='$name' id='$name' class='$class' >\n";236 $output = "<select name='$name' id='$name' class='$class' $tab_index_attribute>\n"; 233 237 234 238 if ( $show_option_all ) {
Note: See TracChangeset
for help on using the changeset viewer.