Changeset 17284
- Timestamp:
- 01/13/2011 07:14:12 AM (14 years ago)
- Location:
- trunk/wp-admin
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/includes/class-wp-posts-list-table.php
r17278 r17284 765 765 if ( is_super_admin() || current_user_can( $post_type_object->cap->edit_others_posts ) ) : 766 766 $users_opt = array( 767 'hide_if_only_one_author' => true,767 'hide_if_only_one_author' => false, 768 768 'who' => 'authors', 769 769 'name' => 'post_author', … … 776 776 777 777 if ( $authors = wp_dropdown_users( $users_opt ) ) : 778 $authors_dropdown = '<label >';778 $authors_dropdown = '<label class="inline-edit-author">'; 779 779 $authors_dropdown .= '<span class="title">' . __( 'Author' ) . '</span>'; 780 780 $authors_dropdown .= $authors; -
trunk/wp-admin/js/inline-edit-post.dev.js
r15491 r17284 146 146 // author no longer has edit caps, so we need to add them to the list of authors 147 147 $(':input[name="post_author"]', editRow).prepend('<option value="' + $('.post_author', rowData).text() + '">' + $('#' + t.type + '-' + id + ' .author').text() + '</option>'); 148 } 149 if ( $(':input[name="post_author"] option', editRow).length == 1 ) { 150 $('label.inline-edit-author', editRow).hide(); 148 151 } 149 152
Note: See TracChangeset
for help on using the changeset viewer.