@@ -55,8 +55,11 @@ |
||
55 | 55 | <a class="install-now button-primary button" data-slug="kirki" href="<?php echo esc_url_raw( $plugin_install_url ); ?>" aria-label="<?php esc_attr_e( 'Install Kirki Toolkit now', 'textdomain' ); ?>" data-name="Kirki Toolkit"> |
56 | 56 | <?php esc_html_e( 'Install Now', 'textdomain' ); ?> |
57 | 57 | </a> |
58 | - <?php else : ?> |
|
59 | - <p style="text-align:left;margin-top:0;"><?php esc_attr_e( 'You have installed Kirki. Activate it to take advantage of this theme\'s features in the customizer.', 'textdomain' ); ?></p> |
|
58 | + <?php else { |
|
59 | + : ?> |
|
60 | + <p style="text-align:left;margin-top:0;"><?php esc_attr_e( 'You have installed Kirki. Activate it to take advantage of this theme\'s features in the customizer.', 'textdomain' ); |
|
61 | +} |
|
62 | +?></p> |
|
60 | 63 | <a class="install-now button-secondary button change-theme" data-slug="kirki" href="<?php echo esc_url_raw( self_admin_url( 'plugins.php' ) ); ?>" aria-label="<?php esc_attr_e( 'Activate Kirki Toolkit now', 'textdomain' ); ?>" data-name="Kirki Toolkit"> |
61 | 64 | <?php esc_html_e( 'Activate Now', 'textdomain' ); ?> |
62 | 65 | </a> |
@@ -340,7 +340,8 @@ |
||
340 | 340 | $key = md5( $value['font-family'] . $value['variant'] . $value['subset'] ); |
341 | 341 | // check that the URL is valid. we're going to use transients to make this faster. |
342 | 342 | $url_is_valid = get_transient( $key ); |
343 | - if ( false === $url_is_valid ) { // transient does not exist |
|
343 | + if ( false === $url_is_valid ) { |
|
344 | +// transient does not exist |
|
344 | 345 | $response = wp_remote_get( 'https:' . $url ); |
345 | 346 | if ( ! is_array( $response ) ) { |
346 | 347 | // the url was not properly formatted, |