Yank version numbers out of translated strings. TODO decide whether this should be major version only, which probably means about.php should also contain text about x.y vs x.y.z. see #18742.
git-svn-id: https://develop.svn.wordpress.org/trunk@19140 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
061c4c9841
commit
8fa35f9bbe
@ -12,19 +12,21 @@ require_once( './admin.php' );
|
||||
$title = __( 'About' );
|
||||
$parent_file = 'index.php';
|
||||
|
||||
list( $display_version ) = explode( '-', $wp_version );
|
||||
|
||||
include( './admin-header.php' );
|
||||
?>
|
||||
<div class="wrap about-wrap">
|
||||
|
||||
<h1><?php _e( 'Welcome to WordPress 3.3!' ); ?></h1>
|
||||
<h1><?php printf( __( 'Welcome to WordPress %s!' ), $display_version ); ?></h1>
|
||||
|
||||
<div class="about-text"><?php _e( 'WordPress is web software you can use to create a beautiful website or blog. We like to say that WordPress is both free and priceless at the same time.' ); ?></div>
|
||||
|
||||
<div class="wp-badge"><?php _e( 'Version 3.3' ); ?></div>
|
||||
<div class="wp-badge"><?php printf( __( 'Version %s' ), $display_version ); ?></div>
|
||||
|
||||
<h2 class="nav-tab-wrapper">
|
||||
<a href="about.php" class="nav-tab nav-tab-active">
|
||||
<?php _e( 'What’s New in 3.3' ); ?>
|
||||
<?php printf( __( 'What’s New in %s' ), $display_version ); ?>
|
||||
</a><a href="credits.php" class="nav-tab">
|
||||
<?php _e( 'Credits' ); ?>
|
||||
</a><a href="freedoms.php" class="nav-tab">
|
||||
|
@ -78,19 +78,21 @@ function _wp_credits_build_object_link( &$data ) {
|
||||
$data = '<a href="' . esc_url( $data[1] ) . '">' . $data[0] . '</a>';
|
||||
}
|
||||
|
||||
list( $display_version ) = explode( '-', $wp_version );
|
||||
|
||||
include( './admin-header.php' );
|
||||
?>
|
||||
<div class="wrap about-wrap">
|
||||
|
||||
<h1><?php _e( 'Welcome to WordPress 3.3!' ); ?></h1>
|
||||
<h1><?php printf( __( 'Welcome to WordPress %s!' ), $display_version ); ?></h1>
|
||||
|
||||
<div class="about-text"><?php _e( 'WordPress is web software you can use to create a beautiful website or blog. We like to say that WordPress is both free and priceless at the same time.' ); ?></div>
|
||||
|
||||
<div class="wp-badge"><?php _e( 'Version 3.3' ); ?></div>
|
||||
<div class="wp-badge"><?php printf( __( 'Version %s' ), $display_version ); ?></div>
|
||||
|
||||
<h2 class="nav-tab-wrapper">
|
||||
<a href="about.php" class="nav-tab">
|
||||
<?php _e( 'What’s New in 3.3' ); ?>
|
||||
<a href="about.php" class="nav-tab nav-tab-active">
|
||||
<?php printf( __( 'What’s New in %s' ), $display_version ); ?>
|
||||
</a><a href="credits.php" class="nav-tab nav-tab-active">
|
||||
<?php _e( 'Credits' ); ?>
|
||||
</a><a href="freedoms.php" class="nav-tab">
|
||||
|
@ -12,19 +12,21 @@ require_once( './admin.php' );
|
||||
$title = __( 'Freedoms' );
|
||||
$parent_file = 'index.php';
|
||||
|
||||
list( $display_version ) = explode( '-', $wp_version );
|
||||
|
||||
include( './admin-header.php' );
|
||||
?>
|
||||
<div class="wrap about-wrap">
|
||||
|
||||
<h1><?php _e( 'Welcome to WordPress 3.3!' ); ?></h1>
|
||||
<h1><?php printf( __( 'Welcome to WordPress %s!' ), $display_version ); ?></h1>
|
||||
|
||||
<div class="about-text"><?php _e( 'WordPress is web software you can use to create a beautiful website or blog. We like to say that WordPress is both free and priceless at the same time.' ); ?></div>
|
||||
|
||||
<div class="wp-badge"><?php _e( 'Version 3.3' ); ?></div>
|
||||
<div class="wp-badge"><?php printf( __( 'Version %s' ), $display_version ); ?></div>
|
||||
|
||||
<h2 class="nav-tab-wrapper">
|
||||
<a href="about.php" class="nav-tab">
|
||||
<?php _e( 'What’s New in 3.3' ); ?>
|
||||
<a href="about.php" class="nav-tab nav-tab-active">
|
||||
<?php printf( __( 'What’s New in %s' ), $display_version ); ?>
|
||||
</a><a href="credits.php" class="nav-tab">
|
||||
<?php _e( 'Credits' ); ?>
|
||||
</a><a href="freedoms.php" class="nav-tab nav-tab-active">
|
||||
|
Loading…
Reference in New Issue
Block a user