Plugin Directory

Changeset 1761045


Ignore:
Timestamp:
11/08/2017 09:37:23 PM (8 years ago)
Author:
stackcommerce
Message:

Release 1.6.1

Location:
stackcommerce-connect/trunk
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • stackcommerce-connect/trunk/includes/class-stackcommerce-wp-article.php

    r1756975 r1761045  
    209209     * Prepare fields on a $post array
    210210     *
    211      * @since    1.6.0
     211     * @since    1.6.1
    212212     */
    213213    protected function prepare_fields( $fields ) {
     
    226226
    227227        if ( isset( $fields['post_status'] ) ) {
    228             $valid_post_statuses = [ 'draft', 'pending', 'future' ];
    229             $post_status = $fields['post_status'];
    230 
    231             if ( is_int( $fields['post_status'] ) && $valid_post_statuses[ $post_status ] ) {
    232                 $post_status = $this->generate_post_status( $fields['post_status'] );
    233             } else {
    234                 $post['post_status'] = $post_status;
    235             }
     228            $post['post_status'] = $this->generate_post_status( $fields['post_status'] );
    236229        }
    237230
     
    250243     * Check post fields before creation
    251244     *
    252      * @since    1.2.0
     245     * @since    1.6.1
    253246     */
    254247    protected function check_fields( $fields ) {
     
    256249        $stackcommerce_wp_media = new StackCommerce_WP_Media();
    257250
    258         $post['post_content'] = $stackcommerce_wp_media->process_body_images( $post['post_content'] );
    259 
    260251        $post = $this->prepare_fields( $fields );
    261252
    262253        $this->check_duplicate( $fields );
     254
     255        $post['post_content'] = $stackcommerce_wp_media->process_body_images( $fields['post_content'] );
    263256
    264257        $featured_image_options = $this->get_admin_fields( 'featured_image' );
  • stackcommerce-connect/trunk/index.php

    r1756975 r1761045  
    55 * Plugin URI: https://wordpress.org/plugins/stackcommerce-connect/
    66 * Description: The Connect plugin by StackCommerce connects your WordPress CMS to the StackCommerce Articles repository.
    7  * Version: 1.6.0
     7 * Version: 1.6.1
    88 * Author: StackCommerce, Inc
    99 * Author URI: https://www.stackcommerce.com
     
    1919define( 'SCWP_REQUIRED_WP_VERSION',  '4.4' );
    2020define( 'SCWP_API_VERSION', '1' );
    21 define( 'SCWP_PLUGIN_VERSION', '1.6.0' );
     21define( 'SCWP_PLUGIN_VERSION', '1.6.1' );
    2222define( 'CMS_API_ENDPOINT',  'https://hive.stackcommerce.net' );
    2323
  • stackcommerce-connect/trunk/readme.txt

    r1756975 r1761045  
    5353== Changelog ==
    5454
     55= 1.6.1 =
     56* Fix bug that caused post status to be ignored.
     57* Fix bug that caused images not to be uploaded to Media Library.
     58
    5559= 1.6.0 =
    5660* Add support for per article tags and categories.
  • stackcommerce-connect/trunk/version.txt

    r1756975 r1761045  
    1 1.6.0
     11.6.1
Note: See TracChangeset for help on using the changeset viewer.