Changeset 2070214
- Timestamp:
- 04/17/2019 08:22:37 PM (7 years ago)
- Location:
- coschedule-by-todaymade
- Files:
-
- 7 added
- 2 edited
-
tags/3.2.7 (added)
-
tags/3.2.7/_access-denied.php (added)
-
tags/3.2.7/_missing-token.php (added)
-
tags/3.2.7/frame.php (added)
-
tags/3.2.7/plugin_setup.php (added)
-
tags/3.2.7/readme.txt (added)
-
tags/3.2.7/tm-scheduler.php (added)
-
trunk/readme.txt (modified) (3 diffs)
-
trunk/tm-scheduler.php (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
coschedule-by-todaymade/trunk/readme.txt
r2070057 r2070214 5 5 Requires at least: 3.5 6 6 Tested up to: 5.1.0 7 Stable tag: 3.2. 67 Stable tag: 3.2.7 8 8 License: GPLv2 or later 9 9 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 97 97 98 98 == Changelog == 99 = 3.2.7 = 100 * Fixes a bug that may prevent plugin build version from syncing with CoSchedule 101 99 102 = 3.2.6 = 100 103 * Adds a new optional filter for conditional post syncing … … 349 352 350 353 == Upgrade Notice == 354 = 3.2.7 = 355 * Fixes a bug that may prevent plugin build version from syncing with CoSchedule 356 351 357 = 3.2.6 = 352 358 * Adds a new optional filter for conditional post syncing -
coschedule-by-todaymade/trunk/tm-scheduler.php
r2059000 r2070214 3 3 Plugin Name: CoSchedule 4 4 Description: 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. 65 Version: 3.2.7 6 6 Author: CoSchedule 7 7 Author URI: http://coschedule.com/ … … 24 24 private $app = "https://app.coschedule.com"; 25 25 private $assets = "https://assets.coschedule.com"; 26 private $version = "3.2. 6";26 private $version = "3.2.7"; 27 27 private $build; 28 28 private $connected = false; … … 48 48 49 49 // Load variables 50 $this->build = intval( "8 6" );50 $this->build = intval( "87" ); 51 51 $this->token = get_option( 'tm_coschedule_token' ); 52 52 $this->calendar_id = get_option( 'tm_coschedule_calendar_id' ); … … 1596 1596 $are_numeric = ( is_numeric( $this->build ) && is_numeric( $this->synced_build ) ); 1597 1597 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 ) ); 1599 1603 } 1600 1604 … … 1604 1608 public function save_build_callback() { 1605 1609 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 1606 1620 // 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; 1616 1625 } 1617 1626
Note: See TracChangeset
for help on using the changeset viewer.