Skip to content

Commit

Permalink
Block Library: Post Author: Reference attributes by argument (#22114)
Browse files Browse the repository at this point in the history
  • Loading branch information
aduth authored May 6, 2020
1 parent 8fd9332 commit 8e04342
Showing 1 changed file with 3 additions and 5 deletions.
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

0 comments on commit 8e04342

Please sign in to comment.