diff --git a/src/Uplink/Admin/Fields/Field.php b/src/Uplink/Admin/Fields/Field.php index 90e84b8d..56fe77eb 100644 --- a/src/Uplink/Admin/Fields/Field.php +++ b/src/Uplink/Admin/Fields/Field.php @@ -249,18 +249,22 @@ public function get_render_html(): string { UplinkNamespace\render_authorize_button( $this->get_slug() ); - return (string) ob_get_clean(); + $html = (string) ob_get_clean(); + } else { + $html = $this->view->render( self::VIEW, $args ); } - $html = $this->view->render( self::VIEW, $args ); - /** * Filters the field HTML. * * @param string $html The HTML. * @param string $slug The plugin slug. */ - return apply_filters( 'stellarwp/uplink/' . Config::get_hook_prefix() . '/license_field_html', $html, $this->get_slug() ); + return apply_filters( + 'stellarwp/uplink/' . Config::get_hook_prefix() . '/license_field_html', + $html, + $this->get_slug() + ); } /**