Ticket #60652: 60652.1.diff
| File 60652.1.diff, 1.0 KB (added by , 20 months ago) |
|---|
-
src/wp-includes/fonts.php
140 140 } 141 141 142 142 /** 143 * Returns the font directory for use by the font library.143 * A callback function for use in the {@see 'upload_dir'} filter. 144 144 * 145 * This function is a callback for the {@see 'upload_dir'} filter. It is not146 * intended to be called directly.Use wp_get_font_dir() instead.145 * This function is intended for internal use only and should not be used by plugins and themes. 146 * Use wp_get_font_dir() instead. 147 147 * 148 * The function can be used when extending the font library to modify the upload149 * destination for font files via the upload_dir filter. The recommended way to150 * do this is:151 *152 * ```php153 * add_filter( 'upload_dir', '_wp_filter_font_directory' );154 * // Your code to upload or sideload a font file.155 * remove_filter( 'upload_dir', '_wp_filter_font_directory' );156 * ```157 *158 148 * @since 6.5.0 159 149 * @access private 160 150 *