Making WordPress.org


Ignore:
Timestamp:
01/19/2016 05:20:35 PM (9 years ago)
Author:
stephdau
Message:

WordPress.org SSO: using fmtime() to define CSS version passed in URL, so designers like mapk can see their changes without having to modify hardcoded values every time.

See #1524

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-login/functions.php

    r2320 r2324  
    4646 */
    4747function wporg_login_replace_css() {
     48    $css_file = '/stylesheets/login.css';
    4849    wp_deregister_style( 'login' );
    49     wp_register_style( 'login', get_stylesheet_directory_uri() . '/stylesheets/login.css', array( 'buttons', 'dashicons', 'open-sans' ), '20160119' );
     50    wp_register_style( 'login', get_stylesheet_directory_uri() . $css_file, array( 'buttons', 'dashicons', 'open-sans' ), filemtime( __DIR__ . $css_file ) );
    5051}
    5152add_action( 'login_init', 'wporg_login_replace_css' );
Note: See TracChangeset for help on using the changeset viewer.