Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
11/23/2022 10:22:42 AM (22 months ago)
Author:
imath
Message:

Fix a typo error in the function name to get an attachment's mime type

Deprecate "bp_attachements_get_mime_type()" which name contains a typo error in favor of bp_attachments_get_mime_type().

Fixes #8769

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/bp-core/deprecated/11.0.php

    r13303 r13371  
    7777    return array();
    7878}
     79
     80/**
     81 * Returns a file's mime type.
     82 *
     83 * @since 10.2.0
     84 * @deprecated 11.0.0 replaced by `bp_attachments_get_mime_type()`
     85 *
     86 * @param string $file Absolute path of a file or directory.
     87 * @return false|string False if the mime type is not supported by WordPress.
     88 *                      The mime type of a file or 'directory' for a directory.
     89 */
     90function bp_attachements_get_mime_type( $file = '' ) {
     91    _deprecated_function( __FUNCTION__, '11.0.0', 'bp_attachments_get_mime_type()' );
     92    return bp_attachments_get_mime_type( $file );
     93}
Note: See TracChangeset for help on using the changeset viewer.