Make WordPress Core

Changeset 16710


Ignore:
Timestamp:
12/03/2010 06:51:24 PM (14 years ago)
Author:
scribu
Message:

Use more specific view classes in plugin & theme install screens. Props batmoo. Fixes #15658

Location:
trunk/wp-admin/includes
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/includes/class-wp-plugin-install-list-table.php

    r16499 r16710  
    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
  • trunk/wp-admin/includes/class-wp-theme-install-list-table.php

    r16182 r16710  
    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
Note: See TracChangeset for help on using the changeset viewer.