Plugin Directory

Changeset 3046272


Ignore:
Timestamp:
03/06/2024 11:26:03 AM (2 years ago)
Author:
aliparsa
Message:

Fixed issue #problem of load logo url in info endpoint

Location:
pasazh/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • pasazh/trunk/pasazh.php

    r3046182 r3046272  
    66Plugin URI: https://epasazh.com
    77Description: با استفاده از این افزونه میتوانید فروشگاه خود را به پاساژ متصل نمایید. کافیست آن را فعال نمایید پس از آن به پنل مدیریت خودت در وب سایت پاساژ مراجعه نموده و ادامه مراحل جهت اتصال را تکمیل نمایید.
    8 Version: 1.10
     8Version: 1.11
    99Author: aliparsa
    1010Author URI: https://profiles.wordpress.org/aliparsa/
     
    4848function PASAZHAPI_info($product_id)
    4949{
     50
    5051    $logo_url = null;
    51     try{
    52         $logo_url = wp_get_attachment_image_src(get_theme_mod('custom_logo'), 'full')[0];
    53     }catch (Exception $exception){
    54 
    55     }
     52    $attachment_image_src = wp_get_attachment_image_src(get_theme_mod('custom_logo'), 'full');
     53    if(is_array($attachment_image_src))
     54        $logo_url = $attachment_image_src[0];
     55
    5656    $response = [
    5757        'name' => get_bloginfo('name'),
  • pasazh/trunk/readme.txt

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