Plugin Directory

Changeset 2871308


Ignore:
Timestamp:
02/26/2023 05:49:43 PM (3 years ago)
Author:
seindal
Message:

Fixed a bug when feeds didn't contain item_guid fields

Location:
planetplanet/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • planetplanet/trunk/planetplanet.php

    r2828210 r2871308  
    88 * Text Domain:     planetplanet
    99 * Domain Path:     /languages
    10  * Version:         0.17
     10 * Version:         0.18
    1111 *
    1212 * @package         Planetplanet
     
    568568                    $post_content = (string)$item->children( $ns['content'] )->encoded;
    569569
     570                $guid = (string)$item->guid ?: (string)$item->link;
    570571                $post = [
    571572                    'post_title' => (string)$item->title,
     
    575576                    'post_content' => $post_content ?? '',
    576577
    577                     'guid' => site_url( (string)$item->guid, 'https' ),
     578                    'guid' => site_url( $guid, 'https' ),
    578579
    579580                    'meta_input' => [
    580                         'item_guid' => (string)$item->guid,
     581                        'item_guid' => $guid,
    581582                        'item_link' => (string)$item->link,
    582583                        'item_author' => $author,
  • planetplanet/trunk/readme.txt

    r2828215 r2871308  
    55Tested up to: 6.1
    66Requires PHP: 7.4
    7 Stable tag: 0.17
     7Stable tag: 0.18
    88License: GPLv2 or later
    99License URI: https://www.gnu.org/licenses/gpl-2.0.html
Note: See TracChangeset for help on using the changeset viewer.