Changeset 57880
- Timestamp:
- 03/26/2024 09:25:20 AM (4 months ago)
- Location:
- branches/6.5
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/6.5
-
branches/6.5/src/wp-includes/fonts.php
r57879 r57880 168 168 } 169 169 170 $site_path = '';171 if ( is_multisite() && ! ( is_main_network() && is_main_site() ) ) {172 $site_path = '/sites/' . get_current_blog_id();173 }174 175 170 $font_dir = array( 176 'path' => path_join( WP_CONTENT_DIR, 'fonts' ) . $site_path,177 'url' => untrailingslashit( content_url( 'fonts' ) ) . $site_path,171 'path' => , 172 'url' => untrailingslashit( , 178 173 'subdir' => '', 179 'basedir' => path_join( WP_CONTENT_DIR, 'fonts' ) . $site_path,180 'baseurl' => untrailingslashit( content_url( 'fonts' ) ) . $site_path,174 'basedir' => , 175 'baseurl' => untrailingslashit( , 181 176 'error' => false, 182 177 ); -
branches/6.5/tests/phpunit/tests/fonts/font-library/wpFontsDir.php
r57879 r57880 16 16 public static function set_up_before_class() { 17 17 parent::set_up_before_class(); 18 18 19 19 20 static::$dir_defaults = array( 20 'path' => path_join( WP_CONTENT_DIR, 'fonts' ),21 'url' => content_url( 'fonts' ),21 'path' => , 22 'url' => , 22 23 'subdir' => '', 23 'basedir' => path_join( WP_CONTENT_DIR, 'fonts' ),24 'baseurl' => content_url( 'fonts' ),24 'basedir' => , 25 'baseurl' => , 25 26 'error' => false, 26 27 ); 27 28 } 28 29 30 31 32 29 33 public function test_fonts_dir() { 30 34 $font_dir = wp_get_font_dir(); … … 33 37 } 34 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 35 70 public function test_fonts_dir_with_filter() { 36 71 // Define a callback function to pass to the filter. … … 72 107 73 108 /** 109 110 74 111 * @ticket 60652 75 112 */
Note: See TracChangeset
for help on using the changeset viewer.