Changeset 15924
- Timestamp:
- 10/23/2010 11:22:00 AM (14 years ago)
- Location:
- trunk/wp-admin/includes
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/includes/default-list-tables.php
r15912 r15924 3607 3607 <td></td> 3608 3608 <td class='plugin-title'>"; 3609 echo '<div class="row-actions-visible">'; 3610 foreach ( $actions as $action => $link ) { 3611 $sep = end( $actions ) == $link ? '' : ' | '; 3612 echo "<span class='$action'>$link$sep</span>"; 3613 } 3614 echo "</div></td> 3609 3610 echo $this->row_actions( $actions, true ); 3611 3612 echo "</td> 3615 3613 <td class='desc'>"; 3616 3614 $plugin_meta = array(); -
trunk/wp-admin/includes/list-table.php
r15904 r15924 274 274 * 275 275 * @param array $actions The list of actions 276 * @param bool $always_visible Wether the actions should be always visible 276 277 * @return string 277 278 */ 278 function row_actions( $actions ) {279 function row_actions( $actions, $always_visible = false ) { 279 280 $action_count = count( $actions ); 280 281 $i = 0; … … 283 284 return ''; 284 285 285 $out = '<div class=" row-actions">';286 $out = '<div class="' . ( $always_visible ? 'row-actions-visible' : 'row-actions' ) . '">'; 286 287 foreach ( $actions as $action => $link ) { 287 288 ++$i;
Note: See TracChangeset
for help on using the changeset viewer.