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

Block Library: Post Author: Reference attributes by argument #22114

Merged
merged 1 commit into from
May 6, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 3 additions & 5 deletions packages/block-library/src/post-author/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -88,13 +88,11 @@ function post_author_build_css_font_sizes( $attributes ) {
/**
* Renders the `core/post-author` block on the server.
*
* @param Object $block The block to render.
* @param array $attributes Block attributes.
*
* @return string Returns the rendered author block.
*/
function render_block_core_post_author( $block ) {

$attributes = $block->attributes;

function render_block_core_post_author( $attributes ) {
if ( empty( $attributes ) ) {
return '';
}
Expand Down