From e2bd50c1eaedbbb09427c0b59d254f8fc418b299 Mon Sep 17 00:00:00 2001 From: Ryan Lerch Date: Jun 08 2022 05:21:21 +0000 Subject: added support for the CDN --- diff --git a/communityblog-theme/functions.php b/communityblog-theme/functions.php index 92161eb..0429c47 100644 --- a/communityblog-theme/functions.php +++ b/communityblog-theme/functions.php @@ -549,5 +549,9 @@ add_action( 'wp_head' , array( 'lingonberry_Customize' , 'lingonberry_header_out // Enqueue live preview javascript in Theme Customizer admin screen add_action( 'customize_preview_init' , array( 'lingonberry_Customize' , 'lingonberry_live_preview' ) ); +function cdn_url() { + return 'https://cdn.communityblog.fedoraproject.org/wp-content/uploads'; +} +add_filter( 'pre_option_upload_url_path', 'cdn_url' ); -?> \ No newline at end of file +?>