Theme install: Display an appropriate string if theme has not been rated yet.

props kevdotbadger, valendesigns.
fixes #28147.
Built from https://develop.svn.wordpress.org/trunk@31072


git-svn-id: http://core.svn.wordpress.org/trunk@31053 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Sergey Biryukov 2015-01-07 23:17:22 +00:00
parent 3dcd0e2119
commit da4a8f56f5
2 changed files with 13 additions and 11 deletions

View File

@ -233,18 +233,20 @@ if ( $tab ) {
<img class="theme-screenshot" src="{{ data.screenshot_url }}" alt="" /> <img class="theme-screenshot" src="{{ data.screenshot_url }}" alt="" />
<div class="theme-details"> <div class="theme-details">
<# if ( data.rating ) { #>
<div class="rating rating-{{ Math.round( data.rating / 10 ) * 10 }}"> <div class="rating rating-{{ Math.round( data.rating / 10 ) * 10 }}">
<span class="one"></span> <span class="one"></span>
<span class="two"></span> <span class="two"></span>
<span class="three"></span> <span class="three"></span>
<span class="four"></span> <span class="four"></span>
<span class="five"></span> <span class="five"></span>
<# if ( data.num_ratings ) { #>
<small class="ratings">{{ data.num_ratings }}</small> <small class="ratings">{{ data.num_ratings }}</small>
<# } else { #>
<small class="ratings"><?php _e( 'No ratings.' ); ?></small>
<# } #>
</div> </div>
<# } else { #>
<div class="rating">
<small class="ratings"><?php _e( 'This theme has not been rated yet.' ); ?></small>
</div>
<# } #>
<div class="theme-version"><?php printf( __( 'Version: %s' ), '{{ data.version }}' ); ?></div> <div class="theme-version"><?php printf( __( 'Version: %s' ), '{{ data.version }}' ); ?></div>
<div class="theme-description">{{{ data.description }}}</div> <div class="theme-description">{{{ data.description }}}</div>
</div> </div>

View File

@ -4,7 +4,7 @@
* *
* @global string $wp_version * @global string $wp_version
*/ */
$wp_version = '4.2-alpha-31071'; $wp_version = '4.2-alpha-31072';
/** /**
* 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.