Skip to content

Commit

Permalink
Fix transition post status bug and bump version
Browse files Browse the repository at this point in the history
  • Loading branch information
drov0 committed Jan 22, 2019
1 parent f89df6b commit e2bc1f6
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
6 changes: 5 additions & 1 deletion admin/class-steempress_sp-admin.php
Original file line number Diff line number Diff line change
Expand Up @@ -423,7 +423,11 @@ public function steempress_sp_bulk_publish_notice() {
}

function steempress_sp_future_post( $post_id ) {
$this->Steempress_sp_publish($post_id);

// See if the publish to steem checkbox is checked.
$value = get_post_meta($post_id, 'Steempress_sp_steem_publish', true);
if ($value != "0")
$this->Steempress_sp_publish($post_id);
}

public function steempress_sp_post($new_status, $old_status, $post)
Expand Down
4 changes: 2 additions & 2 deletions steempress_sp.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,8 @@
* Currently plugin version.
* using SemVer - https://semver.org
*/
define( 'steempress_sp_compte', '2.3');
//define( 'steempress_sp_api_url', 'https://api.steempress.io');
define( 'steempress_sp_compte', '2.3.1');
define( 'steempress_sp_api_url', 'https://api.steempress.io');
define( 'steempress_sp_twoway_api_url', 'https://two.steempress.io');

define( 'steempress_sp_api_url', 'http://localhost:8001');
Expand Down

0 comments on commit e2bc1f6

Please sign in to comment.