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
This commit is contained in:
parent
c3dc173799
commit
79cabf64b1
|
@ -1795,20 +1795,20 @@ function get_theme_starter_content() {
|
||||||
$core_content = array (
|
$core_content = array (
|
||||||
'widgets' => array(
|
'widgets' => array(
|
||||||
'text_business_info' => array ( 'text', array (
|
'text_business_info' => array ( 'text', array (
|
||||||
'title' => __( 'Find Us' ),
|
'title' => _x( 'Find Us', 'Theme starter content' ),
|
||||||
'text' => join( '', array (
|
'text' => join( '', array (
|
||||||
'<p><strong>' . __( 'Address' ) . '</strong><br />',
|
'<p><strong>' . _x( 'Address', 'Theme starter content' ) . '</strong><br />',
|
||||||
__( '123 Main Street' ) . '<br />' . __( 'New York, NY 10001' ) . '</p>',
|
_x( '123 Main Street', 'Theme starter content' ) . '<br />' . _x( 'New York, NY 10001', 'Theme starter content' ) . '</p>',
|
||||||
'<p><strong>' . __( 'Hours' ) . '</strong><br />',
|
'<p><strong>' . _x( 'Hours', 'Theme starter content' ) . '</strong><br />',
|
||||||
__( 'Monday—Friday: 9:00AM–5:00PM' ) . '<br />' . __( 'Saturday & Sunday: 11:00AM–3:00PM' ) . '</p>'
|
_x( 'Monday—Friday: 9:00AM–5:00PM', 'Theme starter content' ) . '<br />' . _x( 'Saturday & Sunday: 11:00AM–3:00PM', 'Theme starter content' ) . '</p>'
|
||||||
) ),
|
) ),
|
||||||
) ),
|
) ),
|
||||||
'search' => array ( 'search', array (
|
'search' => array ( 'search', array (
|
||||||
'title' => __( 'Site Search' ),
|
'title' => _x( 'Site Search', 'Theme starter content' ),
|
||||||
) ),
|
) ),
|
||||||
'text_credits' => array ( 'text', array (
|
'text_credits' => array ( 'text', array (
|
||||||
'title' => __( 'Site Credits' ),
|
'title' => _x( 'Site Credits', 'Theme starter content' ),
|
||||||
'text' => sprintf( __( 'This site was created on %s' ), get_date_from_gmt( current_time( 'mysql', 1 ), 'c' ) ),
|
'text' => sprintf( _x( 'This site was created on %s', 'Theme starter content' ), get_date_from_gmt( current_time( 'mysql', 1 ), 'c' ) ),
|
||||||
) ),
|
) ),
|
||||||
),
|
),
|
||||||
'nav_menus' => array (
|
'nav_menus' => array (
|
||||||
|
@ -1834,51 +1834,51 @@ function get_theme_starter_content() {
|
||||||
),
|
),
|
||||||
|
|
||||||
'link_yelp' => array(
|
'link_yelp' => array(
|
||||||
'title' => __( 'Yelp' ),
|
'title' => _x( 'Yelp', 'Theme starter content' ),
|
||||||
'url' => 'https://www.yelp.com',
|
'url' => 'https://www.yelp.com',
|
||||||
),
|
),
|
||||||
'link_facebook' => array(
|
'link_facebook' => array(
|
||||||
'title' => __( 'Facebook' ),
|
'title' => _x( 'Facebook', 'Theme starter content' ),
|
||||||
'url' => 'https://www.facebook.com/wordpress',
|
'url' => 'https://www.facebook.com/wordpress',
|
||||||
),
|
),
|
||||||
'link_twitter' => array(
|
'link_twitter' => array(
|
||||||
'title' => __( 'Twitter' ),
|
'title' => _x( 'Twitter', 'Theme starter content' ),
|
||||||
'url' => 'https://twitter.com/wordpress',
|
'url' => 'https://twitter.com/wordpress',
|
||||||
),
|
),
|
||||||
'link_instagram' => array(
|
'link_instagram' => array(
|
||||||
'title' => __( 'Instagram' ),
|
'title' => _x( 'Instagram', 'Theme starter content' ),
|
||||||
'url' => 'https://www.instagram.com/explore/tags/wordcamp/',
|
'url' => 'https://www.instagram.com/explore/tags/wordcamp/',
|
||||||
),
|
),
|
||||||
'link_email' => array(
|
'link_email' => array(
|
||||||
'title' => __( 'Email' ),
|
'title' => _x( 'Email', 'Theme starter content' ),
|
||||||
'url' => 'mailto:wordpress@example.com',
|
'url' => 'mailto:wordpress@example.com',
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
'posts' => array(
|
'posts' => array(
|
||||||
'home' => array(
|
'home' => array(
|
||||||
'post_type' => 'page',
|
'post_type' => 'page',
|
||||||
'post_title' => __( 'Homepage' ),
|
'post_title' => _x( 'Homepage', 'Theme starter content' ),
|
||||||
'post_content' => __( 'Welcome home.' ),
|
'post_content' => _x( 'Welcome home.', 'Theme starter content' ),
|
||||||
),
|
),
|
||||||
'about-us' => array(
|
'about-us' => array(
|
||||||
'post_type' => 'page',
|
'post_type' => 'page',
|
||||||
'post_title' => __( 'About Us' ),
|
'post_title' => _x( 'About Us', 'Theme starter content' ),
|
||||||
'post_content' => __( 'More than you ever wanted to know.' ),
|
'post_content' => _x( 'More than you ever wanted to know.', 'Theme starter content' ),
|
||||||
),
|
),
|
||||||
'contact-us' => array(
|
'contact-us' => array(
|
||||||
'post_type' => 'page',
|
'post_type' => 'page',
|
||||||
'post_title' => __( 'Contact Us' ),
|
'post_title' => _x( 'Contact Us', 'Theme starter content' ),
|
||||||
'post_content' => __( 'Call us at 999-999-9999.' ),
|
'post_content' => _x( 'Call us at 999-999-9999.', 'Theme starter content' ),
|
||||||
),
|
),
|
||||||
'blog' => array(
|
'blog' => array(
|
||||||
'post_type' => 'page',
|
'post_type' => 'page',
|
||||||
'post_title' => __( 'Blog' ),
|
'post_title' => _x( 'Blog', 'Theme starter content' ),
|
||||||
),
|
),
|
||||||
|
|
||||||
'homepage-section' => array(
|
'homepage-section' => array(
|
||||||
'post_type' => 'page',
|
'post_type' => 'page',
|
||||||
'post_title' => __( 'A homepage section' ),
|
'post_title' => _x( 'A homepage section', 'Theme starter content' ),
|
||||||
'post_content' => __( 'This is an example of a homepage section, which are managed in theme options.' ),
|
'post_content' => _x( 'This is an example of a homepage section, which are managed in theme options.', 'Theme starter content' ),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
);
|
);
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
*
|
*
|
||||||
* @global string $wp_version
|
* @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.
|
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||||
|
|
Loading…
Reference in New Issue