[ Index ]

PHP Cross Reference of WordPress

title

Body

[close]

/wp-admin/ -> about.php (source)

   1  <?php
   2  /**
   3   * About This Version administration panel.
   4   *
   5   * @package WordPress
   6   * @subpackage Administration
   7   */
   8  
   9  /** WordPress Administration Bootstrap */
  10  require_once( dirname( __FILE__ ) . '/admin.php' );
  11  
  12  /* translators: Page title of the About WordPress page in the admin. */
  13  $title = _x( 'About', 'page title' );
  14  
  15  list( $display_version ) = explode( '-', get_bloginfo( 'version' ) );
  16  
  17  include( ABSPATH . 'wp-admin/admin-header.php' );
  18  ?>
  19      <div class="wrap about-wrap full-width-layout">
  20          <h1>
  21              <?php
  22              printf(
  23                  /* translators: %s: The current WordPress version number. */
  24                  __( 'Welcome to WordPress&nbsp;%s' ),
  25                  $display_version
  26              );
  27              ?>
  28          </h1>
  29  
  30          <p class="about-text">
  31              <?php
  32              printf(
  33                  /* translators: %s: The current WordPress version number. */
  34                  __( 'Congratulations on updating to WordPress %s! This update makes it easier than ever to fix your site if something goes wrong.' ),
  35                  $display_version
  36              );
  37              ?>
  38          </p>
  39  
  40          <div class="wp-badge">
  41              <?php
  42              printf(
  43                  /* translators: %s: The current WordPress version number. */
  44                  __( 'Version %s' ),
  45                  $display_version
  46              );
  47              ?>
  48          </div>
  49  
  50          <nav class="nav-tab-wrapper wp-clearfix" aria-label="<?php esc_attr_e( 'Secondary menu' ); ?>">
  51              <a href="about.php" class="nav-tab nav-tab-active" aria-current="page"><?php _e( 'What&#8217;s New' ); ?></a>
  52              <a href="credits.php" class="nav-tab"><?php _e( 'Credits' ); ?></a>
  53              <a href="freedoms.php" class="nav-tab"><?php _e( 'Freedoms' ); ?></a>
  54              <a href="privacy.php" class="nav-tab"><?php _e( 'Privacy' ); ?></a>
  55          </nav>
  56  
  57          <div class="headline-feature">
  58              <h2><?php _e( 'Keeping Your Site Safe' ); ?></h2>
  59              <p class="lead-description"><?php _e( 'WordPress 5.2 gives you even more robust tools for identifying and fixing configuration issues and fatal errors. Whether you are a developer helping clients or you manage your site solo, these tools can help get you the right information when you need it.' ); ?></p>
  60              <div class="inline-svg aligncenter">
  61                  <img src="https://s.w.org/images/core/5.2/about_maintain-wordpress-v2.svg" alt="">
  62              </div>
  63          </div>
  64  
  65          <hr />
  66  
  67          <div class="feature-section is-wide has-2-columns is-wider-left">
  68              <div class="column is-vertically-aligned-center">
  69                  <h3><?php _e( 'Site Health Check' ); ?></h3>
  70                  <p>
  71                      <?php
  72                      printf(
  73                          /* translators: 1: Link to the WordPress 5.1 release post. */
  74                          __( 'Building on <a href="%1$s">the Site Health features introduced in 5.1</a>, this release adds two new pages to help debug common configuration issues. It also adds space where developers can include debugging information for site maintainers.' ),
  75                          __( 'https://wordpress.org/news/2019/02/betty/' )
  76                      );
  77  
  78                      if ( current_user_can( 'install_plugins' ) ) {
  79                          printf(
  80                              /* translators: 1: URL to Site Health Status screen, 2: URL to Site Health Info screen. */
  81                              __( ' <a href="%1$s">Check your site status</a>, and <a href="%2$s">learn how to debug issues</a>.' ),
  82                              admin_url( 'site-health.php' ),
  83                              admin_url( 'site-health.php?tab=debug' )
  84                          );
  85                      }
  86                      ?>
  87                  </p>
  88              </div>
  89              <div class="column">
  90                  <div class="inline-svg aligncenter">
  91                      <img src="https://s.w.org/images/core/5.2/about_site-health.svg" alt="">
  92                  </div>
  93              </div>
  94          </div>
  95  
  96          <hr />
  97  
  98          <div class="feature-section is-wide has-2-columns is-wider-right">
  99              <div class="column">
 100                  <div class="inline-svg aligncenter">
 101                      <img src="https://s.w.org/images/core/5.2/about_error-protection.svg" alt="">
 102                  </div>
 103              </div>
 104              <div class="column is-vertically-aligned-center">
 105                  <h3><?php _e( 'PHP Error Protection' ); ?></h3>
 106                  <p><?php _e( 'This administrator-focused update will let you safely fix or manage fatal errors without requiring a developer. It features better handling of the so-called “white screen of death”, and a way to enter recovery mode, which pauses error-causing plugins or themes.' ); ?></p>
 107              </div>
 108          </div>
 109  
 110          <hr />
 111  
 112          <h3 class="aligncenter"><?php _e( 'Improvements for Everyone' ); ?></h3>
 113  
 114          <div class="has-2-columns">
 115              <div class="column aligncenter">
 116                  <h4><?php _e( 'Accessibility Updates' ); ?></h4>
 117                  <p><?php _e( 'A number of changes work together to improve contextual awareness and keyboard navigation flow for those using screen readers and other assistive technologies.' ); ?></p>
 118              </div>
 119              <div class="column aligncenter">
 120                  <h4><?php _e( 'New Dashboard Icons' ); ?></h4>
 121                  <p><?php _e( 'Thirteen new icons include Instagram, a suite of icons for BuddyPress, and rotated Earth icons for global inclusion. Find them in the Dashboard and have some fun!' ); ?></p>
 122              </div>
 123          </div>
 124  
 125          <hr />
 126  
 127          <h3 class="aligncenter"><?php _e( 'Developer Happiness' ); ?></h3>
 128  
 129          <div class="has-2-columns is-fullwidth">
 130              <div class="column">
 131                  <h4><a href="https://make.wordpress.org/core/2019/03/26/coding-standards-updates-for-php-5-6/"><?php _e( 'PHP Version Bump' ); ?></a></h4>
 132                  <p><?php _e( 'The minimum supported PHP version is now 5.6.20. As of WordPress 5.2, themes and plugins can safely take advantage of namespaces, anonymous functions, and more!' ); ?></p>
 133              </div>
 134              <div class="column">
 135                  <h4><a href="https://make.wordpress.org/core/2019/04/24/developer-focused-privacy-updates-in-5-2/"><?php _e( 'Privacy Updates' ); ?></a></h4>
 136                  <p><?php _e( 'A new theme page template, a conditional function, and two CSS classes make designing and customizing the Privacy Policy page easier.' ); ?></p>
 137              </div>
 138          </div>
 139          <div class="has-2-columns is-fullwidth">
 140              <div class="column">
 141                  <h4><a href="https://make.wordpress.org/core/2019/04/24/miscellaneous-developer-updates-in-5-2/"><?php _e( 'New Body Tag Hook' ); ?></a></h4>
 142                  <p>
 143                      <?php
 144                      printf(
 145                          /* translators: 1: wp_body_open, 2: <body> */
 146                          __( '5.2 introduces a %1$s hook, which lets themes support injecting code right at the beginning of the %2$s element.' ),
 147                          '<code>wp_body_open</code>',
 148                          '<code>&lt;body&gt;</code>'
 149                      );
 150                      ?>
 151                  </p>
 152              </div>
 153              <div class="column">
 154                  <h4><a href="https://make.wordpress.org/core/2019/03/25/building-javascript/"><?php _e( 'Building JavaScript' ); ?></a></h4>
 155                  <p><?php _e( 'With the addition of webpack and Babel configurations in the @wordpress/scripts package, developers won&#8217;t have to worry about setting up complex build tools to write modern JavaScript.' ); ?></p>
 156              </div>
 157          </div>
 158  
 159          <hr />
 160  
 161          <div class="return-to-dashboard">
 162              <?php if ( current_user_can( 'update_core' ) && isset( $_GET['updated'] ) ) : ?>
 163                  <a href="<?php echo esc_url( self_admin_url( 'update-core.php' ) ); ?>">
 164                      <?php is_multisite() ? _e( 'Return to Updates' ) : _e( 'Return to Dashboard &rarr; Updates' ); ?>
 165                  </a> |
 166              <?php endif; ?>
 167              <a href="<?php echo esc_url( self_admin_url() ); ?>"><?php is_blog_admin() ? _e( 'Go to Dashboard &rarr; Home' ) : _e( 'Go to Dashboard' ); ?></a>
 168          </div>
 169      </div>
 170  <?php
 171  
 172  include( ABSPATH . 'wp-admin/admin-footer.php' );
 173  
 174  // These are strings we may use to describe maintenance/security releases, where we aim for no new strings.
 175  return;
 176  
 177  __( 'Maintenance Release' );
 178  __( 'Maintenance Releases' );
 179  
 180  __( 'Security Release' );
 181  __( 'Security Releases' );
 182  
 183  __( 'Maintenance and Security Release' );
 184  __( 'Maintenance and Security Releases' );
 185  
 186  /* translators: %s: WordPress version number. */
 187  __( '<strong>Version %s</strong> addressed one security issue.' );
 188  /* translators: %s: WordPress version number. */
 189  __( '<strong>Version %s</strong> addressed some security issues.' );
 190  
 191  /* translators: 1: WordPress version number, 2: Plural number of bugs. */
 192  _n_noop(
 193      '<strong>Version %1$s</strong> addressed %2$s bug.',
 194      '<strong>Version %1$s</strong> addressed %2$s bugs.'
 195  );
 196  
 197  /* translators: 1: WordPress version number, 2: Plural number of bugs. Singular security issue. */
 198  _n_noop(
 199      '<strong>Version %1$s</strong> addressed a security issue and fixed %2$s bug.',
 200      '<strong>Version %1$s</strong> addressed a security issue and fixed %2$s bugs.'
 201  );
 202  
 203  /* translators: 1: WordPress version number, 2: Plural number of bugs. More than one security issue. */
 204  _n_noop(
 205      '<strong>Version %1$s</strong> addressed some security issues and fixed %2$s bug.',
 206      '<strong>Version %1$s</strong> addressed some security issues and fixed %2$s bugs.'
 207  );
 208  
 209  /* translators: %s: Documentation URL. */
 210  __( 'For more information, see <a href="%s">the release notes</a>.' );


Generated: Mon Sep 23 01:00:03 2019 Cross-referenced by PHPXref 0.7.1