@@ -203,13 +203,13 @@ discard block |
||
| 203 | 203 | } |
| 204 | 204 | |
| 205 | 205 | // Return regular if the one we want could not be found. |
| 206 | - if ( isset( $local_urls['regular'] ) ) { |
|
| 207 | - return $local_urls['regular']; |
|
| 206 | + if ( isset( $local_urls[ 'regular' ] ) ) { |
|
| 207 | + return $local_urls[ 'regular' ]; |
|
| 208 | 208 | } |
| 209 | 209 | |
| 210 | 210 | // Return the first available if all else failed. |
| 211 | 211 | $vals = array_values( $local_urls ); |
| 212 | - return $vals[0]; |
|
| 212 | + return $vals[ 0 ]; |
|
| 213 | 213 | } |
| 214 | 214 | |
| 215 | 215 | /** |
@@ -401,7 +401,7 @@ discard block |
||
| 401 | 401 | public function get_root_path() { |
| 402 | 402 | // Get the upload directory for this site. |
| 403 | 403 | $upload_dir = wp_upload_dir(); |
| 404 | - $path = untrailingslashit( wp_normalize_path( $upload_dir['basedir'] ) ) . '/webfonts'; |
|
| 404 | + $path = untrailingslashit( wp_normalize_path( $upload_dir[ 'basedir' ] ) ) . '/webfonts'; |
|
| 405 | 405 | |
| 406 | 406 | // If the folder doesn't exist, create it. |
| 407 | 407 | if ( ! file_exists( $path ) ) { |
@@ -426,7 +426,7 @@ discard block |
||
| 426 | 426 | $upload_dir = wp_upload_dir(); |
| 427 | 427 | |
| 428 | 428 | // The URL. |
| 429 | - $url = trailingslashit( $upload_dir['baseurl'] ); |
|
| 429 | + $url = trailingslashit( $upload_dir[ 'baseurl' ] ); |
|
| 430 | 430 | // Take care of domain mapping. |
| 431 | 431 | // When using domain mapping we have to make sure that the URL to the file |
| 432 | 432 | // does not include the original domain but instead the mapped domain. |