• Resolved 1000camels

    (@1000camels)


    Line 382 in includes/class-wc-advanced-shipment-tracking.php

                    <input type="text" class="ast-date-picker-field" name="date_shipped" id="date_shipped" value="<?php echo esc_html( date_i18n( __( 'Y-m-d', 'woo-advanced-shipment-tracking' ), current_time( 'timestamp' ) ) ); ?>" placeholder="<?php echo esc_html( date_i18n( esc_html_e( 'Y-m-d', 'woo-advanced-shipment-tracking' ), time() ) ); ?>">          

    Should be

                <input type="text" class="ast-date-picker-field" name="date_shipped" id="date_shipped" value="<?php echo esc_html( date_i18n( __( 'Y-m-d', 'woo-advanced-shipment-tracking' ), current_time( 'timestamp' ) ) ); ?>" placeholder="<?php echo esc_html( date_i18n( __( 'Y-m-d', 'woo-advanced-shipment-tracking' ), time() ) ); ?>">          

    esc_html_e() is resolving to nothing creating the Deprecation error:

    [16-Nov-2024 22:48:26 UTC] PHP Deprecated: preg_replace(): Passing null to parameter #3 ($subject) of type array|string is deprecated in wp-includes/functions.php on line 258

Viewing 1 replies (of 1 total)
  • Plugin Author gaurav1092

    (@gaurav1092)

    Hi @1000camels,

    Thank you for providing the details and code correction. We will address this deprecation warning and include a fix in the next version of the plugin.

    Best Regards,
    Gaurav

Viewing 1 replies (of 1 total)
  • You must be logged in to reply to this topic.