Plugin Directory

Changeset 3031162


Ignore:
Timestamp:
02/04/2024 04:07:34 PM (2 years ago)
Author:
wptaskforce
Message:

post_exist fix

File:
1 edited

Legend:

Unmodified
Added
Removed
  • wpcargo/trunk/admin/classes/class-wpcargo.php

    r3030942 r3031162  
    394394       
    395395        $shipment_title = apply_filters( 'wpcargo_generated_shipment_number', $shipment_title, $rand_number );
     396        if ( ! function_exists( 'post_exists' ) ) {
     397            require_once( ABSPATH . 'wp-admin/includes/post.php' );
     398        }
    396399        if( get_option('wpcargo_restrict_duplicate') ){
    397400            if( post_exists($shipment_title) ){
Note: See TracChangeset for help on using the changeset viewer.