Changeset 4119
- Timestamp:
- 09/23/2016 03:42:18 PM (8 years ago)
- 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 5 5 * @package wporg-login 6 6 */ 7 8 9 7 10 8 /** … … 15 13 } 16 14 add_action( 'after_setup_theme', 'wporg_login_setup' ); 17 18 19 15 20 16 /** … … 31 27 add_filter( 'body_class', 'wporg_login_body_class' ); 32 28 33 34 35 29 /** 36 30 * Remove the toolbar. … … 40 34 } 41 35 add_action( 'init', 'wporg_login_init' ); 42 43 36 44 37 /** … … 50 43 add_action( 'login_init', 'wporg_login_replace_css' ); 51 44 52 53 45 /** 54 46 * Enqueue scripts and styles. 55 47 */ 56 48 function wporg_login_scripts() { 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 remove_action( 'wp_head','wp_oembed_add_discovery_links' );77 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' ); 78 70 } 79 71 add_action( 'wp_enqueue_scripts', 'wporg_login_scripts' ); -
sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-login/index.php
r2536 r4119 11 11 * Test if the path we're on is one that we use, depending on if it 12 12 * has a partial or not, or load the 404 partial as fallback. 13 * 13 * 14 14 * Note that the path is first validated in WP_WPOrg_SSO::redirect_all_login_or_signup_to_sso(). 15 15 * @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> 2 2 3 3 <?php wp_login_form(); ?> 4 4 5 5 <p id="nav"> 6 <a href="/lostpassword/" title="<?php _e( 'Password Lost and Found', 'wporg-login' ); ?>"><?php _e( 'Lost password?', 'wporg-login' ); ?></a> • 6 <a href="/lostpassword/" title="<?php _e( 'Password Lost and Found', 'wporg-login' ); ?>"><?php _e( 'Lost password?', 'wporg-login' ); ?></a> • 7 7 <a href="https://wordpress.org/support/register.php" title="<?php _e( 'Create an account', 'wporg-login' ); ?>"><?php _e( 'Create an account', 'wporg-login' ); ?></a> 8 8 </p> -
sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-login/partials/lostpassword.php
r2492 r4119 1 2 3 1 <form name="lostpasswordform" id="lostpasswordform" action="/wp-login.php?action=lostpassword" method="post"> 4 2 <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.