From a0d252f1c768291242d8b59118277e3e98b35417 Mon Sep 17 00:00:00 2001 From: Ryan Kienstra Date: Tue, 17 Sep 2019 19:28:14 -0500 Subject: [PATCH] Remove needless space between the @param type and the description Also, remove an isset() check as empty() will handle that case. --- js/blocks/loader/attributes.js | 2 +- php/post-types/class-block-post.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/js/blocks/loader/attributes.js b/js/blocks/loader/attributes.js index 6ab6ccaae..eefc499d9 100644 --- a/js/blocks/loader/attributes.js +++ b/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 ) => { diff --git a/php/post-types/class-block-post.php b/php/post-types/class-block-post.php index 12b06b69a..8156529fa 100644 --- a/php/post-types/class-block-post.php +++ b/php/post-types/class-block-post.php @@ -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 );