Skip to content
This repository was archived by the owner on Dec 2, 2022. It is now read-only.

Commit 1f5e503

Browse files
committed
Filter for google fonts update URL, since Redux's is broken. Folks can use their own if they want.
Signed-off-by: Kevin Provance <[email protected]>
1 parent 5bab78f commit 1f5e503

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

redux-core/inc/classes/class-redux-helpers.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1683,7 +1683,7 @@ public static function google_fonts_array( $download = false ) {
16831683

16841684
if ( ! file_exists( $path ) || ( file_exists( $path ) && $download && self::google_fonts_update_needed() ) ) {
16851685
if ( $download ) {
1686-
$url = 'http://api.redux.io/gfonts';
1686+
$url = apply_filter( 'redux/typography/google_fonts/url', 'https://api.redux.io/gfonts' );
16871687

16881688
$request = wp_remote_get(
16891689
$url,

0 commit comments

Comments
 (0)