WordPress.org

Make WordPress Core

Ticket #15658: 15658_unique_classname_v2.diff

File 15658_unique_classname_v2.diff, 1.3 KB (added by batmoo, 3 years ago)

Fixes theme install as well

  • wp-admin/includes/class-wp-plugin-install-list-table.php

     
    104104                foreach ( (array) $tabs as $action => $text ) { 
    105105                        $class = ( $action == $tab ) ? ' class="current"' : ''; 
    106106                        $href = self_admin_url('plugin-install.php?tab=' . $action); 
    107                         $display_tabs[$action] = "<a href='$href'$class>$text</a>"; 
     107                        $display_tabs['plugin-install-'.$action] = "<a href='$href'$class>$text</a>"; 
    108108                } 
    109109 
    110110                return $display_tabs; 
  • wp-admin/includes/class-wp-theme-install-list-table.php

     
    116116                foreach ( (array) $tabs as $action => $text ) { 
    117117                        $class = ( $action == $tab ) ? ' class="current"' : ''; 
    118118                        $href = self_admin_url('theme-install.php?tab=' . $action); 
    119                         $display_tabs[$action] = "<a href='$href'$class>$text</a>"; 
     119                        $display_tabs['theme-install-'.$action] = "<a href='$href'$class>$text</a>"; 
    120120                } 
    121121 
    122122                return $display_tabs;