Plugin Directory

Changeset 3099636


Ignore:
Timestamp:
06/08/2024 05:44:16 AM (22 months ago)
Author:
aliparsa
Message:

fix:problem of sync draft products

Location:
pasazh/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • pasazh/trunk/pasazh.php

    r3097847 r3099636  
    66Plugin URI: https://epasazh.com
    77Description: با استفاده از این افزونه میتوانید فروشگاه خود را به پاساژ متصل نمایید. کافیست آن را فعال نمایید پس از آن به پنل مدیریت خودت در وب سایت پاساژ مراجعه نموده و ادامه مراحل جهت اتصال را تکمیل نمایید.
    8 Version: 1.12
     8Version: 1.13
    99Author: aliparsa
    1010Author URI: https://profiles.wordpress.org/aliparsa/
     
    7474    $json = base64_decode($base64);
    7575    $query = json_decode($json, true);
    76     $query['status'] = [ 'trash', 'publish'];
    77 //    $product_id = isset($query['include']) ? $query['include'][0] : null;
    78 
    79 
     76    if(!isset($query['status'])){
     77        $query['status'] = [ 'trash', 'publish'];
     78    }
    8079
    8180    $pasazh_products = [];
     
    145144        $post_type = $post->post_type;
    146145        if ($post_type != "product")
    147             return;
    148 
    149 
    150         if (in_array($post->post_status , ['auto-draft' , 'draft']) )
    151146            return;
    152147
  • pasazh/trunk/readme.txt

    r3097847 r3099636  
    55Requires at least: 5.0.3
    66Tested up to: 5.9.3
    7 Stable tag: 1.12
     7Stable tag: 1.13
    88License: GPLv2 or later
    99License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    2323== Screenshots ==
    2424== Changelog ==
    25 = 1.12 =
     25= 1.13 =
    2626* First release
    2727== Upgrade Notice ==
Note: See TracChangeset for help on using the changeset viewer.