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. Built from https://develop.svn.wordpress.org/trunk@32113 git-svn-id: http://core.svn.wordpress.org/trunk@32092 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
9df7b6ecf6
commit
5294e0e655
|
@ -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
|
* @param array $allowed_media_types An array of allowed media types. Default media types are
|
||||||
* 'audio', 'video', 'object', 'embed', and 'iframe'.
|
* '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 ( ! empty( $types ) ) {
|
||||||
if ( ! is_array( $types ) ) {
|
if ( ! is_array( $types ) ) {
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
*
|
*
|
||||||
* @global string $wp_version
|
* @global string $wp_version
|
||||||
*/
|
*/
|
||||||
$wp_version = '4.2-beta4-32112';
|
$wp_version = '4.2-beta4-32113';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||||
|
|
Loading…
Reference in New Issue