Skip to content

Instantly share code, notes, and snippets.

@andrezrv
Created February 2, 2017 15:10

Revisions

  1. andrezrv created this gist Feb 2, 2017.
    9 changes: 9 additions & 0 deletions airplane-mode-google-fonts.php
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,9 @@
    <?php
    // Prevent Airplane Mode from blocking Google Fonts.
    add_filter( 'airplane_mode_parse_style', function( $value, $parsed ) {
    if ( 'fonts.googleapis.com' === $parsed ) {
    $value = false;
    }

    return $value;
    }, 10, 2 );