Making WordPress.org

Changeset 7076


Ignore:
Timestamp:
04/10/2018 04:28:48 AM (6 years ago)
Author:
dd32
Message:

Main: Security: Make the latest theme name dynamic. Replaces 'Twenty Fifteen' with 'Twenty Seventeen'. Translations should hopefully still work.

H/t la-geek.
See #3046.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-main/page-about-security.php

    r7026 r7076  
    283283                    <h2><?php _e( 'WordPress Plugin and Theme Security', 'wporg' ); ?></h2>
    284284                    <h3><?php _e( 'The Default Theme', 'wporg' ); ?></h3>
    285                     <p><?php _e( 'WordPress requires a theme to be enabled to render content visible on the frontend. The default theme which ships with core WordPress (currently "Twenty Fifteen") has been vigorously reviewed and tested for security reasons by both the team of theme developers plus the core development team.', 'wporg' ); ?></p>
     285                    <p><?php
     286                        printf(
     287                            /* translators: %s: The latest Core Theme release - Currently Twenty Seventeen */
     288                            __( 'WordPress requires a theme to be enabled to render content visible on the frontend. The default theme which ships with core WordPress (currently "%s") has been vigorously reviewed and tested for security reasons by both the team of theme developers plus the core development team.', 'wporg' ),
     289                            wp_get_theme( 'core/' . WP_CORE_DEFAULT_THEME )->display( 'Name' )
     290                        );
     291                    ?></p>
    286292
    287293                    <p><?php _e( 'The default theme can serve as a starting point for custom theme development, and site developers can create a child theme which includes some customization but falls back on the default theme for most functionality and security. The default theme can be easily removed by an administrator if not needed.', 'wporg' ); ?></p>
Note: See TracChangeset for help on using the changeset viewer.