Skip to content

Commit

Permalink
Fixed Google webfont function
Browse files Browse the repository at this point in the history
  • Loading branch information
gregpriday committed Dec 30, 2015
1 parent f329263 commit bf4d98b
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions base/inc.php
Expand Up @@ -266,11 +266,10 @@ function sow_esc_url_raw( $url ) {
* @return mixed|void
*/
function siteorigin_widgets_fonts_google_webfonts( ) {
$fonts = include plugin_dir_path(__FILE__) . 'inc/fonts.php';
$fonts = apply_filters( '', $fonts );
return $fonts;
$fonts = include plugin_dir_path( __FILE__ ) . 'inc/fonts.php';
$fonts = apply_filters( 'siteorigin_widgets_google_webfonts', $fonts );
return !empty( $fonts ) ? $fonts : array();
}
add_filter('siteorigin_widgets_fonts_google_webfonts', 'siteorigin_widgets_fonts_google_webfonts_filter');

function siteorigin_widgets_is_google_webfont( $font_value ) {
$google_webfonts = siteorigin_widgets_fonts_google_webfonts();
Expand Down

0 comments on commit bf4d98b

Please sign in to comment.