Skip to content

Commit

Permalink
Fix PHP deprecated warning
Browse files Browse the repository at this point in the history
  • Loading branch information
kprajapatii committed Oct 9, 2024
1 parent a744704 commit 9a31cb5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion templates/subscriptions/subscription-details.php
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@

<h2 class='mt-5 mb-1 h4'><?php esc_html_e( 'Related Invoices', 'invoicing' ); ?></h2>

<?php echo wp_kses_post( getpaid_admin_subscription_invoice_details_metabox( $subscription ) ); ?>
<?php ob_start();getpaid_admin_subscription_invoice_details_metabox( $subscription ); $invoice_details = ob_get_clean(); echo wp_kses_post( $invoice_details ); ?>

<?php if ( 1 < count( $subscription_groups ) ) : ?>
<h2 class='mt-5 mb-1 h4'><?php esc_html_e( 'Related Subscriptions', 'invoicing' ); ?></h2>
Expand Down

1 comment on commit 9a31cb5

@kprajapatii
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixes #806

Please sign in to comment.