Skip to content

Commit

Permalink
switch the wp_ prefix for pantheon_
Browse files Browse the repository at this point in the history
so we don't ever end up with accidental naming clashes
  • Loading branch information
jazzsequence committed Feb 8, 2024
1 parent c7e3fbc commit e1fb384
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions inc/fonts.php
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down Expand Up @@ -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';
Expand Down

0 comments on commit e1fb384

Please sign in to comment.