Skip to content

Commit

Permalink
use our global for the wp_upload_dir
Browse files Browse the repository at this point in the history
  • Loading branch information
jazzsequence committed Feb 8, 2024
1 parent 36e5008 commit c7e3fbc
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions inc/fonts.php
Original file line number Diff line number Diff line change
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 ) {
$wp_upload_dir = wp_get_upload_dir();
$uploads_basedir = $wp_upload_dir['basedir'];
$uploads_baseurl = $wp_upload_dir['baseurl'];
global $_wp_upload_dir;
$uploads_basedir = $_wp_upload_dir['basedir'];
$uploads_baseurl = $_wp_upload_dir['baseurl'];

// Set our font directory.
$font_dir = $uploads_basedir . '/fonts';
Expand Down

0 comments on commit c7e3fbc

Please # to comment.