This commit is contained in:
Hanson.xyz Dev
2026-01-04 17:50:08 -06:00
parent 7e45ce0756
commit acc8ac87a0
4131 changed files with 232562 additions and 250244 deletions
+3 -2
View File
@@ -27,8 +27,9 @@ function render_block_core_post_featured_image( $attributes, $content, $block )
$overlay_markup = get_block_core_post_featured_image_overlay_element_markup( $attributes );
if ( $is_link ) {
if ( get_the_title( $post_ID ) ) {
$attr['alt'] = trim( strip_tags( get_the_title( $post_ID ) ) );
$title = get_the_title( $post_ID );
if ( $title ) {
$attr['alt'] = trim( strip_tags( $title ) );
} else {
$attr['alt'] = sprintf(
// translators: %d is the post ID.