Making WordPress.org

Changeset 4119


Ignore:
Timestamp:
09/23/2016 03:42:18 PM (5 years ago)
Author:
ocean90
Message:

Login Theme: Remove trailing whitespace, use tabs for indentation, make intro text translatable.

Location:
sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-login
Files:
4 edited

Legend:

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

    r2580 r4119  
    55 * @package wporg-login
    66 */
    7 
    8 
    97
    108/**
     
    1513}
    1614add_action( 'after_setup_theme', 'wporg_login_setup' );
    17 
    18 
    1915
    2016/**
     
    3127add_filter( 'body_class', 'wporg_login_body_class' );
    3228
    33 
    34 
    3529/**
    3630 * Remove the toolbar.
     
    4034}
    4135add_action( 'init', 'wporg_login_init' );
    42 
    4336
    4437/**
     
    5043add_action( 'login_init', 'wporg_login_replace_css' );
    5144
    52 
    5345/**
    5446 * Enqueue scripts and styles.
    5547 */
    5648function wporg_login_scripts() {
    57     $script_debug = defined( 'SCRIPT_DEBUG' ) && SCRIPT_DEBUG;
    58     $suffix       = $script_debug ? '' : '.min';
    59  
    60     // Concatenates core scripts when possible.
    61     if ( ! $script_debug ) {
    62         $GLOBALS['concatenate_scripts'] = true;
    63     }
    64  
    65     wp_enqueue_style( 'wporg-normalize', get_template_directory_uri() . '/stylesheets/normalize.css', 3 );
    66     wp_enqueue_style( 'wporg-login', get_template_directory_uri() . '/stylesheets/login.css', array( 'login', 'dashicons', 'l10n' ), 2.3 );
    67  
    68     // No emoji support needed.
    69     remove_action( 'wp_head', 'print_emoji_detection_script', 7 );
    70     remove_action( 'wp_print_styles', 'print_emoji_styles' );
    71  
    72     // No Jetpack styles needed.
    73     add_filter( 'jetpack_implode_frontend_css', '__return_false' );
    74  
    75     // No embeds needed.
    76     remove_action( 'wp_head','wp_oembed_add_discovery_links' );
    77     remove_action( 'wp_head', 'wp_oembed_add_host_js' );
     49    $script_debug = defined( 'SCRIPT_DEBUG' ) && SCRIPT_DEBUG;
     50    $suffix       = $script_debug ? '' : '.min';
     51
     52    // Concatenates core scripts when possible.
     53    if ( ! $script_debug ) {
     54        $GLOBALS['concatenate_scripts'] = true;
     55    }
     56
     57    wp_enqueue_style( 'wporg-normalize', get_template_directory_uri() . '/stylesheets/normalize.css', 3 );
     58    wp_enqueue_style( 'wporg-login', get_template_directory_uri() . '/stylesheets/login.css', array( 'login', 'dashicons', 'l10n' ), 2.3 );
     59
     60    // No emoji support needed.
     61    remove_action( 'wp_head', 'print_emoji_detection_script', 7 );
     62    remove_action( 'wp_print_styles', 'print_emoji_styles' );
     63
     64    // No Jetpack styles needed.
     65    add_filter( 'jetpack_implode_frontend_css', '__return_false' );
     66
     67    // No embeds needed.
     68    remove_action( 'wp_head', 'wp_oembed_add_discovery_links' );
     69    remove_action( 'wp_head', 'wp_oembed_add_host_js' );
    7870}
    7971add_action( 'wp_enqueue_scripts', 'wporg_login_scripts' );
  • sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-login/index.php

    r2536 r4119  
    1111 * Test if the path we're on is one that we use, depending on if it
    1212 * has a partial or not, or load the 404 partial as fallback.
    13  * 
     13 *
    1414 * Note that the path is first validated in WP_WPOrg_SSO::redirect_all_login_or_signup_to_sso().
    1515 * @see https://meta.trac.wordpress.org/browser/sites/trunk/common/includes/wporg-sso/wp-plugin.php
  • sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-login/partials/login.php

    r2492 r4119  
    1 <p class="intro">Log in to your WordPress.org account to contribute to WordPress, get help in the support forum, or rate and review themes and plugins.</p>
     1<p class="intro"><?php _e( 'Log in to your WordPress.org account to contribute to WordPress, get help in the support forum, or rate and review themes and plugins.', 'wporg-login' ); ?></p>
    22
    33<?php wp_login_form(); ?>
    44
    55<p id="nav">
    6     <a href="/lostpassword/" title="<?php _e( 'Password Lost and Found', 'wporg-login' ); ?>"><?php _e( 'Lost password?', 'wporg-login' ); ?></a> &nbsp; • &nbsp; 
     6    <a href="/lostpassword/" title="<?php _e( 'Password Lost and Found', 'wporg-login' ); ?>"><?php _e( 'Lost password?', 'wporg-login' ); ?></a> &nbsp; • &nbsp;
    77    <a href="https://wordpress.org/support/register.php" title="<?php _e( 'Create an account', 'wporg-login' ); ?>"><?php _e( 'Create an account', 'wporg-login' ); ?></a>
    88</p>
  • sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-login/partials/lostpassword.php

    r2492 r4119  
    1 
    2 
    31<form name="lostpasswordform" id="lostpasswordform" action="/wp-login.php?action=lostpassword" method="post">
    42    <p class="intro"><?php _e( 'Please enter your username or email address. You will receive a link to create a new password via email.', 'wporg-login' ); ?></p>
Note: See TracChangeset for help on using the changeset viewer.