- Timestamp:
- 09/19/2022 09:06:08 PM (2 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/includes/class-wp-theme-install-list-table.php
r52947 r54215 187 187 $display_tabs = array(); 188 188 foreach ( (array) $tabs as $action => $text ) { 189 $current_link_attributes = ( $action === $tab ) ? ' class="current" aria-current="page"' : ''; 190 $href = self_admin_url( 'theme-install.php?tab=' . $action ); 191 $display_tabs[ 'theme-install-' . $action ] = "<a href='$href'$current_link_attributes>$text</a>"; 192 } 193 194 return $display_tabs; 189 $display_tabs[ 'theme-install-' . $action ] = array( 190 'url' => self_admin_url( 'theme-install.php?tab=' . $action ), 191 'label' => $text, 192 'current' => $action === $tab, 193 ); 194 } 195 196 return $this->get_views_links( $display_tabs ); 195 197 } 196 198
Note: See TracChangeset
for help on using the changeset viewer.