Plugin Directory

Changeset 2070214


Ignore:
Timestamp:
04/17/2019 08:22:37 PM (7 years ago)
Author:
rveitch
Message:

Updating plugin 3.2.7

Location:
coschedule-by-todaymade
Files:
7 added
2 edited

Legend:

Unmodified
Added
Removed
  • coschedule-by-todaymade/trunk/readme.txt

    r2070057 r2070214  
    55Requires at least: 3.5
    66Tested up to: 5.1.0
    7 Stable tag: 3.2.6
     7Stable tag: 3.2.7
    88License: GPLv2 or later
    99License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    9797
    9898== Changelog ==
     99= 3.2.7 =
     100* Fixes a bug that may prevent plugin build version from syncing with CoSchedule
     101
    99102= 3.2.6 =
    100103* Adds a new optional filter for conditional post syncing
     
    349352
    350353== Upgrade Notice ==
     354= 3.2.7 =
     355* Fixes a bug that may prevent plugin build version from syncing with CoSchedule
     356
    351357= 3.2.6 =
    352358* Adds a new optional filter for conditional post syncing
  • coschedule-by-todaymade/trunk/tm-scheduler.php

    r2059000 r2070214  
    33Plugin Name: CoSchedule
    44Description: Plan, organize, and execute every content marketing project in one place with CoSchedule, an all-in-one content marketing editorial calendar solution.
    5 Version: 3.2.6
     5Version: 3.2.7
    66Author: CoSchedule
    77Author URI: http://coschedule.com/
     
    2424        private $app = "https://app.coschedule.com";
    2525        private $assets = "https://assets.coschedule.com";
    26         private $version = "3.2.6";
     26        private $version = "3.2.7";
    2727        private $build;
    2828        private $connected = false;
     
    4848
    4949            // Load variables
    50             $this->build                  = intval( "86" );
     50            $this->build                  = intval( "87" );
    5151            $this->token                  = get_option( 'tm_coschedule_token' );
    5252            $this->calendar_id            = get_option( 'tm_coschedule_calendar_id' );
     
    15961596            $are_numeric = ( is_numeric( $this->build ) && is_numeric( $this->synced_build ) );
    15971597
    1598             return ( $are_numeric && intval( $this->build ) > intval( $this->synced_build ) );
     1598            if ( false === $are_numeric) {
     1599                return true;
     1600            }
     1601
     1602            return ( intval( $this->build ) !== intval( $this->synced_build ) );
    15991603        }
    16001604
     
    16041608        public function save_build_callback() {
    16051609            if ( true === $this->connected ) {
     1610                // Post new info to api
     1611                $params            = array();
     1612                $params['build']   = $this->build;
     1613                $params['version'] = $this->version;
     1614                $out               = $this->post_webhook( '/webhooks/wordpress/keys/build/save?_wordpress_key=' . $this->token, $params );
     1615
     1616                if ( is_wp_error( $out ) ) {
     1617                    return false;
     1618                }
     1619
    16061620                // Update a tracking option in wordpress
    1607                 if ( true === update_option( 'tm_coschedule_synced_build', $this->build ) ) {
    1608 
    1609                     // Post new info to api
    1610                     $params            = array();
    1611                     $params['build']   = $this->build;
    1612                     $params['version'] = $this->version;
    1613                     $this->post_webhook( '/webhooks/wordpress/keys/build/save?_wordpress_key=' . $this->token, $params );
    1614                 }
    1615             }
     1621                return update_option( 'tm_coschedule_synced_build', $this->build );
     1622            }
     1623
     1624            return false;
    16161625        }
    16171626
Note: See TracChangeset for help on using the changeset viewer.