WordPress.org

Make WordPress Core


Ignore:
Timestamp:
02/25/2014 07:21:58 PM (5 years ago)
Author:
markjaquith
Message:

Improve pushState, replaceState and routing for Themes page

  • Uses pushState() generally
  • Uses replaceState() when updating a search query (so no history cruft from typing)

fixes #27198. props gcorne, adamsilverstein.

File:
1 edited

Legend:

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

    r27119 r27268  
    100100        'installURI'    => ( ! is_multisite() && current_user_can( 'install_themes' ) ) ? admin_url( 'theme-install.php' ) : null,
    101101        'confirmDelete' => __( "Are you sure you want to delete this theme?\n\nClick 'Cancel' to go back, 'OK' to confirm the delete." ),
    102         'root'          => parse_url( admin_url( 'themes.php' ), PHP_URL_PATH ),
    103         'theme'         => esc_html( $theme ),
    104         'search'        => esc_html( $search ),
    105 
     102        'adminUrl'      => parse_url( admin_url(), PHP_URL_PATH ),
    106103    ),
    107104    'l10n' => array(
Note: See TracChangeset for help on using the changeset viewer.