@@ 211-215 (lines=5) @@ | ||
208 | $theme_update_version = $api->version; |
|
209 | } |
|
210 | ||
211 | if ( version_compare( $theme_version, $theme_update_version, '<' ) ) { |
|
212 | $theme_version = '<mark class="error">' . $theme_version . ' (' . sprintf( __( '%s is available', 'google-calendar-events' ), esc_html( $theme_update_version ) ) . ')</mark>'; |
|
213 | } else { |
|
214 | $theme_version = '<mark class="ok">' . $theme_version . '</mark>'; |
|
215 | } |
|
216 | ||
217 | $theme = '<dl>'; |
|
218 | $theme .= '<dt>' . __( 'Name', 'google-calendar-events' ) . '</dt>'; |
|
@@ 304-308 (lines=5) @@ | ||
301 | if ( $api && ! is_wp_error( $api ) ) { |
|
302 | if ( ! empty( $api->version ) ) { |
|
303 | $plugin_update_version = $api->version; |
|
304 | if ( version_compare( $plugin_version, $plugin_update_version, '<' ) ) { |
|
305 | $plugin_version = '<mark class="error">' . $plugin_version . ' (' . sprintf( __( '%s is available', 'google-calendar-events' ), esc_html( $plugin_update_version ) ) . ')</mark>'; |
|
306 | } else { |
|
307 | $plugin_version = '<mark class="ok">' . $plugin_version . '</mark>'; |
|
308 | } |
|
309 | } |
|
310 | } |
|
311 | } |