188 | | $menu[60] = array( __( 'Appearance' ), $appearance_cap, 'themes.php', '', 'menu-top menu-icon-appearance', 'menu-appearance', 'dashicons-admin-appearance' ); |
| 188 | $theme_update_count = ''; |
| 189 | if ( ! is_multisite() && current_user_can( 'update_themes' ) ) { |
| 190 | if ( ! isset( $update_data ) ) { |
| 191 | $update_data = wp_get_update_data(); |
| 192 | } |
| 193 | $theme_update_count = sprintf( |
| 194 | '<span class="update-plugins count-%s"><span class="theme-count">%s</span></span>', |
| 195 | $update_data['counts']['themes'], |
| 196 | number_format_i18n( $update_data['counts']['themes'] ) |
| 197 | ); |
| 198 | } |
| 199 | |
| 200 | /* translators: %s: Number of pending theme updates. */ |
| 201 | $menu[60] = array( sprintf( __( 'Appearance %s' ), $theme_update_count ), $appearance_cap, 'themes.php', '', 'menu-top menu-icon-appearance', 'menu-appearance', 'dashicons-admin-appearance' ); |
| 202 | |