Plugin Directory

Changeset 2767500


Ignore:
Timestamp:
08/07/2022 10:23:51 PM (4 years ago)
Author:
wordable
Message:

8.0.9

Location:
wordable
Files:
1 added
3 edited
9 copied

Legend:

Unmodified
Added
Removed
  • wordable/tags/8.0.9/includes/actions.php

    r2743102 r2767500  
    123123    );
    124124
    125     $post_id = $this->throw_if_wp_error(wp_insert_post($post_attributes, true));
     125    if(array_key_exists('previous_post_id', $params['post']) && get_post_status($params['post']['previous_post_id']) !== false) {
     126      $post_attributes['ID'] = $params['post']['previous_post_id'];
     127      $post_id = $post_attributes['ID'];
     128      $this->throw_if_wp_error(wp_update_post($post_attributes, true));
     129    } else {
     130      $post_id = $this->throw_if_wp_error(wp_insert_post($post_attributes, true));
     131    }
     132
    126133    return $this->segmented_post_hook($post_id, $post_attributes, $params);
    127134  }
  • wordable/tags/8.0.9/readme.txt

    r2743102 r2767500  
    33Tags: posts, pages
    44Requires at least: 5.0.0
    5 Tested up to: 5.9.2
     5Tested up to: 6.0
    66Requires PHP: 5.2.4
    77License: GPLv2 or later
    88License URI: http://www.gnu.org/licenses/gpl-2.0.html
    9 Stable Tag: 8.0.8
     9Stable Tag: 8.0.9
    1010
    1111This plugin allows you to instantly export Google Docs to WordPress posts or pages.
     
    5555
    5656== Changelog ==
     57
     58= 8.0.9 =
     59* Allowing to update previously exported posts
    5760
    5861= 8.0.8 =
  • wordable/tags/8.0.9/wordable.php

    r2743102 r2767500  
    44 * Plugin URI: http://wordable.io
    55 * Description: This plugin allows you to instantly export Google Docs to WordPress posts or pages.
    6  * Version: 8.0.8
     6 * Version: 8.0.9
    77 * Author: Wordable
    88 * Author URI: https://wordable.io
    99 * Tested up to: 5.9.2
    1010 * Requires at least: 5.0
    11  * Stable tag: 8.0.8
     11 * Stable tag: 8.0.9
    1212 *
    1313 * Wordpress 5.0+
    1414 */
    1515
    16 define('WORDABLE_VERSION', '8.0.8');
     16define('WORDABLE_VERSION', '8.0.9');
    1717
    1818include 'includes/wordable_plugin.php';
  • wordable/trunk/includes/actions.php

    r2743102 r2767500  
    123123    );
    124124
    125     $post_id = $this->throw_if_wp_error(wp_insert_post($post_attributes, true));
     125    if(array_key_exists('previous_post_id', $params['post']) && get_post_status($params['post']['previous_post_id']) !== false) {
     126      $post_attributes['ID'] = $params['post']['previous_post_id'];
     127      $post_id = $post_attributes['ID'];
     128      $this->throw_if_wp_error(wp_update_post($post_attributes, true));
     129    } else {
     130      $post_id = $this->throw_if_wp_error(wp_insert_post($post_attributes, true));
     131    }
     132
    126133    return $this->segmented_post_hook($post_id, $post_attributes, $params);
    127134  }
  • wordable/trunk/readme.txt

    r2743102 r2767500  
    33Tags: posts, pages
    44Requires at least: 5.0.0
    5 Tested up to: 5.9.2
     5Tested up to: 6.0
    66Requires PHP: 5.2.4
    77License: GPLv2 or later
    88License URI: http://www.gnu.org/licenses/gpl-2.0.html
    9 Stable Tag: 8.0.8
     9Stable Tag: 8.0.9
    1010
    1111This plugin allows you to instantly export Google Docs to WordPress posts or pages.
     
    5555
    5656== Changelog ==
     57
     58= 8.0.9 =
     59* Allowing to update previously exported posts
    5760
    5861= 8.0.8 =
  • wordable/trunk/wordable.php

    r2743102 r2767500  
    44 * Plugin URI: http://wordable.io
    55 * Description: This plugin allows you to instantly export Google Docs to WordPress posts or pages.
    6  * Version: 8.0.8
     6 * Version: 8.0.9
    77 * Author: Wordable
    88 * Author URI: https://wordable.io
    99 * Tested up to: 5.9.2
    1010 * Requires at least: 5.0
    11  * Stable tag: 8.0.8
     11 * Stable tag: 8.0.9
    1212 *
    1313 * Wordpress 5.0+
    1414 */
    1515
    16 define('WORDABLE_VERSION', '8.0.8');
     16define('WORDABLE_VERSION', '8.0.9');
    1717
    1818include 'includes/wordable_plugin.php';
Note: See TracChangeset for help on using the changeset viewer.