Docs: Improve the docblock for _wp_filter_font_directory().

Removes the recommended use section as this is a private use only function.

Reviewed by davidbaumwald.
Merges [57902] to the 6.5 branch.
Props peterwilsoncc, swissspidy, azaozz.
Fixes #60652.



Built from https://develop.svn.wordpress.org/branches/6.5@57907


git-svn-id: http://core.svn.wordpress.org/branches/6.5@57408 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
audrasjb 2024-04-01 16:55:12 +00:00
parent 97e3caebad
commit fabe853249
2 changed files with 4 additions and 14 deletions

View File

@ -140,20 +140,10 @@ function wp_font_dir( $create_dir = true ) {
}
/**
* Returns the font directory for use by the font library.
* A callback function for use in the {@see 'upload_dir'} filter.
*
* This function is a callback for the {@see 'upload_dir'} filter. It is not
* intended to be called directly. Use wp_get_font_dir() instead.
*
* The function can be used when extending the font library to modify the upload
* destination for font files via the upload_dir filter. The recommended way to
* do this is:
*
* ```php
* add_filter( 'upload_dir', '_wp_filter_font_directory' );
* // Your code to upload or sideload a font file.
* remove_filter( 'upload_dir', '_wp_filter_font_directory' );
* ```
* This function is intended for internal use only and should not be used by plugins and themes.
* Use wp_get_font_dir() instead.
*
* @since 6.5.0
* @access private

View File

@ -16,7 +16,7 @@
*
* @global string $wp_version
*/
$wp_version = '6.5-RC4-57906';
$wp_version = '6.5-RC4-57907';
/**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.