Plugin Directory

Changeset 2195567


Ignore:
Timestamp:
11/18/2019 12:00:09 PM (6 years ago)
Author:
easycontent
Message:

1.0.2 update

Location:
easycontent/trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • easycontent/trunk/app/Post.php

    r2194825 r2195567  
    144144        }
    145145
    146 
    147         $postId = wp_insert_post( [
    148             'ID' => $this->_wpPostObject->ID,
    149             'post_status'  => $this->_wpPostObject->post_status,
     146        $postData = array_merge( get_object_vars( $this->_wpPostObject ), [
    150147            'post_title'   => $article->title,
    151148            'post_excerpt' => $article->excerpt ?: '',
    152149            'post_name'    => $article->custom_slug ?: ''
    153150        ] );
     151
     152        $postId = wp_update_post( wp_slash( $postData ) );
    154153
    155154        if ( 0 === $postId ) {
  • easycontent/trunk/easycontent-wp.php

    r2194825 r2195567  
    44 * Plugin URI:  https://easycontent.io
    55 * Description: Imports articles from EasyContent to your wordpress site and exports articles from your wordpress site to EasyContent
    6  * Version: 1.0.1
     6 * Version: 1.0.2
    77 * Requires at least: 5.0.7
    88 * Requires PHP: 5.6
     
    2121
    2222if ( ! defined( 'EASYCONTENT_PLUGIN_VERSION' ) ) {
    23     define( 'EASYCONTENT_PLUGIN_VERSION', '1.0.1' );
     23    define( 'EASYCONTENT_PLUGIN_VERSION', '1.0.2' );
    2424}
    2525
  • easycontent/trunk/readme.txt

    r2194971 r2195567  
    66Tested up to:       5.3
    77Requires PHP:       5.6
    8 Stable tag:         1.0.1
     8Stable tag:         1.0.2
    99License:            GPL-2.0+
    1010License URI:        http://www.gnu.org/licenses/gpl-2.0.html
     
    6161== Changelog ==
    6262
     63= 1.0.2 =
     64* Fixed pulling mechanism
     65
    6366= 1.0.1 =
    6467* Added better support for the Classic editor
Note: See TracChangeset for help on using the changeset viewer.