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:
parent
3dcd0e2119
commit
da4a8f56f5
|
@ -233,18 +233,20 @@ if ( $tab ) {
|
|||
<img class="theme-screenshot" src="{{ data.screenshot_url }}" alt="" />
|
||||
|
||||
<div class="theme-details">
|
||||
<# 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>
|
||||
<# if ( data.num_ratings ) { #>
|
||||
<small class="ratings">{{ data.num_ratings }}</small>
|
||||
<# } else { #>
|
||||
<small class="ratings"><?php _e( 'No ratings.' ); ?></small>
|
||||
<# } #>
|
||||
</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-description">{{{ data.description }}}</div>
|
||||
</div>
|
||||
|
|
|
@ -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.
|
||||
|
|
Loading…
Reference in New Issue