Make WordPress Core

Opened 4 years ago

Last modified 9 months ago

#36293 new defect (bug)

video/audio object passed to wp_video_shortcode/wp_audio_shortcode is always null

Reported by: gnotaras Owned by:
Milestone: Priority: normal
Severity: normal Version:
Component: General Keywords:
Focuses: Cc:



The following:

apply_filters( 'wp_video_shortcode', $output, $atts, $video, $post_id, $library );

apply_filters( 'wp_audio_shortcode', $html, $atts, $audio, $post_id, $library );

send the $video and $audio objects respectively to the filtering function.

However, these objects seem to be always null.

By checking the relevant code I notice that these objects are only set when the $primary variable is set to false. The code does not clarify why the audio/video object is bound to that variable. Perhaps someone more familiar with the logic behind these functions should check this please.

Change History (0)

Note: See TracTickets for help on using tickets.