Skip to content
This repository has been archived by the owner on Nov 6, 2022. It is now read-only.

Commit

Permalink
Remove needless space between the @param type and the description
Browse files Browse the repository at this point in the history
Also, remove an isset() check
as empty() will handle that case.
  • Loading branch information
kienstra committed Sep 18, 2019
1 parent 03c4b1c commit a0d252f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion js/blocks/loader/attributes.js
@@ -1,7 +1,7 @@
/**
* Gets the attributes for a block, based on given fields.
*
* @param {Object} fields The fields to get the attributes from.
* @param {Object} fields The fields to get the attributes from.
* @return {Object} attributes The attributes for the fields.
*/
const getBlockAttributes = ( fields ) => {
Expand Down
2 changes: 1 addition & 1 deletion php/post-types/class-block-post.php
Expand Up @@ -338,7 +338,7 @@ public function add_meta_boxes() {
'default'
);

if ( isset( $post->post_name ) && ! empty( $post->post_name ) ) {
if ( ! empty( $post->post_name ) ) {
$locations = block_lab()->get_template_locations( $post->post_name );
$template = block_lab()->locate_template( $locations, '', true );

Expand Down

0 comments on commit a0d252f

Please sign in to comment.