Changeset 57740 for trunk/src/wp-includes/fonts.php
- Timestamp:
- 02/29/2024 10:15:20 AM (2 years ago)
- File:
-
- 1 edited
-
trunk/src/wp-includes/fonts.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/fonts.php
r57720 r57740 97 97 * @since 6.5.0 98 98 * 99 * @ paramarray $defaults {99 * @return array $defaults { 100 100 * Array of information about the upload directory. 101 101 * … … 107 107 * @type string|false $error False or error message. 108 108 * } 109 * @return array $defaults { 110 * Array of information about the upload directory. 111 * 112 * @type string $path Base directory and subdirectory or full path to the fonts upload directory. 113 * @type string $url Base URL and subdirectory or absolute URL to the fonts upload directory. 114 * @type string $subdir Subdirectory 115 * @type string $basedir Path without subdir. 116 * @type string $baseurl URL path without subdir. 117 * @type string|false $error False or error message. 118 * } 119 */ 120 function wp_get_font_dir( $defaults = array() ) { 109 */ 110 function wp_get_font_dir() { 121 111 $site_path = ''; 122 112 if ( is_multisite() && ! ( is_main_network() && is_main_site() ) ) { … … 124 114 } 125 115 126 // Sets the defaults. 127 $defaults['path'] = path_join( WP_CONTENT_DIR, 'fonts' ) . $site_path; 128 $defaults['url'] = untrailingslashit( content_url( 'fonts' ) ) . $site_path; 129 $defaults['subdir'] = ''; 130 $defaults['basedir'] = path_join( WP_CONTENT_DIR, 'fonts' ) . $site_path; 131 $defaults['baseurl'] = untrailingslashit( content_url( 'fonts' ) ) . $site_path; 132 $defaults['error'] = false; 116 $defaults = array( 117 'path' => path_join( WP_CONTENT_DIR, 'fonts' ) . $site_path, 118 'url' => untrailingslashit( content_url( 'fonts' ) ) . $site_path, 119 'subdir' => '', 120 'basedir' => path_join( WP_CONTENT_DIR, 'fonts' ) . $site_path, 121 'baseurl' => untrailingslashit( content_url( 'fonts' ) ) . $site_path, 122 'error' => false, 123 ); 133 124 134 125 /**
Note:
See TracChangeset
for help on using the changeset viewer.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)