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="" />
<div class="theme-details">
<div class="rating rating-{{ Math.round( data.rating / 10 ) * 10 }}">
<span class="one"></span>
<span class="two"></span>
<span class="three"></span>
<span class="four"></span>
<span class="five"></span>
<# if ( data.num_ratings ) { #>
<small class="ratings">{{ data.num_ratings }}</small>
<# if ( data.rating ) { #>
<div class="rating rating-{{ Math.round( data.rating / 10 ) * 10 }}">
<span class="one"></span>
<span class="two"></span>
<span class="three"></span>
<span class="four"></span>
<span class="five"></span>
<small class="ratings">{{ data.num_ratings }}</small>
</div>
<# } else { #>
<small class="ratings"><?php _e( 'No ratings.' ); ?></small>
<div class="rating">
<small class="ratings"><?php _e( 'This theme has not been rated yet.' ); ?></small>
</div>
<# } #>
</div>
<div class="theme-version"><?php printf( __( 'Version: %s' ), '{{ data.version }}' ); ?></div>
<div class="theme-description">{{{ data.description }}}</div>
</div>

View File

@ -4,7 +4,7 @@
*
* @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.