WordPress.org

Make WordPress Core

Ticket #27055: 27055.42.diff

File 27055.42.diff, 689 bytes (added by gcorne, 5 years ago)
  • src/wp-admin/js/theme.js

    diff --git src/wp-admin/js/theme.js src/wp-admin/js/theme.js
    index 0b52328..77054b5 100644
    themes.Router = Backbone.Router.extend({ 
    11791179
    11801180        navigate: function() {
    11811181                if ( Backbone.history._hasPushState ) {
    1182                         Backbone.Router.navigate.apply( this, arguments );
     1182                        Backbone.Router.prototype.navigate.apply( this, arguments );
    11831183                }
    11841184        }
    11851185
    themes.InstallerRouter = Backbone.Router.extend({ 
    15821582
    15831583        navigate: function() {
    15841584                if ( Backbone.history._hasPushState ) {
    1585                         Backbone.Router.navigate.apply( this, arguments );
     1585                        Backbone.Router.prototype.navigate.apply( this, arguments );
    15861586                }
    15871587        }
    15881588});