Pass the current shortcode instance ID to `post_gallery` and `post_playlist` filters.
props justincwatt. fixes #31151. Built from https://develop.svn.wordpress.org/trunk@31304 git-svn-id: http://core.svn.wordpress.org/trunk@31285 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
b05014805f
commit
fa86f3ef9c
|
@ -941,10 +941,11 @@ function gallery_shortcode( $attr ) {
|
|||
*
|
||||
* @see gallery_shortcode()
|
||||
*
|
||||
* @param string $output The gallery output. Default empty.
|
||||
* @param array $attr Attributes of the gallery shortcode.
|
||||
* @param string $output The gallery output. Default empty.
|
||||
* @param array $attr Attributes of the gallery shortcode.
|
||||
* @param int $instance Unique numeric ID of this gallery shortcode instance.
|
||||
*/
|
||||
$output = apply_filters( 'post_gallery', '', $attr );
|
||||
$output = apply_filters( 'post_gallery', '', $attr, $instance );
|
||||
if ( $output != '' ) {
|
||||
return $output;
|
||||
}
|
||||
|
@ -1214,10 +1215,11 @@ function wp_playlist_shortcode( $attr ) {
|
|||
*
|
||||
* @since 3.9.0
|
||||
*
|
||||
* @param string $output Playlist output. Default empty.
|
||||
* @param array $attr An array of shortcode attributes.
|
||||
* @param string $output Playlist output. Default empty.
|
||||
* @param array $attr An array of shortcode attributes.
|
||||
* @param int $instance Unique numeric ID of this playlist shortcode instance.
|
||||
*/
|
||||
$output = apply_filters( 'post_playlist', '', $attr );
|
||||
$output = apply_filters( 'post_playlist', '', $attr, $instance );
|
||||
if ( $output != '' ) {
|
||||
return $output;
|
||||
}
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
*
|
||||
* @global string $wp_version
|
||||
*/
|
||||
$wp_version = '4.2-alpha-31303';
|
||||
$wp_version = '4.2-alpha-31304';
|
||||
|
||||
/**
|
||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||
|
|
Loading…
Reference in New Issue