Changeset 1935815
- Timestamp:
- 09/04/2018 07:38:15 PM (8 years ago)
- Location:
- coschedule-by-todaymade
- Files:
-
- 7 added
- 2 edited
-
tags/3.2.1 (added)
-
tags/3.2.1/_access-denied.html (added)
-
tags/3.2.1/_missing-token.html (added)
-
tags/3.2.1/frame.php (added)
-
tags/3.2.1/plugin_setup.php (added)
-
tags/3.2.1/readme.txt (added)
-
tags/3.2.1/tm-scheduler.php (added)
-
trunk/readme.txt (modified) (4 diffs)
-
trunk/tm-scheduler.php (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
coschedule-by-todaymade/trunk/readme.txt
r1920580 r1935815 5 5 Requires at least: 3.5 6 6 Tested up to: 4.9.6 7 Stable tag: 3.2. 07 Stable tag: 3.2.1 8 8 License: GPLv2 or later 9 9 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 63 63 64 64 1. Backup your WordPress database. 65 2. Download the plugin zip file ' todaymade-coschedule.zip' to your computer.66 3. Upload and install through the 'plugins' panel in your WordPress dashboard. You can manually upload ' todaymade-coschedule.zip' to the 'wp-content/plugins/' directory if you prefer.65 2. Download the plugin zip file 'coschedule-by-todaymade.zip' to your computer. 66 3. Upload and install through the 'plugins' panel in your WordPress dashboard. You can manually upload 'coschedule-by-todaymade.zip' to the 'wp-content/plugins/' directory if you prefer. 67 67 4. Activate the plugin through the 'plugins' menu in your WordPress dashboard. 68 68 5. Sign in with your CoSchedule account in Settings > CoSchedule … … 90 90 91 91 == Changelog == 92 = 3.2.1 = 93 * Removed a legacy fix for Edit Flow timestamps that has been addressed by the Edit Flow plugin. 94 92 95 = 3.2.0 = 93 96 * Added the orange sidebar and removed plugin navigation since it is all done from within the sidebar now. ReQueue is now accessable from WordPress. … … 324 327 325 328 == Upgrade Notice == 329 = 3.2.1 = 330 * Removed a legacy fix for Edit Flow timestamps that has been addressed by the Edit Flow plugin. 331 326 332 = 3.2.0 = 327 333 * Added the orange sidebar and removed plugin navigation since it is all done from within the sidebar now. ReQueue is now accessable from WordPress. -
coschedule-by-todaymade/trunk/tm-scheduler.php
r1920580 r1935815 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. 05 Version: 3.2.1 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. 0";26 private $version = "3.2.1"; 27 27 private $build; 28 28 private $connected = false; … … 48 48 49 49 // Load variables 50 $this->build = intval( "8 0" );50 $this->build = intval( "81" ); 51 51 $this->token = get_option( 'tm_coschedule_token' ); 52 52 $this->calendar_id = get_option( 'tm_coschedule_calendar_id' ); … … 165 165 // work around 'missed schedule draft' condition // 166 166 add_action( 'wp_insert_post_data', array( $this, 'conditionally_update_post_date_on_publish' ), 1, 2 ); 167 168 // Edit Flow Fix169 add_filter( 'wp_insert_post_data', array( $this, 'fix_custom_status_timestamp_before' ), 1 );170 add_filter( 'wp_insert_post_data', array( $this, 'fix_custom_status_timestamp_after' ), 20 );171 167 172 168 // Custom Slug Fix, replace data … … 1764 1760 1765 1761 /** 1766 * Edit Flow Fix: Runs before the edit flow function that modifies the post_date_gmt1767 *1768 * @param $data1769 *1770 * @return mixed1771 */1772 public function fix_custom_status_timestamp_before( $data ) {1773 // Save post_date_gmt for later1774 global $cos_cached_post_date_gmt;1775 if ( isset( $data['post_date_gmt'] ) && ! empty( $data['post_date_gmt'] ) ) {1776 $cos_cached_post_date_gmt = $data['post_date_gmt'];1777 }1778 1779 return $data;1780 }1781 1782 /**1783 * Edit Flow Fix: Runs after the edit flow function that modifies the post_date_gmt1784 *1785 * @param $data1786 *1787 * @return mixed1788 */1789 public function fix_custom_status_timestamp_after( $data ) {1790 global $cos_cached_post_date_gmt;1791 if ( isset( $cos_cached_post_date_gmt ) && ! empty( $cos_cached_post_date_gmt ) ) {1792 $data['post_date_gmt'] = $cos_cached_post_date_gmt;1793 }1794 1795 return $data;1796 }1797 1798 /**1799 1762 * Post Name Fix: Runs before wp_insert_post clears custom permalink 1800 1763 *
Note: See TracChangeset
for help on using the changeset viewer.