File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -2048,7 +2048,7 @@ function get_embedded_video( &$content, $remove = false ) {
20482048 * @param string $type Required. 'audio' or 'video'
20492049 * @param WP_Post $post Optional. Used instead of global $post when passed.
20502050 * @param int $limit Optional. The number of medias to remove if content is scanned.
2051- * @return string
2051+ * @return string HTML for the media. Blank string if no media is found.
20522052 */
20532053function get_the_post_format_media ( $ type , &$ post = null , $ limit = 0 ) {
20542054 global $ wp_embed ;
@@ -2420,6 +2420,7 @@ function get_post_gallery_images( $post_id = 0 ) {
24202420 *
24212421 * @param string $attached_size If an attached image is found, the size to display it.
24222422 * @param WP_Post $post Optional. Used instead of global $post when passed.
2423+ * @return string HTML for the image. Blank string if no image is found.
24232424 */
24242425function get_the_post_format_image ( $ attached_size = 'full ' , &$ post = null ) {
24252426 if ( empty ( $ post ) )
@@ -2566,6 +2567,8 @@ function get_the_post_format_image( $attached_size = 'full', &$post = null ) {
25662567 $ post ->format_content [ $ cache_key ] = sprintf ( $ link_fmt , $ html );
25672568 return $ post ->format_content [ $ cache_key ];
25682569 }
2570+
2571+ return '' ;
25692572}
25702573
25712574/**
You can’t perform that action at this time.
0 commit comments