Skip to content

Instantly share code, notes, and snippets.

@kovshenin
Created December 1, 2013 20:31
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kovshenin/7740346 to your computer and use it in GitHub Desktop.
Save kovshenin/7740346 to your computer and use it in GitHub Desktop.
(function(){
var original_routes = wp.themes.routes;
wp.themes.routes = original_routes.extend({
initialize: function() {
this.route( 'theme/:directory/:slug', 'wpcomtheme', function( directory, slug ) {
wp.themes.Run.view.view.expand( directory + '/' + slug );
});
return original_routes.prototype.initialize.apply( this, arguments );
}
});
}(jQuery));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment