Skip to content

Commit

Permalink
Add class to post title. (WordPress#38740)
Browse files Browse the repository at this point in the history
  • Loading branch information
ndiego authored Feb 15, 2022
1 parent 47a8adc commit f289d91
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions packages/block-library/src/latest-posts/edit.js
Original file line number Diff line number Diff line change
Expand Up @@ -480,6 +480,7 @@ export default function LatestPostsEdit( { attributes, setAttributes } ) {
<div className={ imageClasses }>
{ addLinkToFeaturedImage ? (
<a
className="wp-block-latest-posts__post-title"
href={ post.link }
rel="noreferrer noopener"
>
Expand Down
2 changes: 1 addition & 1 deletion packages/block-library/src/latest-posts/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ function render_block_core_latest_posts( $attributes ) {
}

$list_items_markup .= sprintf(
'<a href="%1$s">%2$s</a>',
'<a class="wp-block-latest-posts__post-title" href="%1$s">%2$s</a>',
esc_url( $post_link ),
$title
);
Expand Down

0 comments on commit f289d91

Please sign in to comment.