PageRenderTime 41ms CodeModel.GetById 14ms RepoModel.GetById 0ms app.codeStats 0ms

/wordpress3.4.2/wp-admin/about.php

https://bitbucket.org/ch3tag/mothers
PHP | 173 lines | 124 code | 37 blank | 12 comment | 2 complexity | a1660c4b134f278e8cb7bcade01fc30a MD5 | raw file
  1. <?php
  2. /**
  3. * About This Version administration panel.
  4. *
  5. * @package WordPress
  6. * @subpackage Administration
  7. */
  8. /** WordPress Administration Bootstrap */
  9. require_once( './admin.php' );
  10. $title = __( 'About' );
  11. list( $display_version ) = explode( '-', $wp_version );
  12. include( ABSPATH . 'wp-admin/admin-header.php' );
  13. ?>
  14. <div class="wrap about-wrap">
  15. <h1><?php printf( __( 'Welcome to WordPress %s' ), $display_version ); ?></h1>
  16. <div class="about-text"><?php printf( __( 'Thank you for updating to the latest version! WordPress %s is already making your website better, faster, and more attractive, just like you!' ), $display_version ); ?></div>
  17. <div class="wp-badge"><?php printf( __( 'Version %s' ), $display_version ); ?></div>
  18. <h2 class="nav-tab-wrapper">
  19. <a href="about.php" class="nav-tab nav-tab-active">
  20. <?php _e( 'What&#8217;s New' ); ?>
  21. </a><a href="credits.php" class="nav-tab">
  22. <?php _e( 'Credits' ); ?>
  23. </a><a href="freedoms.php" class="nav-tab">
  24. <?php _e( 'Freedoms' ); ?>
  25. </a>
  26. </h2>
  27. <div class="changelog point-releases">
  28. <h3><?php echo _n( 'Maintenance and Security Release', 'Maintenance and Security Releases', 2 ); ?></h3>
  29. <p><?php printf( _n( '<strong>Version %1$s</strong> addressed some security issues and fixed %2$s bug.',
  30. '<strong>Version %1$s</strong> addressed some security issues and fixed %2$s bugs.', 20 ), '3.4.2', number_format_i18n( 20 ) ); ?>
  31. <?php printf( __( 'For more information, see <a href="%s">the release notes</a>.' ), 'http://codex.wordpress.org/Version_3.4.2' ); ?>
  32. </p>
  33. <p><?php printf( _n( '<strong>Version %1$s</strong> addressed some security issues and fixed %2$s bug.',
  34. '<strong>Version %1$s</strong> addressed some security issues and fixed %2$s bugs.', 21 ), '3.4.1', number_format_i18n( 21 ) ); ?>
  35. <?php printf( __( 'For more information, see <a href="%s">the release notes</a>.' ), 'http://codex.wordpress.org/Version_3.4.1' ); ?>
  36. </p>
  37. </div>
  38. <div class="changelog">
  39. <h3><?php _e( 'Live Theme Previews' ); ?></h3>
  40. <div class="feature-section images-stagger-right">
  41. <img src="<?php echo esc_url( admin_url( 'images/screenshots/theme-customizer.png' ) ); ?>" class="image-50" />
  42. <h4><?php _e( 'Try on New Themes' ); ?></h4>
  43. <p><?php _e( 'Gone are the days of rushing to update your header, background, and the like as soon as you activate a new theme. You can now customize these options <strong>before</strong> activating a new theme. Note: this feature is available for installed themes only.' ); ?></p>
  44. <h4><?php _e( 'Customize Current Theme' ); ?></h4>
  45. <p><?php _e( 'Satisfy your curiosity and try on a fresh coat of paint &mdash; you can also use the live preview mode to customize your current theme. Look for the Customize link on the Themes screen.' ); ?></p>
  46. </div>
  47. </div>
  48. <div class="changelog">
  49. <h3><?php _e( 'Custom Headers' ); ?></h3>
  50. <div class="feature-section">
  51. <h4><?php _e( 'Flexible Sizes' ); ?></h4>
  52. <p><?php _e( 'You can decide for yourself how tall or wide your custom header image should be. From now on, themes will provide a recommended image size for custom headers rather than a fixed requirement. Note: this feature requires <a href="http://codex.wordpress.org/Custom_Headers">theme support</a>.' ); ?></p>
  53. <div class="three-col-images">
  54. <img src="<?php echo esc_url( admin_url( 'images/screenshots/flex-header-1.png' ) ); ?>" class="image-30 first-feature" />
  55. <img src="<?php echo esc_url( admin_url( 'images/screenshots/flex-header-2.png' ) ); ?>" class="image-30" />
  56. <img src="<?php echo esc_url( admin_url( 'images/screenshots/flex-header-3.png' ) ); ?>" class="image-30 last-feature" />
  57. </div>
  58. </div>
  59. <div class="feature-section images-stagger-right">
  60. <img src="<?php echo esc_url( admin_url( 'images/screenshots/flex-header-media-library.png' ) ); ?>" class="image-50" />
  61. <h4><?php _e( 'Choose from Media Library' ); ?></h4>
  62. <p><?php _e( 'Tired of re-uploading the same custom header image every time you check out a new theme? Now you can choose header images from your media library for easier customization.' ); ?></p>
  63. </div>
  64. </div>
  65. <div class="changelog">
  66. <h3><?php _e( 'Twitter Embeds' ); ?></h3>
  67. <div class="feature-section images-stagger-right">
  68. <img src="<?php echo esc_url( admin_url( 'images/screenshots/twitter-embed-1.png' ) ); ?>" class="image-30" />
  69. <img src="<?php echo esc_url( admin_url( 'images/screenshots/twitter-embed-2.png' ) ); ?>" class="image-30" />
  70. <h4><?php _e( 'Share Tweets with Style' ); ?></h4>
  71. <p><?php _e( 'You can now embed individual tweets in posts. It includes action links that allow readers to reply to, retweet, and favorite the tweet without leaving your site. Just paste a tweet URL on its own line.' ); ?></p>
  72. <p><?php printf( __( 'This works with URLs from some other sites, too. For more, see the Codex article on <a href="%s">Embeds</a>.' ), __( 'http://codex.wordpress.org/Embeds' ) ); ?></p>
  73. </div>
  74. </div>
  75. <div class="changelog">
  76. <h3><?php _e( 'Better Captions' ); ?></h3>
  77. <div class="feature-section images-stagger-right">
  78. <img src="<?php echo esc_url( admin_url( 'images/screenshots/captions-1.png' ) ); ?>" class="image-30" />
  79. <img src="<?php echo esc_url( admin_url( 'images/screenshots/captions-2.png' ) ); ?>" class="image-30" />
  80. <h4><?php _e( 'HTML Support' ); ?></h4>
  81. <p><?php _e( 'Basic HTML support has been added to the caption field in the image uploader. This allows you to add links &mdash; great for photo credits or licensing details &mdash; and basic formatting such as bold and italicized text.' ); ?></p>
  82. </div>
  83. </div>
  84. <div class="changelog">
  85. <h3><?php _e( 'Under the Hood' ); ?></h3>
  86. <div class="feature-section three-col">
  87. <div>
  88. <h4><?php _e( 'Faster WP_Query' ); ?></h4>
  89. <p><?php _e( 'Post queries have been optimized to improve performance, especially for sites with large databases.' ); ?></p>
  90. <h4><?php _e( 'Faster Translations' ); ?></h4>
  91. <p><?php _e( 'The number of strings loaded on the front end was greatly reduced, resulting in faster front page load times for localized installations.' ); ?> <?php _e( 'Also, better support for East Asian languages, right-to-left languages, theme translations, and more.' ); ?></p>
  92. </div>
  93. <div>
  94. <h4><?php _e( 'Themes API' ); ?></h4>
  95. <p><?php _e( 'WP_Theme, wp_get_themes(), wp_get_theme(). Faster, uses less memory, makes use of persistent caching.' ); ?></p>
  96. <h4><?php _e( 'Custom Header and Background API' ); ?></h4>
  97. <p><?php _e( 'Custom header and background API relocated into the theme support API.' ); ?></p>
  98. </div>
  99. <div class="last-feature">
  100. <h4><?php _e( 'XML-RPC API' ); ?></h4>
  101. <p><?php printf( __( 'A new <a href="%s">WordPress API</a> that supports custom content types and taxonomies, as well as dozens of other bug fixes and improvements.' ), __( 'http://codex.wordpress.org/XML-RPC_WordPress_API' ) ); ?></p>
  102. <h4><?php _e( 'External Libraries' ); ?></h4>
  103. <p><?php _e( 'jQuery, jQuery UI, TinyMCE, Plupload, PHPMailer, SimplePie, and other libraries were updated. jQuery UI Touch Punch was introduced.' ); ?></p>
  104. </div>
  105. </div>
  106. </div>
  107. <div class="return-to-dashboard">
  108. <?php if ( current_user_can( 'update_core' ) && isset( $_GET['updated'] ) ) : ?>
  109. <a href="<?php echo esc_url( self_admin_url( 'update-core.php' ) ); ?>"><?php
  110. is_multisite() ? _e( 'Return to Updates' ) : _e( 'Return to Dashboard &rarr; Updates' );
  111. ?></a> |
  112. <?php endif; ?>
  113. <a href="<?php echo esc_url( self_admin_url() ); ?>"><?php
  114. is_blog_admin() ? _e( 'Go to Dashboard &rarr; Home' ) : _e( 'Go to Dashboard' ); ?></a>
  115. </div>
  116. </div>
  117. <?php
  118. include( ABSPATH . 'wp-admin/admin-footer.php' );
  119. // These are strings we may use to describe maintenance/security releases, where we aim for no new strings.
  120. return;
  121. _n_noop( 'Maintenance Release', 'Maintenance Releases' );
  122. _n_noop( 'Security Release', 'Security Releases' );
  123. _n_noop( 'Maintenance and Security Release', 'Maintenance and Security Releases' );
  124. /* translators: 1: WordPress version number. */
  125. _n_noop( '<strong>Version %1$s</strong> addressed a security issue.',
  126. '<strong>Version %1$s</strong> addressed some security issues.' );
  127. /* translators: 1: WordPress version number, 2: plural number of bugs. */
  128. _n_noop( '<strong>Version %1$s</strong> addressed %2$s bug.',
  129. '<strong>Version %1$s</strong> addressed %2$s bugs.' );
  130. /* translators: 1: WordPress version number, 2: plural number of bugs. Singular security issue. */
  131. _n_noop( '<strong>Version %1$s</strong> addressed a security issue and fixed %2$s bug.',
  132. '<strong>Version %1$s</strong> addressed a security issue and fixed %2$s bugs.' );
  133. /* translators: 1: WordPress version number, 2: plural number of bugs. More than one security issue. */
  134. _n_noop( '<strong>Version %1$s</strong> addressed some security issues and fixed %2$s bug.',
  135. '<strong>Version %1$s</strong> addressed some security issues and fixed %2$s bugs.' );
  136. __( 'For more information, see <a href="%s">the release notes</a>.' );