Skip to content

WIP: Latest post block iteration#13698

Closed
ajitbohra wants to merge 4 commits intomasterfrom
update/latest-post-block
Closed

WIP: Latest post block iteration#13698
ajitbohra wants to merge 4 commits intomasterfrom
update/latest-post-block

Conversation

@ajitbohra
Copy link
Copy Markdown
Member

@ajitbohra ajitbohra commented Feb 6, 2019

Fixes #1594

Work In Progress

Copy link
Copy Markdown
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.

@ajitbohra ajitbohra force-pushed the update/latest-post-block branch from ff2b3d0 to 8338b08 Compare February 20, 2019 15:59
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
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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