WordPress.org

Make WordPress Core


Ignore:
Timestamp:
12/07/2013 03:10:44 AM (6 years ago)
Author:
ryan
Message:

Make the Backbone routes pushSTate capable with ?theme=themename type urls instead of hashes. Same applies to search queries.

Props adamsilverstein, nacin
fixes #25963

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/themes.php

    r26759 r26767  
    9292    $themes = wp_prepare_themes_for_js( array( wp_get_theme() ) );
    9393}
     94wp_reset_vars( array( 'theme', 'search' ) );
    9495
    9596wp_localize_script( 'theme', '_wpThemeSettings', array(
     
    99100        'installURI'    => ( ! is_multisite() && current_user_can( 'install_themes' ) ) ? admin_url( 'theme-install.php' ) : null,
    100101        'confirmDelete' => __( "Are you sure you want to delete this theme?\n\nClick 'Cancel' to go back, 'OK' to confirm the delete." ),
    101         'root'          => admin_url( 'themes.php' ),
    102         'extraRoutes'   => '',
     102        'root'          => parse_url( admin_url( 'themes.php' ), PHP_URL_PATH ),
     103        'theme'         => esc_html( $theme ),
     104        'search'        => esc_html( $search ),
     105
    103106    ),
    104107    'l10n' => array(
     
    228231    </div>
    229232</div>
     233<div class="theme-overlay"></div>
    230234
    231235<?php
Note: See TracChangeset for help on using the changeset viewer.