Skip to content

Remove obsolete poststoshow attribute from latest-posts block and dead code - #2012

Merged
westonruter merged 1 commit into
masterfrom
add/latest-posts-improvements
Jul 27, 2017
Merged

westonruter merged 1 commit into
masterfrom
add/latest-posts-improvements

Conversation

@westonruter

Copy link
Copy Markdown
Member

Follow up on #1992.

I had originally added support for the poststoshow prop because before JSON block attributes, the attributes were lowercase. But no need to keep back-compat. Anyway, the logic was such that $attributes['poststoshow'] was overridden regardless. So it was dead code.

@westonruter westonruter added the [Type] Bug An existing feature does not function as intended label Jul 25, 2017
@westonruter
westonruter requested a review from mtias July 26, 2017 16:30
@westonruter
westonruter merged commit fcc62a3 into master Jul 27, 2017
@westonruter
westonruter deleted the add/latest-posts-improvements branch July 27, 2017 19:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

[Type] Bug An existing feature does not function as intended

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants