Rename get_media_embedded_in_content_allowed
filter to media_embedded_in_content_allowed_types
.
The new name fits better with some other `_allowed_` filters. props DrewAPicture. fixes #26675. git-svn-id: https://develop.svn.wordpress.org/trunk@32113 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
9706b074c8
commit
9cddb0f012
@ -3229,7 +3229,7 @@ function get_media_embedded_in_content( $content, $types = null ) {
|
||||
* @param array $allowed_media_types An array of allowed media types. Default media types are
|
||||
* 'audio', 'video', 'object', 'embed', and 'iframe'.
|
||||
*/
|
||||
$allowed_media_types = apply_filters( 'get_media_embedded_in_content_allowed', array( 'audio', 'video', 'object', 'embed', 'iframe' ) );
|
||||
$allowed_media_types = apply_filters( 'media_embedded_in_content_allowed_types', array( 'audio', 'video', 'object', 'embed', 'iframe' ) );
|
||||
|
||||
if ( ! empty( $types ) ) {
|
||||
if ( ! is_array( $types ) ) {
|
||||
|
Loading…
Reference in New Issue
Block a user