Plugin Directory

Changeset 2885707


Ignore:
Timestamp:
03/23/2023 02:12:42 PM (3 years ago)
Author:
primersoftware
Message:

Update

Location:
primer-mydata
Files:
2156 added
5 edited

Legend:

Unmodified
Added
Removed
  • primer-mydata/trunk/README.txt

    r2884889 r2885707  
    55Tested up to: 6.1.1
    66Requires PHP: 7.4
    7 Stable tag: 2.8.0
     7Stable tag: 2.9.0
    88License: GPLv2
    99License URI: https://www.gnu.org/licenses/gpl-2.0.html
     
    153153= 2.8.0 - 2023-03-22 =
    154154* Fix fatal error with Autoloader class that is being declared in other plugins
     155= 2.9.0 - 2023-03-23 =
     156* Fix fatal error with Autoloader class that is being declared in other plugins
  • primer-mydata/trunk/includes/template-tags/primer-tags-display-modules.php

    r2884889 r2885707  
    276276        //  $sale_price = '0';
    277277        //}
    278             $hideprefix = '_';
    279             if($item->get_all_formatted_meta_data( $hideprefix )) {
    280                 foreach ($item->get_all_formatted_meta_data($hideprefix) as $meta_key => $formatted_meta) {
    281                     $product_name .= "\r\n" . $formatted_meta->display_key;
    282                     $product_name .= ":\r\n" . $formatted_meta->display_value;
     278            if (defined('WC_VERSION')) {
     279                $woocommerce_current_version = WC_VERSION;
     280                if($woocommerce_current_version >= '7.0.0') {
     281                    $hideprefix = '_';
     282                    if ($item->get_all_formatted_meta_data($hideprefix)) {
     283                        foreach ($item->get_all_formatted_meta_data($hideprefix) as $meta_key => $formatted_meta) {
     284                            $product_name .= "\r\n" . $formatted_meta->display_key;
     285                            $product_name .= ":\r\n" . $formatted_meta->display_value;
     286                        }
     287                    }
    283288                }
    284289            }
  • primer-mydata/trunk/includes/vendor/dompdf/autoload.inc.php

    r2674269 r2885707  
    2525    return false;
    2626});
    27 
     27if(!class_exists('FontLib\Autoloader')) {
    2828// php-font-lib
    29 require_once __DIR__ . '/lib/php-font-lib/src/FontLib/Autoloader.php';
     29    require_once __DIR__ . '/lib/php-font-lib/src/FontLib/Autoloader.php';
     30}
    3031
    3132//php-svg-lib
  • primer-mydata/trunk/includes/vendor/dompdf/lib/php-font-lib/src/FontLib/Autoloader.php

    r2884889 r2885707  
    88
    99namespace FontLib;
    10 if(!class_exists('Autoloader')){
    1110
    1211/**
     
    4241}
    4342    Autoloader::register();
    44 }
  • primer-mydata/trunk/primer.php

    r2884889 r2885707  
    1818 * Plugin URI:        primer.gr/plugin/
    1919 * Description:      Issue receipts and invoices with woocommerce.
    20  * Version:           2.8.0
     20 * Version:           2.9.0
    2121 * Author:            Primer Software
    2222 * Author URI:        primer.gr
     
    3636 * Rename this for your plugin and update it as you release new versions.
    3737 */
    38 define( 'PRIMER_VERSION', '2.8.0' );
     38define( 'PRIMER_VERSION', '2.9.0' );
    3939define( 'PRIMER_NAME', 'Primer MyData' );
    4040
Note: See TracChangeset for help on using the changeset viewer.