WordPress.org

Making WordPress.org

Ticket #4424: 4424.diff

File 4424.diff, 975 bytes (added by dd32, 3 years ago)
  • public_html/wp-content/plugins/camptix-invoices/includes/class-camptix-addon-invoices.php

    diff --git a/public_html/wp-content/plugins/camptix-invoices/includes/class-camptix-addon-invoices.php b/public_html/wp-content/plugins/camptix-invoices/includes/class-camptix-addon-invoices.php
    index a54eb06b..b7ba67f3 100644
    a b public static function create_invoice_document( $invoice_id ) { 
    383383
    384384                $logo = CTX_INV_DIR . '/admin/images/wp-community-support.png';
    385385                if ( ! empty( $camptix_opts['invoice-logo'] ) ) {
    386                         $attachment = wp_get_attachment_image_src( $camptix_opts['invoice-logo'], 'full' );
    387                         $logo       = $attachment[0];
     386                        $logo = get_attached_file( $camptix_opts['invoice-logo'] );
    388387                }
    389388
    390389                $template = locate_template( 'invoice-template.php' ) ? locate_template( 'invoice-template.php' ) : CTX_INV_DIR . '/includes/views/invoice-template.php';