+ <hr />
+
+ <div class="changelog">
+ <h2><?php _e( 'Under the Hood' ); ?></h2>
+
+ <div class="under-the-hood three-col">
+ <div class="col">
+ <h3><?php _e( 'Selective Refresh' ); ?></h3>
+ <p><?php
+ printf(
+ /* translators: %s: URL to the development post of the new feature */
+ __( 'The customizer now supports a <a href="%s">comprehensive framework</a> for rendering parts of the preview without rewriting your PHP code in JavaScript.' ),
+ 'https://make.wordpress.org/core/2016/02/16/selective-refresh-in-the-customizer/'
+ );
+ if ( current_user_can( 'customize' ) && current_user_can( 'edit_theme_options' ) ) {
+ if ( current_theme_supports( 'menus' ) && ! current_theme_supports( 'customize-selective-refresh-widgets' ) ) {
+ printf(
+ /* translators: %s: URL to Menus section of the customizer */
+ ' ' . __( 'See it in action with <a href="%s" class="load-customize">Menus</a>.' ),
+ esc_url( add_query_arg( array( 'autofocus' => array( 'panel' => 'nav_menus' ) ), $customize_url ) )
+ );
+ } elseif ( current_theme_supports( 'customize-selective-refresh-widgets' ) ) { // If widgets are supported, menus are also because of the menus widget.
+ printf(
+ /* translators: 1: URL to Menus section of the customizer, 2: URL to Widgets section of the customizer */
+ ' ' . __( 'See it in action with <a href="%1$s" class="load-customize">Menus</a> or <a href="%2$s" class="load-customize">Widgets</a>.' ),
+ esc_url( add_query_arg( array( 'autofocus' => array( 'panel' => 'nav_menus' ) ), $customize_url ) ),
+ esc_url( add_query_arg( array( 'autofocus' => array( 'panel' => 'widgets' ) ), $customize_url ) )
+ );
+ }
+ }
+ ?></p>
+ </div>
+ <div class="col">
+ <h3><?php _e( 'Smart Image Resizing' ); ?></h3>
+ <p><?php
+ printf(
+ /* translators: %s: URL to the development post of the new feature */
+ __( 'Generated images now load up to 50% faster with no noticeable quality loss. <a href="%s">It’s really cool</a>.' ),
+ 'https://make.wordpress.org/core/2016/03/12/performance-improvements-for-images-in-wordpress-4-5/'
+ );
+ ?></p>
+ </div>
+ <div class="col">
+ <h3><?php _e( 'JavaScript Library Updates' ); ?></h3>
+ <p><?php _e( 'jQuery 1.12.3, jQuery Migrate 1.4.0, Backbone 1.2.3, and Underscore 1.8.3 are bundled.' ); ?></p>
+ </div>
+ </div>
+
+ <div class="under-the-hood two-col">
+ <div class="col">
+ <h3><?php _e( 'Script Loader Improvements' ); ?></h3>
+ <p><?php
+ printf(
+ /* translators: %s: wp_add_inline_script() */
+ __( 'Better support has been added for script header/footer dependencies. New %s enables adding extra code to registered scripts.' ),
+ '<code><a href="https://make.wordpress.org/core/2016/03/08/enhanced-script-loader-in-wordpress-4-5/">wp_add_inline_script()</a></code>'
+ );
+ ?></p>
+ </div>
+ <div class="col">
+ <h3><?php _e( 'Better Embed Templates' ); ?></h3>
+ <p><?php
+ printf(
+ /* translators: %s: URL to the development post of the new feature */
+ __( 'Embed templates have been split into parts and can be <a href="%s">directly overridden by themes</a> via the template hierarchy.' ),
+ 'https://make.wordpress.org/core/2016/03/11/embeds-changes-in-wordpress-4-5/'
+ );
+ ?></p>
+ </div>
+ </div>
+
+ <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>