creativecommons / commoners

Creative Commons Global Network website
https://network.creativecommons.org/
GNU General Public License v2.0
12 stars 11 forks source link

[Bug] Remove hardcoded CloudFront CDN (use default Cloudflare CDN) #434

Closed TimidRobot closed 2 years ago

TimidRobot commented 2 years ago

Description

Remove hardcoded CloudFront CDN (use default Cloudflare CDN)

Reproduction

https://github.com/creativecommons/commoners/blob/1cd602ca206294f57ae61c91e7c0f1b9d7b617f7/themes/cc-commoners/header.php#L34

Expectation

  1. Update source

    index 7cabbd2..75a69a3 100644
    --- themes/cc-commoners/header.php
    +++ themes/cc-commoners/header.php
    @@ -31,7 +31,7 @@
         <?php //if ( is_singular() && get_option( 'thread_comments' ) ) wp_enqueue_script( 'comment-reply' ); ?>
         <?php wp_head(); ?>
    
    -    <link rel='stylesheet' id='cc-fontello-css' href='https://d15omoko64skxi.cloudfront.net/wp-content/themes/cc/fonts/fontello/css/cc-fontello.css?ver=4.9.1' type='text/css' media='all' />
    +    <link rel='stylesheet' id='cc-fontello-css' href='https://creativecommons.org/wp-content/themes/cc/fonts/fontello/css/cc-fontello.css?ver=4.9.1' type='text/css' media='all' />
       </head>
    
       <body <?php body_class(); ?> >
  2. Deploy new release (not required for issue resolution)

Additional context