From 79cabf64b11e771576a43827f2e0d7ee35d8df8e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Helen=20Hou-Sand=C3=AD?= Date: Mon, 14 Nov 2016 21:38:32 +0000 Subject: [PATCH] Theme starter content: Add context to all strings. fixes #38770. Built from https://develop.svn.wordpress.org/trunk@39231 git-svn-id: http://core.svn.wordpress.org/trunk@39171 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/theme.php | 44 ++++++++++++++++++++--------------------- wp-includes/version.php | 2 +- 2 files changed, 23 insertions(+), 23 deletions(-) diff --git a/wp-includes/theme.php b/wp-includes/theme.php index 865f851a83..66e10b24e8 100644 --- a/wp-includes/theme.php +++ b/wp-includes/theme.php @@ -1795,20 +1795,20 @@ function get_theme_starter_content() { $core_content = array ( 'widgets' => array( 'text_business_info' => array ( 'text', array ( - 'title' => __( 'Find Us' ), + 'title' => _x( 'Find Us', 'Theme starter content' ), 'text' => join( '', array ( - '

' . __( 'Address' ) . '
', - __( '123 Main Street' ) . '
' . __( 'New York, NY 10001' ) . '

', - '

' . __( 'Hours' ) . '
', - __( 'Monday—Friday: 9:00AM–5:00PM' ) . '
' . __( 'Saturday & Sunday: 11:00AM–3:00PM' ) . '

' + '

' . _x( 'Address', 'Theme starter content' ) . '
', + _x( '123 Main Street', 'Theme starter content' ) . '
' . _x( 'New York, NY 10001', 'Theme starter content' ) . '

', + '

' . _x( 'Hours', 'Theme starter content' ) . '
', + _x( 'Monday—Friday: 9:00AM–5:00PM', 'Theme starter content' ) . '
' . _x( 'Saturday & Sunday: 11:00AM–3:00PM', 'Theme starter content' ) . '

' ) ), ) ), 'search' => array ( 'search', array ( - 'title' => __( 'Site Search' ), + 'title' => _x( 'Site Search', 'Theme starter content' ), ) ), 'text_credits' => array ( 'text', array ( - 'title' => __( 'Site Credits' ), - 'text' => sprintf( __( 'This site was created on %s' ), get_date_from_gmt( current_time( 'mysql', 1 ), 'c' ) ), + 'title' => _x( 'Site Credits', 'Theme starter content' ), + 'text' => sprintf( _x( 'This site was created on %s', 'Theme starter content' ), get_date_from_gmt( current_time( 'mysql', 1 ), 'c' ) ), ) ), ), 'nav_menus' => array ( @@ -1834,51 +1834,51 @@ function get_theme_starter_content() { ), 'link_yelp' => array( - 'title' => __( 'Yelp' ), + 'title' => _x( 'Yelp', 'Theme starter content' ), 'url' => 'https://www.yelp.com', ), 'link_facebook' => array( - 'title' => __( 'Facebook' ), + 'title' => _x( 'Facebook', 'Theme starter content' ), 'url' => 'https://www.facebook.com/wordpress', ), 'link_twitter' => array( - 'title' => __( 'Twitter' ), + 'title' => _x( 'Twitter', 'Theme starter content' ), 'url' => 'https://twitter.com/wordpress', ), 'link_instagram' => array( - 'title' => __( 'Instagram' ), + 'title' => _x( 'Instagram', 'Theme starter content' ), 'url' => 'https://www.instagram.com/explore/tags/wordcamp/', ), 'link_email' => array( - 'title' => __( 'Email' ), + 'title' => _x( 'Email', 'Theme starter content' ), 'url' => 'mailto:wordpress@example.com', ), ), 'posts' => array( 'home' => array( 'post_type' => 'page', - 'post_title' => __( 'Homepage' ), - 'post_content' => __( 'Welcome home.' ), + 'post_title' => _x( 'Homepage', 'Theme starter content' ), + 'post_content' => _x( 'Welcome home.', 'Theme starter content' ), ), 'about-us' => array( 'post_type' => 'page', - 'post_title' => __( 'About Us' ), - 'post_content' => __( 'More than you ever wanted to know.' ), + 'post_title' => _x( 'About Us', 'Theme starter content' ), + 'post_content' => _x( 'More than you ever wanted to know.', 'Theme starter content' ), ), 'contact-us' => array( 'post_type' => 'page', - 'post_title' => __( 'Contact Us' ), - 'post_content' => __( 'Call us at 999-999-9999.' ), + 'post_title' => _x( 'Contact Us', 'Theme starter content' ), + 'post_content' => _x( 'Call us at 999-999-9999.', 'Theme starter content' ), ), 'blog' => array( 'post_type' => 'page', - 'post_title' => __( 'Blog' ), + 'post_title' => _x( 'Blog', 'Theme starter content' ), ), 'homepage-section' => array( 'post_type' => 'page', - 'post_title' => __( 'A homepage section' ), - 'post_content' => __( 'This is an example of a homepage section, which are managed in theme options.' ), + 'post_title' => _x( 'A homepage section', 'Theme starter content' ), + 'post_content' => _x( 'This is an example of a homepage section, which are managed in theme options.', 'Theme starter content' ), ), ), ); diff --git a/wp-includes/version.php b/wp-includes/version.php index 06e8f27622..5d29f6777a 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -4,7 +4,7 @@ * * @global string $wp_version */ -$wp_version = '4.7-beta3-39230'; +$wp_version = '4.7-beta3-39231'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.