mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-04-07 06:05:42 +00:00
Docs: Miscellaneous docblock fixes and improvements.
See #48303 git-svn-id: https://develop.svn.wordpress.org/trunk@46594 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -2857,7 +2857,9 @@ function wp_get_image_mime( $file ) {
|
||||
* Retrieve list of mime types and file extensions.
|
||||
*
|
||||
* @since 3.5.0
|
||||
* @since 4.2.0 Support was added for GIMP (xcf) files.
|
||||
* @since 4.2.0 Support was added for GIMP (.xcf) files.
|
||||
* @since 4.9.2 Support was added for Flac (.flac) files.
|
||||
* @since 4.9.6 Support was added for AAC (.aac) files.
|
||||
*
|
||||
* @return array Array of mime types keyed by the file extension regex corresponding to those types.
|
||||
*/
|
||||
@@ -3042,9 +3044,7 @@ function get_allowed_mime_types( $user = null ) {
|
||||
*
|
||||
* @since 2.0.0
|
||||
*
|
||||
* @param array $t Mime types keyed by the file extension regex corresponding to
|
||||
* those types. 'swf' and 'exe' removed from full list. 'htm|html' also
|
||||
* removed depending on '$user' capabilities.
|
||||
* @param array $t Mime types keyed by the file extension regex corresponding to those types.
|
||||
* @param int|WP_User|null $user User ID, User object or null if not provided (indicates current user).
|
||||
*/
|
||||
return apply_filters( 'upload_mimes', $t, $user );
|
||||
|
||||
Reference in New Issue
Block a user