[ Index ]

PHP Cross Reference of WordPress Trunk (Updated Daily)

Search

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  __DIR__ . '/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  require_once  ABSPATH . 'wp-admin/admin-header.php';
  18  ?>
  19      <div class="wrap about__container">
  20  
  21          <div class="about__header">
  22              <div class="about__header-text">
  23                  <?php _e( 'Speed. Search. Security.' ); ?>
  24              </div>
  25  
  26              <div class="about__header-title">
  27                  <p>
  28                      <?php _e( 'WordPress' ); ?>
  29                      <span><?php echo $display_version; ?></span>
  30                  </p>
  31              </div>
  32  
  33              <nav class="about__header-navigation nav-tab-wrapper wp-clearfix" aria-label="<?php esc_attr_e( 'Secondary menu' ); ?>">
  34                  <a href="about.php" class="nav-tab nav-tab-active" aria-current="page"><?php _e( 'What&#8217;s New' ); ?></a>
  35                  <a href="credits.php" class="nav-tab"><?php _e( 'Credits' ); ?></a>
  36                  <a href="freedoms.php" class="nav-tab"><?php _e( 'Freedoms' ); ?></a>
  37                  <a href="privacy.php" class="nav-tab"><?php _e( 'Privacy' ); ?></a>
  38              </nav>
  39          </div>
  40  
  41          <div class="about__section is-feature has-subtle-background-color">
  42              <h1>
  43                  <?php
  44                  printf(
  45                      /* translators: %s: The current WordPress version number. */
  46                      __( 'Welcome to WordPress %s.' ),
  47                      $display_version
  48                  );
  49                  ?>
  50              </h1>
  51              <p>
  52                  <?php
  53                  printf(
  54                      /* translators: %s: The current WordPress version number. */
  55                      __( 'In WordPress %s, your site gets new power in three major areas: speed, search, and security.' ),
  56                      $display_version
  57                  );
  58                  ?>
  59              </p>
  60          </div>
  61  
  62          <hr />
  63  
  64          <div class="about__section has-1-column">
  65              <div class="column">
  66                  <h2><?php _e( 'Speed' ); ?></h2>
  67                  <p><strong><?php _e( 'Posts and pages feel faster, thanks to lazy-loaded images.' ); ?></strong></p>
  68                  <p><?php _e( 'Images give your story a lot of impact, but they can sometimes make your site seem slow.' ); ?></p>
  69                  <p><?php _e( 'In WordPress 5.5, images wait to load until they’re just about to scroll into view. The technical term is ‘lazy loading.’' ); ?></p>
  70                  <p><?php _e( 'On mobile, lazy loading can also keep browsers from loading files meant for other devices. That can save your readers money on data — and help preserve battery life.' ); ?></p>
  71              </div>
  72          </div>
  73  
  74          <div class="about__section has-1-column">
  75              <div class="column">
  76                  <h2><?php _ex( 'Search', 'sitemap' ); ?></h2>
  77                  <p><strong><?php _e( 'Say hello to your new sitemap.' ); ?></strong></p>
  78                  <p><?php _e( 'WordPress sites work well with search engines. ' ); ?></p>
  79                  <p><?php _e( 'Now, by default, WordPress 5.5 includes an XML sitemap that helps search engines discover your most important pages from the very minute you go live.' ); ?></p>
  80                  <p><?php _e( 'So more people will find your site sooner, giving you more time to engage, retain and convert them to subscribers, customers or whatever fits your definition of success.' ); ?></p>
  81              </div>
  82          </div>
  83  
  84          <hr />
  85  
  86          <div class="about__section has-2-columns has-accent-background-color is-wider-right">
  87              <div class="column">
  88                  <h2><?php _e( 'Security' ); ?></h2>
  89                  <p><strong><?php _e( 'Auto-updates for Plugins and Themes' ); ?></strong></p>
  90                  <p><?php _e( 'Now you can set plugins and themes to update automatically — or not! — in the WordPress admin. So you always know your site is running the latest code available.' ); ?></p>
  91                  <p><?php _e( 'You can also turn auto-updates on or off for each plugin or theme you have installed — all on the same screens you’ve always used.' ); ?></p>
  92                  <p><strong><?php _e( 'Update by uploading ZIP files' ); ?></strong></p>
  93                  <p><?php _e( 'If updating plugins and themes manually is your thing, now that’s easier too — just upload a ZIP file.' ); ?></p>
  94              </div>
  95              <div class="column about__image is-vertically-aligned-center">
  96                  <figure aria-labelledby="about-security" class="about__image">
  97                      <video controls poster="https://s.w.org/images/core/5.5/auto-updates-poster.png">
  98                          <source src="https://s.w.org/images/core/5.5/auto-updates.mp4" type="video/mp4" />
  99                          <source src="https://s.w.org/images/core/5.5/auto-updates.webm" type="video/webm" />
 100                      </video>
 101                      <figcaption id="about-security" class="screen-reader-text"><?php _e( 'Video: Installed plugin screen, which shows a new column, Automatic Updates. In this column are buttons that say "Enable auto-updates". When clicked, the auto-updates feature is turned on for that plugin, and the button switches to say "Disable auto-updates".' ); ?></figcaption>
 102                  </figure>
 103              </div>
 104          </div>
 105  
 106          <hr />
 107  
 108          <div class="about__section has-subtle-background-color">
 109              <div class="column">
 110                  <h2><?php _e( 'Highlights from the block editor' ); ?></h2>
 111                  <p><?php _e( 'Once again, the latest WordPress release packs a long list of exciting new features for the block editor. For example:' ); ?></p>
 112              </div>
 113          </div>
 114          <div class="about__section has-2-columns has-subtle-background-color">
 115              <div class="column about__image is-vertically-aligned-center">
 116                  <figure aria-labelledby="about-block-pattern" class="about__image">
 117                      <video controls poster="https://s.w.org/images/core/5.5/temp-block-patterns-poster.png">
 118                          <source src="https://s.w.org/images/core/5.5/temp-block-patterns.mp4" type="video/mp4" />
 119                          <source src="https://s.w.org/images/core/5.5/temp-block-patterns.webm" type="video/webm" />
 120                      </video>
 121                      <figcaption id="about-block-pattern" class="screen-reader-text"><?php _e( 'Video: In the editor, the block inserter shows two tabs, Blocks and Patterns. The Patterns tab is selected. There are different block layouts in this tab. After scrolling through options including buttons and columns, a pattern called "Large header with a heading" is chosen. This adds a cover block, which is customized with a photo and the name of the WordPress 5.5 jazz musician.' ); ?></figcaption>
 122                  </figure>
 123                  <hr />
 124                  <figure aria-labelledby="about-image-editor" class="about__image">
 125                      <video controls poster="https://make.wordpress.org/core/files/2020/07/image-editor-poster.png">
 126                          <source src="https://make.wordpress.org/core/files/2020/07/image-editor.mp4" type="video/mp4" />
 127                      </video>
 128                      <figcaption id="about-image-editor" class="screen-reader-text"><?php _e( 'Video: In the new image editor, an image icon gets dragged and dropped into the space, which turns blue to accept the upload. The image expands to fill the editor. Dragging a handle on the right side of the image widens it to scale and resizes the editor to fit. Next the cursor moves to a text area below the image and clicks to bring up standard block text-editing tools and write a caption for the image. Clicking in the image dismisses the text tools, and the cursor now moves to a toolbar at the top of the image space. A click on the Crop icon reveals a dropdown set of common aspect ratios; lingering briefly on one choice demos the crop. Applying it requires a confirmation click in the toolbar.' ); ?></figcaption>
 129                  </figure>
 130              </div>
 131              <div class="column">
 132                  <h3><?php _e( 'Block patterns' ); ?></h3>
 133                  <p><?php _e( 'New block patterns make it simple and fun to create complex, beautiful layouts, using combinations of text and media that you can mix and match to fit your story.' ); ?></p>
 134                  <p><?php _e( 'You will also find block patterns in a wide variety of plugins and themes, with more added all the time. Pick any of them from a single place — just click and go!' ); ?></p>
 135                  <h3><?php _e( 'Inline image editing' ); ?></h3>
 136                  <p><?php _e( 'Crop, rotate, and zoom your photos right from the image block. If you spend a lot of time on images, this could save you hours!' ); ?></p>
 137  
 138                  <h3><?php _e( 'The New Block Directory' ); ?></h3>
 139                  <p><?php _e( 'Now it’s easier than ever to find the block you need. The new block directory is built right into the block editor, so you can install new block types to your site without ever leaving the editor.' ); ?></p>
 140  
 141                  <h3><?php _e( 'And so much more.' ); ?></h3>
 142                  <p><?php _e( 'The highlights above are a tiny fraction of the new block editor features you’ve just installed. Open the block editor and enjoy!' ); ?></p>
 143              </div>
 144          </div>
 145  
 146          <hr />
 147  
 148          <div class="about__section has-1-column">
 149              <div class="column">
 150                  <h2><?php _e( 'Accessibility' ); ?></h2>
 151                  <p><?php _e( 'Every release adds improvements to the accessible publishing experience, and that remains true for WordPress 5.5. ' ); ?></p>
 152                  <p><?php _e( 'Now you can copy links in media screens and modal dialogs with a button, instead of trying to highlight a line of text.' ); ?></p>
 153                  <p><?php _e( 'You can also move meta boxes with the keyboard, and edit images in WordPress with your assistive device, as it can read you the instructions in the image editor.' ); ?></p>
 154              </div>
 155          </div>
 156  
 157          <hr />
 158  
 159          <div class="about__section has-subtle-background-color has-2-columns">
 160              <header class="is-section-header">
 161                  <h2><?php _e( 'For developers' ); ?></h2>
 162                  <p><?php _e( '5.5 also brings a big box of changes just for developers.' ); ?></p>
 163              </header>
 164              <div class="column">
 165                  <h3><?php _e( 'Server-side registered blocks in the REST API' ); ?></h3>
 166                  <p><?php _e( 'The addition of block types endpoints means that JavaScript apps (like the block editor) can retrieve definitions for any blocks registered on the server.' ); ?></p>
 167              </div>
 168              <div class="column">
 169                  <h3><?php _e( 'Dashicons' ); ?></h3>
 170                  <p><?php _e( 'The Dashicons library has received its final update in 5.5. It adds 39 block editor icons along with 26 others.' ); ?></p>
 171              </div>
 172          </div>
 173  
 174          <div class="about__section has-subtle-background-color has-2-columns">
 175              <div class="column">
 176                  <h3><?php _e( 'Defining environments' ); ?></h3>
 177                  <p>
 178                      <?php
 179                      printf(
 180                          /* translators: %s: 'wp_get_environment_type' function name. */
 181                          __( 'WordPress now has a standardized way to define a site’s environment type (staging, production, etc). Retrieve that type with %s and execute only the appropriate code.' ),
 182                          '<code>wp_get_environment_type()</code>'
 183                      );
 184                      ?>
 185                  </p>
 186              </div>
 187              <div class="column">
 188                  <h3><?php _e( 'Passing data to template files' ); ?></h3>
 189                  <p>
 190                      <?php
 191                      printf(
 192                          /* translators: %1$s: 'get_header' function name, %2$s: 'get_template_part' function name, %3$s: '$args' variable name. */
 193                          __( 'The template loading functions (%1$s, %2$s, etc.) have a new %3$s argument. So now you can pass an entire array’s worth of data to those templates.' ),
 194                          '<code>get_header()</code>',
 195                          '<code>get_template_part()</code>',
 196                          '<code>$args</code>'
 197                      );
 198                      ?>
 199                  </p>
 200              </div>
 201          </div>
 202  
 203          <div class="about__section has-subtle-background-color">
 204              <div class="column">
 205                  <h3><?php _e( 'More changes for developers' ); ?></h3>
 206                  <ul>
 207                      <li><?php _e( 'The PHPMailer library just got a major update, going from version 5.2.27 to 6.1.6.' ); ?></li>
 208                      <li>
 209                          <?php
 210                          printf(
 211                              /* translators: %s: 'redirect_guess_404_permalink' function name. */
 212                              __( 'Now get more fine-grained control of %s.' ),
 213                              '<code>redirect_guess_404_permalink()</code>'
 214                          );
 215                          ?>
 216                      </li>
 217                      <li>
 218                          <?php
 219                          printf(
 220                              /* translators: %s: 'wp_opcache_invalidate' function name. */
 221                              __( 'Sites that use PHP’s OPcache will see more reliable cache invalidation, thanks to the new %s function during updates (including to plugins and themes).' ),
 222                              '<code>wp_opcache_invalidate()</code>'
 223                          );
 224                          ?>
 225                      </li>
 226                      <li><?php _e( 'Custom post types associated with the category taxonomy can now opt-in to supporting the default term.' ); ?></li>
 227                      <li>
 228                          <?php
 229                          printf(
 230                              /* translators: %s: 'register_taxonomy' function name. */
 231                              __( 'Default terms can now be specified for custom taxonomies in %s.' ),
 232                              '<code>register_taxonomy()</code>'
 233                          );
 234                          ?>
 235                      </li>
 236                      <li>
 237                          <?php
 238                          printf(
 239                              /* translators: %s: 'register_meta' function name. */
 240                              __( 'The REST API now officially supports specifying default metadata values through %s.' ),
 241                              '<code>register_meta()</code>'
 242                          );
 243                          ?>
 244                      </li>
 245                      <li><?php _e( 'You will find updated versions of these bundled libraries: SimplePie, Twemoji, Masonry, imagesLoaded, getID3, Moment.js, and clipboard.js.' ); ?></li>
 246                  </ul>
 247              </div>
 248          </div>
 249  
 250          <hr class="is-small" />
 251  
 252          <div class="about__section">
 253              <div class="column">
 254                  <h3><?php _e( 'Check the Field Guide for more!' ); ?></h3>
 255                  <p>
 256                      <?php
 257                      printf(
 258                          /* translators: %s: WordPress 5.5 Field Guide link. */
 259                          __( 'There’s a lot more for developers to love in WordPress 5.5. To discover more and learn how to make these changes shine on your sites, themes, plugins and more, check the <a href="%s">WordPress 5.5 Field Guide.</a>' ),
 260                          'https://make.wordpress.org/core/wordpress-5-5-field-guide/'
 261                      );
 262                      ?>
 263                  </p>
 264              </div>
 265          </div>
 266  
 267          <hr />
 268  
 269          <div class="return-to-dashboard">
 270              <?php if ( current_user_can( 'update_core' ) && isset( $_GET['updated'] ) ) : ?>
 271                  <a href="<?php echo esc_url( self_admin_url( 'update-core.php' ) ); ?>">
 272                      <?php is_multisite() ? _e( 'Return to Updates' ) : _e( 'Return to Dashboard &rarr; Updates' ); ?>
 273                  </a> |
 274              <?php endif; ?>
 275              <a href="<?php echo esc_url( self_admin_url() ); ?>"><?php is_blog_admin() ? _e( 'Go to Dashboard &rarr; Home' ) : _e( 'Go to Dashboard' ); ?></a>
 276          </div>
 277      </div>
 278  <?php
 279  
 280  require_once  ABSPATH . 'wp-admin/admin-footer.php';
 281  
 282  // These are strings we may use to describe maintenance/security releases, where we aim for no new strings.
 283  return;
 284  
 285  __( 'Maintenance Release' );
 286  __( 'Maintenance Releases' );
 287  
 288  __( 'Security Release' );
 289  __( 'Security Releases' );
 290  
 291  __( 'Maintenance and Security Release' );
 292  __( 'Maintenance and Security Releases' );
 293  
 294  /* translators: %s: WordPress version number. */
 295  __( '<strong>Version %s</strong> addressed one security issue.' );
 296  /* translators: %s: WordPress version number. */
 297  __( '<strong>Version %s</strong> addressed some security issues.' );
 298  
 299  /* translators: 1: WordPress version number, 2: Plural number of bugs. */
 300  _n_noop(
 301      '<strong>Version %1$s</strong> addressed %2$s bug.',
 302      '<strong>Version %1$s</strong> addressed %2$s bugs.'
 303  );
 304  
 305  /* translators: 1: WordPress version number, 2: Plural number of bugs. Singular security issue. */
 306  _n_noop(
 307      '<strong>Version %1$s</strong> addressed a security issue and fixed %2$s bug.',
 308      '<strong>Version %1$s</strong> addressed a security issue and fixed %2$s bugs.'
 309  );
 310  
 311  /* translators: 1: WordPress version number, 2: Plural number of bugs. More than one security issue. */
 312  _n_noop(
 313      '<strong>Version %1$s</strong> addressed some security issues and fixed %2$s bug.',
 314      '<strong>Version %1$s</strong> addressed some security issues and fixed %2$s bugs.'
 315  );
 316  
 317  /* translators: %s: Documentation URL. */
 318  __( 'For more information, see <a href="%s">the release notes</a>.' );


Generated : Tue Aug 11 08:20:01 2020 Cross-referenced by PHPXref