Changeset 10898
- Timestamp:
- 04/14/2021 03:12:19 AM (4 years ago)
- Location:
- sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-login
- Files:
-
- 9 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-login/checkemail.php
r6493 r10898 12 12 13 13 <p id="nav"> 14 <a href="/"><?php _e( '← Back to login', 'wporg' ); ?></a> 14 <a href="/"><?php _e( '← Back to login', 'wporg' ); ?></a> • 15 <a href="<?php echo wporg_login_wordpress_url(); ?>"><?php _e( 'WordPress.org', 'wporg' ); ?></a> 15 16 </p> 16 17 -
sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-login/functions.php
r10850 r10898 460 460 461 461 // This is the login messages, which is displayed on wp-login.php, which does not use wp_login_form() or it's actions. 462 function wp _login_errors_message( $errors, $redirect_to ) {462 function wporg_login_errors_message( $errors, $redirect_to ) { 463 463 $errors->add( 464 464 'pre_login_message', … … 470 470 return $errors; 471 471 } 472 add_filter( 'wp_login_errors', 'wp _login_errors_message', 10, 2 );472 add_filter( 'wp_login_errors', 'wporg_login_errors_message', 10, 2 ); 473 473 474 474 /** … … 477 477 * See https://core.trac.wordpress.org/ticket/52915 478 478 */ 479 function wp _login_errors_nicify( $errors, $redirect_to ) {479 function wporg_login_errors_nicify( $errors, $redirect_to ) { 480 480 481 481 $replace_errors = [ … … 499 499 return $errors; 500 500 } 501 add_filter( 'wp_login_errors', 'wp_login_errors_nicify', 10, 2 ); 501 add_filter( 'wp_login_errors', 'wporg_login_errors_nicify', 10, 2 ); 502 503 /** 504 * Fetch the URL to the locales WordPress.org site. 505 */ 506 function wporg_login_wordpress_url() { 507 /* This pulls the translation from the WordPress translations, mimicking wp-login.php */ 508 $url = apply_filters( 'login_headerurl', translate( 'https://wordpress.org/' ) ); 509 510 if ( ! $url || false === stripos( $url, '.wordpress.org' ) ) { 511 $url = 'https://wordpress.org/'; 512 } 513 514 return esc_url( $url ); 515 } -
sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-login/header.php
r10830 r10898 20 20 21 21 <div id="login"> 22 <h1><a href="<?php /* This mimicks the wp-login.php header */ echo apply_filters( 'login_headerurl', __( 'https://wordpress.org/' ) ); ?>" tabindex="-1"><?php /* This mimicks the wp-login.php header */ _e( 'Powered by WordPress' ); ?></a></h1> 22 <?php /* The following translation pulls from the WordPress translations, mimicking wp-login.php intentionally for consistency. */ ?> 23 <h1><a href="<?php echo wporg_login_wordpress_url(); ?>" tabindex="-1"><?php echo translate( 'Powered by WordPress' ); ?></a></h1> -
sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-login/linkexpired.php
r10325 r10898 33 33 34 34 <p id="nav"> 35 <a href="/"><?php _e( '← Back to login', 'wporg' ); ?></a> 35 <a href="/"><?php _e( '← Back to login', 'wporg' ); ?></a> • 36 <a href="<?php echo wporg_login_wordpress_url(); ?>"><?php _e( 'WordPress.org', 'wporg' ); ?></a> 36 37 </p> 37 38 -
sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-login/loggedout.php
r9830 r10898 12 12 13 13 <p id="nav"> 14 <a href="/"><?php _e( '← Back to login', 'wporg' ); ?></a> 14 <a href="/"><?php _e( '← Back to login', 'wporg' ); ?></a> • 15 <a href="<?php echo wporg_login_wordpress_url(); ?>"><?php _e( 'WordPress.org', 'wporg' ); ?></a> 15 16 </p> 16 17 -
sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-login/pending-create.php
r9835 r10898 139 139 140 140 <p id="nav"> 141 <a href=" https://wordpress.org/"><?php _e( 'WordPress.org', 'wporg' ); ?></a>141 <a href="<?php echo wporg_login_wordpress_url(); ?>"><?php _e( 'WordPress.org', 'wporg' ); ?></a> 142 142 </p> 143 143 -
sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-login/pending-profile.php
r10029 r10898 86 86 87 87 <p id="nav"> 88 <a href=" https://wordpress.org/"><?php _e( 'WordPress.org', 'wporg' ); ?></a>88 <a href="<?php echo wporg_login_wordpress_url(); ?>"><?php _e( 'WordPress.org', 'wporg' ); ?></a> 89 89 </p> 90 90 -
sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-login/register.php
r10288 r10898 99 99 <p id="nav"> 100 100 <a href="/" title="<?php esc_attr_e( 'Already have an account?', 'wporg' ); ?>"><?php _e( 'Already have an account?', 'wporg' ); ?></a> • 101 <a href="https://wordpress.org/"><?php _e( 'WordPress.org', 'wporg' ); ?></a> 102 101 <a href="<?php echo wporg_login_wordpress_url(); ?>"><?php _e( 'WordPress.org', 'wporg' ); ?></a> 103 102 </p> 104 103 -
sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-login/updated-tos.php
r10889 r10898 37 37 } 38 38 39 // Localised domain for about pages. 40 $localised_domain = parse_url( wporg_login_wordpress_url(), PHP_URL_HOST ); 41 39 42 get_header(); 40 43 ?> … … 54 57 55 58 <p> 56 <a href=" <?php _eu( 'https://wordpress.org/about/privacy/', 'wporg' ); ?>"><?php _eu( 'Privacy Policy', 'wporg' ); ?></a>59 <a href="https://<?php echo $localised_domain; ?>/about/privacy/"><?php _e( 'Privacy Policy', 'wporg' ); ?></a> 57 60 </p> 58 61 <?php /* ?> 59 62 <p> 60 <a href=" <?php _eu( 'https://wordpress.org/about/terms-of-service/', 'wporg' ); ?>"><?php _eu( 'Terms of Service', 'wporg' ); ?></a>63 <a href="https://<?php echo $localised_domain; ?>/about/terms-of-service/"><?php _eu( 'Terms of Service', 'wporg' ); ?></a> 61 64 </p> 62 65 <p> 63 <a href=" <?php _eu( 'https://wordpress.org/about/code-of-conduct/', 'wporg' ); ?>"><?php _eu( 'Code of Conduct', 'wporg' ); ?></a>66 <a href="https://<?php echo $localised_domain; ?>/code-of-conduct/"><?php _eu( 'Code of Conduct', 'wporg' ); ?></a> 64 67 </p> 65 68 <?php //*/ ?> … … 76 79 77 80 <p class="center"> 78 <a href=" https://wordpress.org/" style="font-style: italic;"><?php _eu( 'I do not agree', 'wporg' ); ?></a>81 <a href="<?php echo wporg_login_wordpress_url(); ?>" style="font-style: italic;"><?php _eu( 'I do not agree', 'wporg' ); ?></a> 79 82 </p> 80 83 81 84 <p id="nav"> 82 <a href="/"><?php _e( '← Back to login', 'wporg' ); ?></a> 85 <a href="/"><?php _e( '← Back to login', 'wporg' ); ?></a> • 86 <a href="<?php echo wporg_login_wordpress_url(); ?>"><?php _e( 'WordPress.org', 'wporg' ); ?></a> 83 87 </p> 84 88
Note: See TracChangeset
for help on using the changeset viewer.