Make WordPress Core

Ticket #27989: 27989.diff

File 27989.diff, 914 bytes (added by obenland, 11 years ago)
  • src/wp-admin/js/theme.js

     
    15591559        routes: {
    15601560                'theme-install.php?theme=:slug': 'preview',
    15611561                'theme-install.php?browse=:sort': 'sort',
     1562                'theme-install.php?tab=upload': 'upload', // Back compat
    15621563                'theme-install.php?upload': 'upload',
    15631564                'theme-install.php?search=:query': 'search',
    15641565                'theme-install.php': 'sort'
  • src/wp-admin/theme-install.php

     
    189189 * @param int $paged Number of the current page of results being viewed.
    190190 */
    191191if ( $tab ) {
     192        $paged = empty( $paged ) ? 1 : $paged;
    192193        do_action( "install_themes_{$tab}", $paged );
    193194}
    194195?>