Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WIP: Latest post block iteration #13698

Closed
wants to merge 4 commits into from
Closed

Conversation

ajitbohra
Copy link
Member

@ajitbohra ajitbohra commented Feb 6, 2019

Fixes #1594

Work In Progress


{ displayPostAuthor &&
<span className="wp-block-latest-posts__post-author">
{ __( 'by' ) } { post._embedded.author[ 0 ].name }
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should use sprintf here and add a translator comment.

if( isset( $attributes['displayPostAuthor'] ) && $attributes['displayPostAuthor']) {
$list_items_markup .= sprintf(
'<span class="wp-block-latest-posts__post-author">%1$s %2$s</span>',
__( 'by' ),
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same as in the JS, sprintf is needed here.

@getdave
Copy link
Contributor

getdave commented Apr 4, 2019

@ajitbohra I've left feedback here which you might find useful #14627 (comment)

Also are you still actively working on this PR?

@ajitbohra
Copy link
Member Author

Closing this PR as most of the work here overlaps with #14627 which is already merged.

@ajitbohra ajitbohra closed this May 11, 2019
@ajitbohra ajitbohra deleted the update/latest-post-block branch May 11, 2019 18:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Block] Latest Posts Affects the Latest Posts Block [Status] In Progress Tracking issues with work in progress [Type] Enhancement A suggestion for improvement.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Iterations on "Latest Posts" Block
4 participants