2011-09-21 19:20:26 -04:00
< ? php
/**
* About This Version administration panel .
*
* @ package WordPress
* @ subpackage Administration
*/
/** WordPress Administration Bootstrap */
2013-09-24 20:18:11 -04:00
require_once ( dirname ( __FILE__ ) . '/admin.php' );
2011-09-21 19:20:26 -04:00
2014-04-16 13:55:15 -04:00
wp_enqueue_style ( 'wp-mediaelement' );
2014-08-27 00:40:15 -04:00
wp_enqueue_script ( 'wp-mediaelement' );
2014-09-04 11:05:18 -04:00
wp_localize_script ( 'mediaelement' , '_wpmejsSettings' , array (
'pluginPath' => includes_url ( 'js/mediaelement/' , 'relative' ),
'pauseOtherPlayers' => ''
) );
2014-04-16 13:40:14 -04:00
2011-09-21 19:20:26 -04:00
$title = __ ( 'About' );
2011-11-03 19:55:03 -04:00
list ( $display_version ) = explode ( '-' , $wp_version );
2012-01-06 12:53:41 -05:00
include ( ABSPATH . 'wp-admin/admin-header.php' );
2011-09-21 19:20:26 -04:00
?>
2014-04-16 13:55:15 -04:00
<!-- [ if lt IE 9 ] >< script > document . createElement ( 'audio' ); document . createElement ( 'video' ); </ script ><! [ endif ] -->
2011-11-03 19:13:50 -04:00
< div class = " wrap about-wrap " >
2011-09-21 19:20:26 -04:00
2013-12-06 20:34:12 -05:00
< h1 >< ? php printf ( __ ( 'Welcome to WordPress %s' ), $display_version ); ?> </h1>
2011-09-21 19:20:26 -04:00
2014-12-11 05:16:43 -05:00
< div class = " about-text " >< ? php printf ( __ ( 'Thank you for updating! WordPress %s helps you focus on your writing, and the new default theme lets you show it off in style.' ), $display_version ); ?> </div>
2011-09-21 19:20:26 -04:00
2011-11-03 19:55:03 -04:00
< div class = " wp-badge " >< ? php printf ( __ ( 'Version %s' ), $display_version ); ?> </div>
2011-11-03 19:13:50 -04:00
< h2 class = " nav-tab-wrapper " >
2011-11-03 19:23:31 -04:00
< a href = " about.php " class = " nav-tab nav-tab-active " >
2011-12-01 18:13:56 -05:00
< ? php _e ( 'What’s New' ); ?>
2011-11-03 19:23:31 -04:00
</ a >< a href = " credits.php " class = " nav-tab " >
2011-11-03 19:13:50 -04:00
< ? php _e ( 'Credits' ); ?>
2011-11-03 19:23:31 -04:00
</ a >< a href = " freedoms.php " class = " nav-tab " >
2011-11-03 19:13:50 -04:00
< ? php _e ( 'Freedoms' ); ?>
</ a >
</ h2 >
2011-09-21 19:20:26 -04:00
< div class = " changelog " >
2014-12-15 05:50:25 -05:00
< h2 class = " about-headline-callout " >< ? php _e ( 'Introducing Twenty Fifteen' ); ?> </h2>
2014-04-14 21:31:14 -04:00
< div class = " about-overview " >
2014-12-11 05:16:43 -05:00
< img class = " about-overview-img " src = " //s.w.org/images/core/3.8/twentyfourteen.jpg?1 " />
2014-04-14 21:31:14 -04:00
</ div >
2014-08-27 00:40:15 -04:00
2014-12-11 05:16:43 -05:00
< div class = " feature-section col three-col " >
2013-10-24 18:55:55 -04:00
< div class = " col-1 " >
2014-12-15 05:50:25 -05:00
< p >< ? php _e ( 'Our newest default theme, Twenty Fifteen, is a blog-focused theme designed for clarity.' ); ?> </p>
2014-09-04 11:05:18 -04:00
</ div >
2014-12-11 05:16:43 -05:00
< div class = " col-2 " >
2014-12-15 05:50:25 -05:00
< p >
< ? php printf ( __ ( 'Twenty Fifteen has flawless language support, with help from <a href="%s">Google’s Noto font family</a>.' ), 'https://www.google.com/get/noto/' ); ?>
< ? php _e ( 'The straightforward typography is readable on any screen size.' ); ?>
</ p >
2013-10-24 18:55:55 -04:00
</ div >
2014-12-11 05:16:43 -05:00
< div class = " col-3 last-feature " >
2014-12-15 05:50:25 -05:00
< p >< ? php _e ( 'Your content always takes center stage, whether viewed on a phone, tablet, laptop, or desktop computer.' ); ?> </p>
2013-10-24 18:55:12 -04:00
</ div >
2011-11-22 11:07:36 -05:00
</ div >
2014-04-14 21:31:14 -04:00
2014-12-11 05:16:43 -05:00
</ div >
2014-04-14 21:31:14 -04:00
2014-12-11 05:16:43 -05:00
< hr />
< div class = " changelog " >
2014-12-15 05:50:25 -05:00
< h2 class = " about-headline-callout " >< ? php _e ( 'Distraction-free writing' ); ?> </h2>
2014-12-11 05:16:43 -05:00
< div class = " feature-section " >
2014-12-15 05:50:25 -05:00
< p >< em >< ? php _e ( 'Just write.' ); ?> </em> <?php _e( 'Sometimes, you just need to concentrate on putting your thoughts into words. Try turning on <strong>distraction-free writing mode</strong>. When you start typing, all the distractions will fade away, letting you focus solely on your writing. All your editing tools instantly return when you need them.' ); ?></p>
2012-06-01 21:16:35 -04:00
</ div >
2014-12-11 05:16:43 -05:00
</ div >
2012-06-01 21:16:35 -04:00
2014-12-11 05:16:43 -05:00
< hr />
< div class = " changelog under-the-hood " >
2014-12-15 05:50:25 -05:00
< h3 >< ? php _e ( 'The Finer Points' ); ?> </h3>
2013-12-06 02:50:12 -05:00
2013-10-24 18:54:13 -04:00
< div class = " feature-section col two-col " >
2014-12-11 05:16:43 -05:00
< div >
2014-12-15 05:50:25 -05:00
< h4 >< ? php _e ( 'Choose a language' ); ?> </h4>
< p >< ? php
$count = '<span id="translations-count">' . 40 . '</span>' ;
$string = __ ( 'Right now, WordPress %1$s is already translated into %2$s languages, with more always in progress. You can switch to any translation on the <a href="%3$s">General Settings</a> screen.' );
if ( ! current_user_can ( 'manage_options' ) ) {
$string = strip_tags ( $string );
}
echo sprintf ( $string , $display_version , $count , admin_url ( 'options-general.php' ) );
?> </p>
2014-12-11 05:16:43 -05:00
2014-12-15 05:50:25 -05:00
< h4 >< ? php _e ( 'Log out everywhere' ); ?> </h4>
2014-12-11 05:16:43 -05:00
< p >< ? php printf ( ( 'There’s a new tool on <a href="%s">your profile</a> that logs you out everywhere, for those times you forget to log off a shared computer.' ), get_edit_profile_url () ); ?> </p>
2013-10-24 18:53:14 -04:00
</ div >
2014-12-15 05:50:25 -05:00
2014-12-11 05:16:43 -05:00
< div class = " last-feature " >
2014-12-15 05:50:25 -05:00
< h4 >< ? php _e ( 'Vine embeds' ); ?> </h4>
2014-12-11 05:16:43 -05:00
< p >< ? php printf ( ( 'Embedding videos from Vine is as simple as pasting a URL onto its own line in a post. For more, see the Codex article on <a href="%s">Embeds</a>.' ), 'http://codex.wordpress.org/Embeds' ); ?> </p>
2014-12-15 05:50:25 -05:00
< h4 >< ? php _e ( 'Plugin recommendations' ); ?> </h4>
< p >< ? php
$string = ( 'The <a href="%s">plugin installer</a> now offers a list of plugins you may want to try, based on others who have similar plugins installed as you.' );
if ( ! current_user_can ( 'install_plugins' ) ) {
$string = strip_tags ( $string );
}
echo sprintf ( $string , network_admin_url ( 'plugin-install.php?tab=recommended' ) );
?> </p>
2013-10-24 18:53:14 -04:00
</ div >
</ div >
2013-10-24 18:54:13 -04:00
</ div >
2014-05-18 16:33:15 -04:00
< hr />
2013-12-06 02:50:12 -05:00
2014-04-14 21:31:14 -04:00
< div class = " changelog under-the-hood " >
2014-04-08 13:47:15 -04:00
< h3 >< ? php _e ( 'Under the Hood' ); ?> </h3>
2013-12-06 02:50:12 -05:00
2014-12-11 05:16:43 -05:00
< div class = " feature-section col two-col " >
2013-12-06 02:50:12 -05:00
< div >
2014-12-15 05:50:25 -05:00
< h4 >< ? php _e ( 'Complex Queries' ); ?> </h4>
< p >< ? php printf ( __ ( 'Metadata, date, and term queries now support advanced conditional logic, like nested clauses and multiple operators — <code>%s</code>.' ), 'A AND ( B OR C )' ); ?> </p>
2014-12-11 05:16:43 -05:00
2014-12-15 05:50:25 -05:00
< h4 >< ? php _e ( 'Customizer API' ); ?> </h4>
2014-12-11 05:16:43 -05:00
< p >< ? php echo ( 'The customizer now supports conditionally showing panels and sections based on the page being previewed.' ); ?> </p>
2014-04-08 13:47:15 -04:00
</ div >
2014-12-11 05:16:43 -05:00
< div class = " last-feature " >
2014-12-15 05:50:25 -05:00
< h4 >< ? php
/* translators: %s: "<title>" tag */
printf ( __ ( '%s tags in themes' ), '<code><title></code>' );
?> </h4>
2014-08-27 00:40:15 -04:00
< p >< ? php
2014-12-15 05:50:25 -05:00
printf ( __ ( '%s tells WordPress to handle the complexities of document titles.' ), " <code>add_theme_support( 'title-tag' )</code> " );
2014-08-27 00:40:15 -04:00
?> </p>
2014-12-11 05:16:43 -05:00
2014-12-15 05:50:25 -05:00
< h4 >< ? php _e ( 'Developer Reference' ); ?> </h4>
< p >< ? php printf ( __ ( 'Continued improvements to inline code documentation have made the <a href="%s">developer reference</a> more complete than ever.' ), 'https://developer.wordpress.org/reference/' ); ?> </p>
2013-12-06 02:50:12 -05:00
</ div >
2014-05-18 16:33:15 -04:00
</ div >
2013-12-06 02:50:12 -05:00
2014-05-18 16:33:15 -04:00
< hr />
< div class = " return-to-dashboard " >
< ? php if ( current_user_can ( 'update_core' ) && isset ( $_GET [ 'updated' ] ) ) : ?>
< a href = " <?php echo esc_url( self_admin_url( 'update-core.php' ) ); ?> " >< ? php
is_multisite () ? _e ( 'Return to Updates' ) : _e ( 'Return to Dashboard → Updates' );
?> </a> |
< ? php endif ; ?>
< a href = " <?php echo esc_url( self_admin_url() ); ?> " >< ? php
is_blog_admin () ? _e ( 'Go to Dashboard → Home' ) : _e ( 'Go to Dashboard' ); ?> </a>
</ div >
2013-12-06 02:50:12 -05:00
2011-11-03 19:13:50 -04:00
</ div >
2011-09-21 19:20:26 -04:00
</ div >
2014-12-15 05:50:25 -05:00
< script >
jQuery ( document ) . ready ( function ( $ ) {
$ . ajax ( 'https://api.wordpress.org/translations/core/1.0/?version=4.1' ,
{ 'type' : 'HEAD' } ) . done ( function ( data , textStatus , jqXHR ) {
var count = jqXHR . getResponseHeader ( 'X-Translations-Count' );
if ( count ) {
$ ( '#translations-count' ) . text ( count );
}
});
});
</ script >
2011-09-21 19:20:26 -04:00
< ? php
2012-01-06 12:53:41 -05:00
include ( ABSPATH . 'wp-admin/admin-footer.php' );
2011-12-01 18:13:56 -05:00
// These are strings we may use to describe maintenance/security releases, where we aim for no new strings.
return ;
_n_noop ( 'Maintenance Release' , 'Maintenance Releases' );
_n_noop ( 'Security Release' , 'Security Releases' );
_n_noop ( 'Maintenance and Security Release' , 'Maintenance and Security Releases' );
/* translators: 1: WordPress version number. */
_n_noop ( '<strong>Version %1$s</strong> addressed a security issue.' ,
'<strong>Version %1$s</strong> addressed some security issues.' );
2011-12-02 12:17:08 -05:00
/* translators: 1: WordPress version number, 2: plural number of bugs. */
_n_noop ( '<strong>Version %1$s</strong> addressed %2$s bug.' ,
2011-12-01 18:13:56 -05:00
'<strong>Version %1$s</strong> addressed %2$s bugs.' );
2011-12-02 12:17:08 -05:00
/* translators: 1: WordPress version number, 2: plural number of bugs. Singular security issue. */
_n_noop ( '<strong>Version %1$s</strong> addressed a security issue and fixed %2$s bug.' ,
2011-12-01 18:13:56 -05:00
'<strong>Version %1$s</strong> addressed a security issue and fixed %2$s bugs.' );
2011-12-02 12:17:08 -05:00
/* translators: 1: WordPress version number, 2: plural number of bugs. More than one security issue. */
_n_noop ( '<strong>Version %1$s</strong> addressed some security issues and fixed %2$s bug.' ,
2011-12-01 18:13:56 -05:00
'<strong>Version %1$s</strong> addressed some security issues and fixed %2$s bugs.' );
2011-12-02 12:17:08 -05:00
__ ( 'For more information, see <a href="%s">the release notes</a>.' );