Making WordPress.org

Changeset 1355


Ignore:
Timestamp:
02/28/2015 03:26:02 AM (10 years ago)
Author:
obenland
Message:

WP.org Themes: Return to author pages after closing a theme modal.

Fixes #900.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-themes/js/theme.js

    r1353 r1355  
    472472            var self = this,
    473473                args = {},
    474                 scroll, search, tags, sorter;
     474                scroll, author, search, tags, sorter;
    475475
    476476            event = event || window.event;
     
    500500
    501501                    // Clean the url structure
    502                     if ( search = $( '#wp-filter-search-input' ).val() ) {
     502                    if ( author = wp.themes.Collection.prototype.currentQuery.request.author ) {
     503                        wp.themes.router.navigate( wp.themes.router.baseUrl( 'author/' + author ) );
     504                        wp.themes.utils.title( author );
     505                    }
     506                    else if ( search = wp.themes.Collection.prototype.currentQuery.request.search ) {
    503507                        wp.themes.router.navigate( wp.themes.router.baseUrl( wp.themes.router.searchPath + search ) );
    504508                        wp.themes.utils.title( search );
Note: See TracChangeset for help on using the changeset viewer.