WordPress.org

Make WordPress Core

Ticket #15658: 15658_unique_classname.diff

File 15658_unique_classname.diff, 657 bytes (added by batmoo, 7 years ago)

prefixes classnames for tabs with 'plugin-'

  • 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-'.$action] = "<a href='$href'$class>$text</a>";
    108108                }
    109109
    110110                return $display_tabs;