From e1fb3846fd468a754f5f408ab07af2ec3c09013f Mon Sep 17 00:00:00 2001 From: Chris Reynolds Date: Thu, 8 Feb 2024 09:52:19 -0700 Subject: [PATCH] switch the wp_ prefix for pantheon_ so we don't ever end up with accidental naming clashes --- inc/fonts.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/inc/fonts.php b/inc/fonts.php index 3e449b0..fd07793 100644 --- a/inc/fonts.php +++ b/inc/fonts.php @@ -15,7 +15,7 @@ * @var array $wp_upload_dir The value of wp_get_upload_dir(). * @see https://developer.wordpress.org/reference/functions/wp_get_upload_dir/ */ -$_wp_upload_dir = wp_get_upload_dir(); +$_pantheon_upload_dir = wp_get_upload_dir(); /** * Kick off our customizations to the WP_Font_Library. @@ -54,9 +54,9 @@ function pantheon_modify_fonts_dir() { * @param array $defaults The default settings for the font directory. */ function pantheon_font_dir( $defaults ) { - global $_wp_upload_dir; - $uploads_basedir = $_wp_upload_dir['basedir']; - $uploads_baseurl = $_wp_upload_dir['baseurl']; + global $_pantheon_upload_dir; + $uploads_basedir = $_pantheon_upload_dir['basedir']; + $uploads_baseurl = $_pantheon_upload_dir['baseurl']; // Set our font directory. $font_dir = $uploads_basedir . '/fonts';