WordPress.org

Support

Support » Plugins and Hacks » Google Webfonts only for admins with random number setting

Google Webfonts only for admins with random number setting

Viewing 1 replies (of 1 total)
  • no problem, you need to edit the file
    /plugins/better-wp-security/inc/secure.php

    go to line 890, there is the function remove_script_version {} which cuts off the tail of urls with parameters.

    replace it with the following code and your googlefonts will appear again:

    function remove_script_version( $src ){
       $parts = explode( '?ver=', $src, 2 );
       if ( count($parts) == 1 ) {
         $parts = explode( '&ver=', $src, 2 );
       }
       return $parts[0];
     }
Viewing 1 replies (of 1 total)
  • The topic ‘Google Webfonts only for admins with random number setting’ is closed to new replies.